1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-01 08:58:29 +03:00

78728 Commits

Author SHA1 Message Date
Sea-Eun Lee
015a3b8cb1 oomd: support reloading configuration at runtime 2025-01-14 14:42:23 +01:00
Lennart Poettering
857ddc2e55
core: serialize API bus id and validate before deserializing bus tracks, plus several other bus util cleanups ()
Follow-up for 
2025-01-14 14:39:58 +01:00
Lennart Poettering
4ba24c46b3
sysusers: some tweaks, mostly around chase() use () 2025-01-14 14:38:32 +01:00
Lennart Poettering
255468d7f2 update TODO 2025-01-14 13:59:54 +01:00
Daan De Meyer
603a3a8f22
Update packaging specs () 2025-01-14 12:24:49 +01:00
Daan De Meyer
3c2fa8e050 fmf: Only move logs if corresponding directory exists
Otherwise find fails with an error.
2025-01-14 12:07:53 +01:00
Daan De Meyer
6309efbf31 dissect: Use COPY_MERGE
When copying a directory from or to an image, let's always merge
with existing directories instead of failing with "File Exists".

Fixes https://github.com/systemd/mkosi/issues/3342.
2025-01-14 11:13:25 +01:00
Daan De Meyer
9876c27390 mkosi: update fedora commit reference
* fd36e4c562 Rebuilt for the bin-sbin merge (2nd attempt)
* cddeca136f Rebuilt for the bin-sbin merge (2nd attempt)
* 20cc578e59 Enable signing systemd-boot on OBS builds
* b1bd57ecce Revert use of PrivateTmp=disconnected
* 30f50b1870 Drop patch numbers
* 1814bfe794 remove STI test
* 3a9c32b8a9 Version 257.2
* 4df2711a9f Add bcond for OBS-specific quirks
* e570cd53df spec: drop trailing whitespace
* c7379c9460 Replace 'udevadm hwdb' with systemd-hwdb
* 3386f5d704 Rename source .abignore file
* fd860fd12d Drop a build dependency on a linter package: pytest-flakes
* 133ae30e33 Drop patches based on %upstream macro instead of patch number
* e157552c6c Always build in release mode
* fc47a92e4a Re-enable upstream behaviour of systemd-tmpfiles --purge
* 62abb21906 Version 257.1
* 35e6814ef4 Add patch for test-time-util
* bd8339bf00 sysusers: support new ! line flag for creating fully locked accounts
* c2f5f4a68a Version 257
* 31aaef8e17 Enable slow tests during build
2025-01-14 11:05:02 +01:00
Daan De Meyer
55455280da mkosi: update arch commit reference
* 8160e63e52 Limit logic required for building locally
* 3a62443e41 OBS build: add support for xz and zst compression formats
* 9667464ad7 Get rid of _tag variable
* 73dc492b5e upgpkg: 257.2-2: rebuild with changes for service restart
* 6b7355b5bb do not restart any templated units
* 332718f955 exclude vmspawn units from restart as well
* 5a749a6716 exclude systemd-nspawn@* services from restart
* 8a10796f8b upgpkg: 257.2-1: new upstream release
* 16294a0b44 Add support for building from git in OBS
* 38b664eed4 upgpkg: 257.1-1: new upstream release
* e26158dda9 upgpkg: 257-1: new upstream release
* c984b75c3f restart services after upgrade...
* 27fae2c192 upgpkg: 256.9-1: new upstream release
* 1afdd08a60 upgpkg: 256.8-2: apply: shutdown: close DM block device before issuing DM_DEV_REMOVE ioctl
2025-01-14 11:05:02 +01:00
Daan De Meyer
6e5fb09d1c ci: Skip coverage workflow on forks
Fixes 
2025-01-14 11:04:05 +01:00
Lennart Poettering
5e35b6a5f7 lsm: improve logging about absence of lsm-bpf
In containers securityfs is typically not mounted. Our lsm-bpf code
so far detected this situation and claimed the kernel was lacking
lsm-bpf support. Which isn't quite true though, it might very well
support it. This made boots of systemd in systemd-nspawn a bit ugly,
because of the misleading log message at boot.

