summaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | ukify: Drop unused size() methodDaan De Meyer2024-09-301-3/+0
| |/ /
* | | Merge pull request #34564 from YHNdnzj/systemctl-status-job-idMike Yuan2024-09-304-15/+20
|\ \ \ | | | | | | | | systemctl: also show job id in status output
| * | | systemctl: also show job id in status outputMike Yuan2024-09-261-0/+6
| | | | | | | | | | | | | | | | Prompted by one ASG talk ;)
| * | | shared/bus-map-properties: move bus_map_job_id() from wait-for-unitsMike Yuan2024-09-263-15/+14
| |/ /
* | | Merge pull request #34508 from intelfx/work/fix-io-reportingMike Yuan2024-09-304-10/+18
|\ \ \ | | | | | | | | core/cgroup: cache IO accounting data when pruning a cgroup
| * | | core/cgroup: cache IO accounting data when pruning a cgroupIvan Shapovalov2024-09-231-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When removing a cgroup in unit_prune_cgroup(), read IO metrics to cache them similar to the existing treatment of the CPU and memory usage data. Note that we do not do this for the IP metrics as the firewall objects are only destroyed in unit_free() and thus stay alive long enough to be read out directly by all interested parties. Fixes #26988.
| * | | core/cgroup: drop `allow_cache` parameter in `unit_get_io_accounting()`Ivan Shapovalov2024-09-214-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The name of the parameter is misleading and it does not save us much work because it is not used during regular unit property queries. It is only used during unit_log_resources(), and the cgroup is already dead by that point so it won't be read anyway.
* | | | tpm2-util: show loaded libraries in 'systemd-analyze has-tpm2'Yu Watanabe2024-09-302-21/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After 3b16e9f41983f697bc38c40bb8e7119c1bb4f7c8, even the libraries are documented in the man page, it is useful to mention which libraries are checked in the command output. Of course, the dependencies are kind of implementation detail, and may be changed in the future version, but that's especially why I think showing the library deps in the output is useful. systemd-analyze is a debugging tool, and already shows many internal states. I think there is nothing to prevent from showing the deps. Prompted by #34477.
* | | | logind-dbus: really cancel scheduled shutdownDavid Tardon2024-09-301-3/+3
| | | | | | | | | | | | | | | | Fixes #34554
* | | | Merge pull request #34572 from keszybz/fix-printing-of-RootImageOptionsZbigniew Jędrzejewski-Szmek2024-09-283-7/+35
|\ \ \ \ | | | | | | | | | | Fix printing of RootImageOptions
| * | | | shared: adjust whitespace and formattingZbigniew Jędrzejewski-Szmek2024-09-273-7/+12
| | | | |
| * | | | systemctl: fix printing of RootImageOptionsZbigniew Jędrzejewski-Szmek2024-09-271-0/+23
| | |/ / | |/| | | | | | | | | | | | | | | | | | The type is a(ss), so a custom printer is required. Fixes https://github.com/systemd/systemd/issues/33967.
* | | | Merge pull request #34548 from SimonPilkington/fix-creds-catMike Yuan2024-09-271-1/+5
|\ \ \ \ | |_|_|/ |/| | | creds: fix cat with encrypted credentials
| * | | creds: fix cat with encrypted credentialsSimon Pilkington2024-09-251-1/+5
| |/ / | | | | | | | | | Fixes: https://github.com/systemd/systemd/issues/34547
* / / seccomp-util: include @sandbox in @defaultMickaël Salaün2024-09-272-1/+1
|/ / | | | | | | | | | | | | | | | | | | Every services and containers should be able to protect their users and limit the impact of security bugs thanks to the security syscalls provided by seccomp and Landlock. The goal of these syscalls is to improve security with additional restrictions. They are designed to be safely used by unprivileged (and then potentially malicious) users. Remove the now-redundant "seccomp" entry for nspawn.
* | repart: Determine verity sig size based on partition designatorDaan De Meyer2024-09-241-1/+1
| | | | | | | | | | | | Verity= is an image build concept, not a first boot concept, whereas a partition designator is always available, so let's do the size stuff based on that.
* | repart: Use swap format for swap partition even if encryptedDaan De Meyer2024-09-231-3/+3
| |
* | repart: Add a log message when we're about to fsync().Daan De Meyer2024-09-231-0/+2
| |
* | Preset user units on first boot as wellDaan De Meyer2024-09-211-6/+10
| | | | | | | | | | | | We need to make sure the presets from /usr/lib/systemd/user-preset are applied as well. Currently only the ones from /usr/lib/systemd/system-preset are applied.
* | Merge pull request #34511 from YHNdnzj/strv-extend-strv-consumeYu Watanabe2024-09-2129-187/+236
|\ \ | | | | | | basic/strv: introduce strv_extend_strv_consume()
| * | tree-wide: use strv_extend_strv_consume() where appropriateMike Yuan2024-09-2120-111/+52
| | |
| * | basic/strv: introduce strv_extend_strv_consume()Mike Yuan2024-09-213-5/+104
| | |
| * | basic/strv: make string_strv_hash_ops static, add missing assertionsMike Yuan2024-09-202-3/+15
| | |
| * | shared/bus-map-properties: modernize map_basic() and bus_map_strv_sort()Mike Yuan2024-09-201-29/+23
| | |
| * | basic/memory-util: make mempcpy_typesafe() take number of obj rather than ↵Mike Yuan2024-09-201-1/+6
| | | | | | | | | | | | | | | | | | raw size Follow-up for eda6223942a172fa6777901cf5fbd47438f285ce
| * | basic: replace size_multiply_overflow() with MUL_ASSIGN_SAFE where applicableMike Yuan2024-09-203-25/+23
| | |
| * | basic/macro: move DECIMAL_STR_FMT to shared/testsMike Yuan2024-09-202-13/+13
| | | | | | | | | | | | This shall never be used outside of test functions.
* | | Merge pull request #34502 from yuwata/strv_find_closestYu Watanabe2024-09-216-84/+109
|\ \ \ | | | | | | | | strv: introduce strv_find_closest()
| * | | verbs: use strv_find_closest()Yu Watanabe2024-09-202-74/+43
| | | | | | | | | | | | | | | | This also makes the list of verbs is always shown on failure.
| * | | strv: introduce strv_find_closest()Yu Watanabe2024-09-204-10/+66
| | |/ | |/| | | | | | | Follow-up for 1e1ac5d53b0f126b6c4419506c7c42b67c07537f.
* | | machined-dbus: move manager_add_machine() and _get_machine_by_pid() to -coreMike Yuan2024-09-212-51/+53
| | |
* | | machined: rename machine_{units,leaders} to machines_by_*Mike Yuan2024-09-214-25/+33
| | | | | | | | | | | | Also port machines_by_leader to store PidRef-s.
* | | machined: fix bogus error check for machine_link()Mike Yuan2024-09-213-8/+9
| |/ |/|
* | Add an extra debug log to dissect_image()Daan De Meyer2024-09-201-0/+3
| |
* | machine: fix bus method argument name: who -> whomYu Watanabe2024-09-201-1/+1
|/ | | | Follow-up for cd2fb04960b8aa0b353d12005b8cfc3b9d2bcfee.
* sd-ipv4acd: fix assertion triggered when an ARP received in STARTED stateYu Watanabe2024-09-201-0/+1
| | | | | | | When a network is busy, an ARP may be received before the timer event source triggered first time. Fixes #34489.
* Merge pull request #34499 from YHNdnzj/sd-path-trivial-cleanupYu Watanabe2024-09-202-109/+63
|\ | | | | sd-path: trivial cleanups
| * sd-path: trivial cleanups for sd_path_lookup{,_strv}()Mike Yuan2024-09-202-43/+33
| |
| * sd-path: modernize from_user_dir()Mike Yuan2024-09-201-66/+30
| | | | | | | | | | | | Deduplicate logic through sd_path_lookup() and from_home_dir(). Besides, rename to from_xdg_user_dir() to indicate it's a XDG thing.
* | Merge pull request #34496 from YHNdnzj/tmpfiles-neg-errnoYu Watanabe2024-09-201-23/+17
|\ \ | | | | | | tmpfiles: ERRNO_IS_NOINFO -> _IS_NEG_, correct negative errno checks
| * | tmpfiles: ERRNO_IS_NOINFO -> _IS_NEG_, correct negative errno checksMike Yuan2024-09-201-12/+12
| | |
| * | tmpfiles: use RET_GATHER moreMike Yuan2024-09-201-11/+5
| |/
* | firstboot: add similar input suggestionMichael Ferrari2024-09-203-5/+42
| | | | | | | | | | | | This uses the same logic as similar verb suggestion for command line utilities. Try to be helpful when the user entered something invalid instead of just showing the prompt again.
* | basic/memory-util: introduce mempcpy_typesafeMike Yuan2024-09-207-14/+16
| |
* | boot: use INC_SAFE where appropriateMike Yuan2024-09-201-1/+1
| |
* | Merge pull request #34480 from yuwata/test-seccomp-suppress-syncYu Watanabe2024-09-202-7/+72
|\ \ | | | | | | seccomp-util: pass negative fds as is to fsync() and friends
| * | test: add tests for seccomp_suppress_sync()Yu Watanabe2024-09-191-0/+52
| | |
| * | seccomp-util: pass negative fds as is to fsync() and friendsYu Watanabe2024-09-191-7/+20
| |/ | | | | | | | | | | Closes #34478. Co-authored-by: Mike Yuan <me@yhndnzj.com>
* / kernel-install: add uki.conf examplecvlc122024-09-202-0/+37
|/
* Merge pull request #34486 from DaanDeMeyer/test-process-utilYu Watanabe2024-09-193-207/+284
|\ | | | | test-process-util: Migrate to new assertion macros