summaryrefslogtreecommitdiffstats
path: root/src/systemctl (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-10-09NEWS: announce the F20/F21/F22/F23 key mangling removal scheduled for v258Lennart Poettering1-0/+12
As per: https://github.com/systemd/systemd/pull/34325 And: https://github.com/systemd/systemd/issues/34323
2024-10-09update TODOLennart Poettering1-0/+6
2024-10-09core: drop implicit support of PrivateTmp=offYu Watanabe5-6/+6
Follow-up for 0e551b04efb911d38b586cca1a6a462c87a2cb1b. Similar to the previous commit, but for PrivateTmp=.
2024-10-08core/dbus: pass transient unit name metadata to polkitRenjaya Raga Zenta1-1/+8
Fixes #17224
2024-10-08core/dbus: add assertionsYu Watanabe1-0/+12
2024-10-08core/dbus: introduce bus_verify_manage_units_async_impl()Yu Watanabe2-21/+33
Then, make bus_verify_manage_units_async() and _full() inline. Co-authored-by: Renjaya Raga Zenta <ragazenta@gmail.com>
2024-10-08core/dbus: move bus_verify_xyz() to dbus-util.cYu Watanabe5-49/+51
2024-10-08mount: optimize mountinfo traversal by decoupling device discoveryChen Guanqiao1-1/+6
In mount_load_proc_self_mountinfo(), device_found_node() is synchronously called during the traversal of mountinfo entries. When there are a large number of mount points, and the device types are not significantly different, this results in excessive time consumption during device discovery, causing a performance bottleneck. This issue is particularly prominent on servers with a large number of cores in IDC. This patch decouples device discovery from the mountinfo traversal process, avoiding redundant device operations. As a result, it significantly improves performance, especially in environments with numerous mount points. Signed-off-by: Chen Guanqiao <chen.chenchacha@foxmail.com>
2024-10-08core: drop implicit support of PrivateUsers=offYu Watanabe5-9/+9
Follow-up for fa693fdc7e17618958c505af4b2f39ecd1c3363e. The documentation says the option takes a boolean or one of the "self" and "identity". But the parser uses private_users_from_string() which also accepts "off". Let's drop the implicit support of "off".
2024-10-08oomd: separate entries with comma for readabilityYu Watanabe1-3/+3
2024-10-08oomd: update system context when oomctl is invokedYu Watanabe1-0/+7
Otherwise, oomctl shows 0 memory and swap usage when swap monitoring is not enabled. ======= $ oomctl Dry Run: no Swap Used Limit: 90.00% Default Memory Pressure Limit: 60.00% Default Memory Pressure Duration: 20s System Context: Memory: Used: 0B Total: 0B Swap: Used: 0B Total: 0B Swap Monitored CGroups: Memory Pressure Monitored CGroups: ... ======
2024-10-08oomd: drop unused usec_nowYu Watanabe1-5/+0
2024-10-08systemctl: separate memory usage with commaYu Watanabe1-17/+17
Just for readability. Before: $ build/systemctl status -n 0 systemd-networkd.service | grep Memory: Memory: 4.7M (peak: 14.3M swap: 1M swap peak: 1.1M) After: $ build/systemctl status -n 0 systemd-networkd.service | grep Memory: Memory: 4.7M (peak: 14.3M, swap: 1M, swap peak: 1.1M)
2024-10-08core: suppress one debugging logYu Watanabe1-1/+5
Otherwise, the log is shown even when getting properties. Even though it is in the debug level, that's quite noisy. [ 338.785847] TEST-55-OOMD.sh[1624]: Oct 07 16:35:15 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.786985] TEST-55-OOMD.sh[1624]: Oct 07 16:35:17 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.787412] TEST-55-OOMD.sh[1624]: Oct 07 16:35:20 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.791776] TEST-55-OOMD.sh[1624]: Oct 07 16:35:22 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.792938] TEST-55-OOMD.sh[1624]: Oct 07 16:35:24 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.793225] TEST-55-OOMD.sh[1624]: Oct 07 16:35:26 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.793424] TEST-55-OOMD.sh[1624]: Oct 07 16:35:28 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.796448] TEST-55-OOMD.sh[1624]: Oct 07 16:35:31 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.797997] TEST-55-OOMD.sh[1624]: Oct 07 16:35:33 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount [ 338.799206] TEST-55-OOMD.sh[1624]: Oct 07 16:35:35 H systemd[1]: TEST-55-OOMD-testmunch.service: Unit not running in private mount namespace, cannot live mount
2024-10-08core/manager: Deprecate StartAuxiliaryScope() methodMichal Koutný3-8/+12
The method was added with migration of resources in mind (e.g. process's allocated memory will follow it to the new scope), however, such a resource migration is not in cgroup semantics. The method may thus have the intended users and others could be guided to StartTransientUnit(). Since this API was advertised in a regular release, start the removal with a deprecation message to callers. Eventually, the goal is to remove the method to clean up DBus API and simplify code (removal of cgroup_context_copy()). Part of DBus docs is retained to satisfy build checks.
2024-10-08man: `machinectl(1)`: Fix description of subcommand `poweroff`David Joaquín Shourabi Porcel1-1/+1
2024-10-08man: `systemd-nspawn(1)`: Fix some typosDavid Joaquín Shourabi Porcel1-2/+2
2024-10-08fd-util: use F_DUPFD_QUERY for same_fd()Lennart Poettering3-11/+63
Catch up with the nice little toys the kernel fs developers have added for us. Preferably, let's make use of the new F_DUPFD_QUERY fcntl() call that checks whether two fds are just duplicates of each other (duplicates as in dup(), not as in open() of the same inode, i.e. whether they share a single file offset and so on). This API is much nicer, since it is a core kernel feature, unlike the kcmp() call we so far used, which is part of the (optional) checkpoint/restore stuff. F_DUPFD_QUERY is available since kernel 6.10.
2024-10-08fd-util: introduce fd_validate() helperLennart Poettering5-22/+42
It just uses F_GETFD to validate an fd. it's a bit easier to read though, and handles the < 0 case internally.
2024-10-08tree-wide: replace reallocarray() with GREEDY_REALLOC()Yu Watanabe18-177/+81
2024-10-08sd-bus: introduce bus_process_cmsg()Yu Watanabe1-46/+52
- Close all fds on failure. - Close pidfd on success.
2024-10-08analyze: use RET_GATHER()Yu Watanabe2-10/+2
2024-10-08test: add test cases for timestamp with time zoneYu Watanabe1-0/+7
2024-10-08time-util: copy input string before fork()Yu Watanabe1-0/+8
Fixes #34670.
2024-10-08time-util: fix parsing timestamp with NZ timezoneYu Watanabe2-2/+37
Fixes a bug caused by ef658a63f8163607d9e04f710cd26c0d36ff68ce.
2024-10-08core: use memdup_suffix0() at one more placeYu Watanabe1-4/+1
2024-10-08prioq: use GREEDY_REALLOC() and structured initializerYu Watanabe1-18/+7
No functional change, just refactoring.
2024-10-08mkosi: mark test as skipped when QEMU crashesLuca Boccassi1-0/+8
On Ubuntu/Debian infrastructure QEMU crashes a lot, so mark the test as skipped in that case as there's nothing we can do about it and we shouldn't mark runs as failed
2024-10-07semaphore: do not build docsLuca Boccassi1-2/+2
There are other CI runs that build manpages, speed up build which is close to 1hr limit
2024-10-07semaphore: stop building and running extra unit testsLuca Boccassi1-1/+1
This slows down the build, which is often near the 1hr limit. There are other jobs running the extra unit tests.
2024-10-07mkosi: update debian commit referenceLuca Boccassi1-1/+1
* 51389fefca Upstream profile: skip dh_strip_nondeterminism * 647fd0d40c Install kernel-install uki.conf example * ddfeb24f55 autopkgtest: skip gdm3 on armel for smoke tests
2024-10-07Add ExtraFileDescriptor property to StartTransientUnit dbus APIRyan Wilson11-46/+316
This adds the ExtraFileDescriptor property to StartTransient dbus API with format "a(hs)" - array of (file descriptor, name) pairs. The FD will be passed to the unit via sd_notify like Socket and OpenFile. systemctl show also shows ExtraFileDescriptorName for these transient units. We only show the name passed to dbus as the FD numbers will change once passed over the unix socket and are duplicated, so its confusing to display the numbers. We do not add this functionality for systemd-run or general systemd service units as it is not useful for general systemd services. Arguably, it could be useful for systemd-run in bash scripts but we prefer to be cautious and not expose the API yet. Fixes: #34396
2024-10-07Semaphore: switch from /tmp to /var/tmp to avoid disk space issuesLuca Boccassi1-2/+3
Builds have been failing as we run out of space in /tmp/, move to /var/tmp
2024-10-07machine: tests for varlink interfacesIvan Kruglov1-7/+61
- io.systemd.Machine.List - io.systemd.Machine.Kill - io.systemd.Machine.Terminate - io.systemd.Machine.Register - io.systemd.Machine.Unregister
2024-10-07machine: extend io.systemd.Machine.List output with sshPrivateKeyPath fieldIvan Kruglov2-2/+5
Effectivelly, this is an implementation of GetMachineSSHInfo in dbus.
2024-10-07machine: use JSON_BUILD_PAIR_STRING_NON_EMPTY() in io.systemd.Machine.List ↵Ivan Kruglov1-4/+4
output
2024-10-07machine: introduce io.systemd.Machine.Kill varlink methodIvan Kruglov4-1/+78
2024-10-07machine: introduce io.systemd.Machine.Terminate varlink methodIvan Kruglov4-1/+36
2024-10-07machine: introduce io.systemd.Machine.Unregister varlink methodIvan Kruglov4-2/+64
2024-10-07machine: io.systemd.Machine.List supports 'pid' filterIvan Kruglov4-10/+123
2024-10-07test: set TEST_NESTED_KVM as defaultThomas Blume2-11/+5
2024-10-07mkosi: Switch to Fedora 41Daan De Meyer1-1/+1
It's due for release soon and will fix the flakyness of TEST-58-REPART so let's bump the Fedora 40 job to Fedora 41.
2024-10-07sd-json: use sd_json_dispatch_const_string() in sd_json_dispatch_string()Yu Watanabe2-22/+8
Also, do similar for json_dispatch_user_group_name().
2024-10-07tree-wide: drop doubled empty linesYu Watanabe62-69/+0
2024-10-07network: use Network.name for bus pathYu Watanabe1-20/+3
No functional change, just refactoring.
2024-10-07networkctl: sort ifindexes in status commandYu Watanabe1-9/+44
Before: $ networkctl status ● Interfaces: 372, 368, 373, 375, 376, 377, 378, 379, 381, 391, 3, 1201, 1202, 1184, 1610, 9, 8, 1340, 2, 1, 1256, 7 After: $ networkctl status ● Interfaces: 1, 2, 3, 7, 8, 9, 368, 372, 373, 375, 376, 377, 378, 379, 381, 391, 1184, 1201, 1202, 1256, 1340, 1610
2024-10-07homectl: drop unnecessary bracketsYu Watanabe1-2/+1
Follow-up for 164ca24d7464253e5f8375226b792ef8f6eaffd0.
2024-10-07po: Translated using Weblate (Kabyle)ButterflyOfFire1-8/+9
Currently translated at 3.1% (8 of 253 strings) Co-authored-by: ButterflyOfFire <butterflyoffire@protonmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/kab/ Translation: systemd/main
2024-10-07core: warn if a generator is world-writableLukas Nykryn3-1/+14
... because that is obviously a security risk.
2024-10-07hwdb: add SCAI SKU prefix for Samsung keyboard mapping (#34648)Joshua Grisham1-10/+11