Let's improve things, and make clearer what is going on.
2025-01-14 09:53:56 +00:00
Daan De Meyer
1d77ac19cf test: Only move journal file if we didn't just unlink it 2025-01-14 10:21:45 +01:00
Mike Yuan
34f4b817f6
core/manager: restore bus track deserialization cleanup in manager_reload()
There's zero explanation why it got (spuriously) removed in
8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98...
2025-01-13 23:08:35 +01:00
Aman Verma
9b10bc107f update-done: remove spurious trailing whitespace from MESSAGE. 2025-01-13 22:54:42 +01:00
Mike Yuan
1446e3c392
core: serialize API bus id and validate before deserializing bus tracks 2025-01-13 21:52:19 +01:00
Mike Yuan
a9a8d2e12f
bus-util: introduce bus_get_instance_id() 2025-01-13 21:52:19 +01:00
Mike Yuan
af0e10354e
core/manager: drop duplicate bus track deserialization
bus_init_api() now does this internally
(after 8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98).
2025-01-13 21:52:19 +01:00
Mike Yuan
a7516260b3
core/manager: use FOREACH_ARRAY at one more place 2025-01-13 21:52:19 +01:00
Mike Yuan
33eeea4128
bus-util: do not reset the count returned by sd_bus_track_count_name()
Follow-up for 8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98

While at it, turn the retval check for sd_bus_track_count_name()
into assertion, given we're working with already established tracks
(service_name_is_valid() should never yield false in this case).

Addresses https://github.com/systemd/systemd/pull/35406#discussion_r1912066774
2025-01-13 21:52:18 +01:00
Mike Yuan
38a2c2bf6a
shared/serialize: introduce serialize_id128() 2025-01-13 21:52:13 +01:00
Mike Yuan
3f03d39ca3
shared/serialize: make input params const 2025-01-13 16:56:08 +01:00
Mike Yuan
91080bc973
shared/bus-util: move string set append/get funcs to bus-message-util and bus-get-properties, respectively 2025-01-13 16:55:42 +01:00
Mike Yuan
e3d37628aa
shared/bus-util: move bus_message_hash_ops to bus-message-util 2025-01-13 16:24:44 +01:00
Mike Yuan
ab33edb05b
shared/bus-util: move bus_message_read_id128() to bus-message-util 2025-01-13 16:24:44 +01:00
Lennart Poettering
3d6f14d327 tmpfiles: move two commands to the right --help sections 2025-01-13 15:05:41 +01:00
Lennart Poettering
0fd2c1fa59 sysusers: use chase_and_stat() where appropriate 2025-01-13 11:46:56 +01:00
Lennart Poettering
48b176cb2d sysusers: add missing assert() 2025-01-13 11:46:56 +01:00
Lennart Poettering
ca7d68f7f0 sysusers: modernize loading of user/group databases
Let's use chase(), and let's allocate sets/hashmaps on-the-fly.
2025-01-13 11:46:56 +01:00
Lennart Poettering
1696bc55f9 sysusers: rework --help to do sections, and ANSI highlighting 2025-01-13 11:46:56 +01:00
Daan De Meyer
79ac78e368 test: Fix bug in integration test wrapper 2025-01-13 11:06:37 +01:00
Lennart Poettering
361327e929
convert more code to PidRef () 2025-01-11 23:14:33 +01:00
Zbigniew Jędrzejewski-Szmek
ad7e0fdbf9
Extend elf package metadata to pe/coff files () 2025-01-11 13:12:39 +01:00
Luca Boccassi
81a62d9eaf README: add OBS status icon and link to instructions to add bleeding edge repo 2025-01-11 14:19:02 +09:00
Eaterminer
6cffdcd590
homectl: fix minor spelling mistake () 2025-01-11 14:17:05 +09:00
Luca Boccassi
8c5b359579 stub: drop PE sections parsing cap
This was added originally as it was thought that Windows applied
the same cap. Nowadays the specs do not mention it, and it is
believed Windows no longer applies it either, so drop it in order
to allow an arbitrary number of DTBs to be included

Fixes https://github.com/systemd/systemd/issues/35943
2025-01-10 22:51:46 +00:00
Lennart Poettering
97ac59f18d
machine: follow ups for varlink PRs recently merged ()
Follow ups for:
- https://github.com/systemd/systemd/pull/35880
- https://github.com/systemd/systemd/pull/35066
2025-01-10 22:12:22 +01:00
Daan De Meyer
beca4655dd
Test improvements () 2025-01-10 21:30:58 +01:00
Daan De Meyer
e0c2fd6a33 fmf: Skip TEST-21-DFUZZER
Similar to Github Actions, since we don't build with sanitizers in
the packit job, let's skip TEST-21-DFUZZER.
2025-01-10 16:14:01 +01:00
Daan De Meyer
53546c71fe fmf: Use different heuristic on beefy systems
If we save journals in /tmp, we can run a larger number of tests in
parallel so let's make use of the larger number of CPUs if the tests
run on a beefy machine.
2025-01-10 16:14:01 +01:00
Daan De Meyer
c32a8cdaa0 fmf: Bump inotify limits to avoid systemd-nspawn failures 2025-01-10 16:14:01 +01:00
Daan De Meyer
1f17ec0ed4 test: Move StateDirectory= directive into dropin
The integration-test-setup calls require StateDirectory= but some
tests override the test unit used which then won't have StateDirectory=
so let's move StateDirectory= into the dropin as well to avoid this
issue.
2025-01-10 16:14:01 +01:00
Daan De Meyer
84b30442d2 test: Don't register machines with machined unless we're in interactive mode 2025-01-10 16:14:01 +01:00
Daan De Meyer
e49fdecd16 test: Add option to save in progress test journals to /tmp
The journal isn't the best at being fast, especially when writing
to disk and not to memory, which can cause integration tests to
grind to a halt on beefy systems due to all the systemd-journal-remote
instances not being able to write journal entries to disk fast enough.

Let's introduce an option to allow writing in progress test journals
to use /tmp which can be used on beefy systems with lots of memory to
speed things up.
2025-01-10 16:13:58 +01:00
Lennart Poettering
d4ed594a1a
varlink: send linux errno name along with errno number in generic system error replies ()
Let's make things a bit less Linux specific, and more debuggable, by
including not just the error number but also the error name in the
generic io.systemd.System errors we generate when all we have is an
"errno".
2025-01-10 15:40:48 +01:00
Lennart Poettering
5e4e1b323e
pam_systemd: two refactorings ()
This is prepartion (and split out of) for . The refactors make a
ton of sense on their own however, too I htink.
2025-01-10 15:04:10 +01:00
Lennart Poettering
0b8b13324e namespace-util: port namespace_get_leader() to PidRef 2025-01-10 14:22:49 +01:00
Lennart Poettering
47e45ea738 process-util: make pidref_safe_fork_full() work with FORK_WAIT
(This is useful for the test case added in the next commit, where it's
kinda nice being able to use pidref_safe_fork_full() and acquiring a
pidref of the child in the child in one go. There's no other value in
this than a bit of synctactic sugar for that test. But otoh thre's no
good reason to prohibit FORK_WAIT use like this, hence either way, this
commit should be a good thing.)
2025-01-10 14:14:17 +01:00
Lennart Poettering
36812cb659 coredump: port to pidref_namespace_open() 2025-01-10 14:14:17 +01:00
Lennart Poettering
8703a50835 coredump: acquire further attributes via pidref rather than pid 2025-01-10 14:14:17 +01:00
Lennart Poettering
9237a63a80 process-util: add new helper pidref_get_ppid_as_pidref() 2025-01-10 14:14:17 +01:00