summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* man,catalog: fix typoYu Watanabe2023-02-242-3/+3
| | | | Follow-up for #26448.
* shared: move cg_set_access() declaration to right header fileLennart Poettering2023-02-233-1/+3
| | | | | | This function was moved from cgroup-util.c to cgroup-setup.c a while back, but the prototype in the matching header files wasn't migrated. Let's fix that.
* journal-file: Improve debug messagesDaan De Meyer2023-02-231-19/+26
|
* journal-file: Fix return value in bump_entry_array()Daan De Meyer2023-02-231-1/+2
|
* systemctl: use bus_message_hash_opsYu Watanabe2023-02-231-18/+8
|
* man: link up sd_event_add_memory_pressure() moreLennart Poettering2023-02-231-0/+2
|
* Merge pull request #26258 from DaanDeMeyer/boot-smbiosDaan De Meyer2023-02-237-20/+142
|\ | | | | stub: Read extra kernel command line items from SMBIOS
| * vmm: Modernize get_smbios_table()Daan De Meyer2023-02-231-11/+7
| |
| * stub: Read extra kernel command line items from SMBIOSDaan De Meyer2023-02-232-0/+24
| | | | | | | | | | | | | | Let's read more kernel command line arguments from SMBIOS OEM string io.systemd.stub.kernel-cmdline-extra. This allows adding debug kernel command line arguments when booting in qemy without having to modify the UKI.
| * vmm: Add smbios_find_oem_string()Daan De Meyer2023-02-232-3/+43
| | | | | | | | | | This function can be used to find SMBIOS strings in the SMBIOS Type 11 table.
| * vmm: Add more constDaan De Meyer2023-02-231-7/+7
| | | | | | | | | | SMBIOS tables are immutable, so let's access it via const pointers where possible.
| * efi-string: Add efi_memchr()Daan De Meyer2023-02-233-0/+29
| |
| * efi-string: Add startswith8()Daan De Meyer2023-02-223-0/+29
| | | | | | | | | | startswith() from string-util-fundamental.h is defined for sd_char which is char16_t, so let's add an implementation for char as well.
| * efi-string: Fix strchr() null byte handlingDaan De Meyer2023-02-222-1/+5
| | | | | | | | | | strchr() should be able to search for the terminating null byte, our implementation doesn't, let's fix that.
* | Merge pull request #26535 from yuwata/systemctl-list-cleanupsYu Watanabe2023-02-232-279/+307
|\ \ | | | | | | systemctl-list: several cleanups
| * | systemctl: cleanups for list-pathsYu Watanabe2023-02-231-67/+62
| | | | | | | | | | | | | | | | | | | | | | | | - Rename struct path_info -> PathInfo, - Drop struct path_infos, - Use CLEANUP_ARRAY(), No functional change, just refactoring.
| * | systemctl: cleanups for list-automountsYu Watanabe2023-02-231-37/+47
| | | | | | | | | | | | | | | | | | | | | - Rename struct automount_info -> AutomountInfo, - use CLEANUP_ARRAY(), and etc. No functional change, just refactoring.
| * | systemctl: cleanups for list-timersYu Watanabe2023-02-232-52/+81
| | | | | | | | | | | | | | | | | | | | | - Rename struct timer_info -> TimerInfo, - use CLEANUP_ARRAY(). No functional change, just refactoring.
| * | systemctl: cleanups for list-socketsYu Watanabe2023-02-231-100/+104
| | | | | | | | | | | | | | | | | | | | | | | | - Rename struct socket_info -> SocketInfo. - Drop own_triggered field, and always copy the triggered field. - Use CLEANUP_ARRAY(). No functional changes, just refactoring.
| * | systemctl-list-units: drop unused return valueYu Watanabe2023-02-231-18/+10
| | |
| * | systemctl-list-units: fix memleak on errorYu Watanabe2023-02-231-7/+5
| | |
* | | Merge pull request #26560 from yuwata/journal-send-fix-memleak-and-cleanupsYu Watanabe2023-02-233-71/+57
|\ \ \ | | | | | | | | sd-journal: several fixlets and cleanups for sd_journal_send()
| * | | sd-journal: fix memleak and freeing invalid pointersYu Watanabe2023-02-231-69/+38
| | | | | | | | | | | | | | | | | | | | | | | | This also makes - use GREEDY_REALLOC() or GREEDY_REALLOC0(), - use CLEANUP_ARRAY() macro.
| * | | io-util: drop double evaluation in IOVEC_INIT_STRING()Yu Watanabe2023-02-231-2/+6
| | | | | | | | | | | | | | | | This also makes IOVEC_INIT_STRING() and IOVEC_MAKE_STRING() identical.
| * | | io-util: introduce IOVEC_NULLYu Watanabe2023-02-231-0/+1
| | | |
| * | | io-util: introduce iovec_array_free()Lennart Poettering2023-02-232-0/+12
| |/ / | | | | | | | | | It will be used in later commits.
* | | core/dbus-socket: check the socket path is absoluteYu Watanabe2023-02-231-1/+1
| | | | | | | | | | | | | | | In config_parse_socket_listen(), we have checked the path is absolute, however we have not in the dbus method.
* | | execute: pass ambient caps from PAM through to invoked serviceLennart Poettering2023-02-231-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | If a PAM service sets some ambient caps, we should honour that, hence query it, and merge it with our own ambient settings. This needs to be done manually since otherwise dropping privs via setresuid() will undo all such caps, and we need to manually tweak things to keep them.
* | | Merge pull request #26563 from dtardon/fd-initZbigniew Jędrzejewski-Szmek2023-02-235-7/+7
|\ \ \ | | | | | | | | Initialize fds with -EBADF + drop one unneeded initialization
| * | | bootctl: drop unneeded initializationDavid Tardon2023-02-231-1/+1
| | | |
| * | | tree-wide: initialize fds with -EBADFDavid Tardon2023-02-235-6/+6
| | | |
* | | | Merge pull request #26556 from keszybz/list-timers-optimize-leftZbigniew Jędrzejewski-Szmek2023-02-236-20/+103
|\ \ \ \ | | | | | | | | | | Do not say " left" on every timer in LEFT column
| * | | | systemctl: make list-timers not say "left" in "LEFT" columnZbigniew Jędrzejewski-Szmek2023-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We would print: NEXT LEFT LAST PASSED UNIT > Wed 2023-02-22 23:55:00 CET 20min left Wed 2023-02-22 23:25:00 CET 9min ago pmlogger_check.timer > Wed 2023-02-22 23:55:10 CET 21min left Wed 2023-02-22 23:25:16 CET 8min ago pmlogger_farm_check.timer > Wed 2023-02-22 23:58:00 CET 23min left Wed 2023-02-22 23:28:02 CET 6min ago pmie_check.timer > Wed 2023-02-22 23:58:10 CET 24min left Wed 2023-02-22 23:28:11 CET 5min ago pmie_farm_check.timer > Thu 2023-02-23 00:00:00 CET 25min left Wed 2023-02-22 00:00:10 CET 23h ago logrotate.timer > Thu 2023-02-23 00:00:00 CET 25min left Wed 2023-02-22 00:00:10 CET 23h ago unbound-anchor.timer > Thu 2023-02-23 00:08:00 CET 33min left Wed 2023-02-22 00:08:05 CET 23h ago pmie_daily.timer > Thu 2023-02-23 00:10:00 CET 35min left Wed 2023-02-22 00:10:03 CET 23h ago pmlogger_daily.timer > Thu 2023-02-23 00:14:14 CET 40min left Wed 2023-02-22 22:35:09 CET 58min ago dnf-makecache.timer > Thu 2023-02-23 05:05:04 CET 5h 30min left Wed 2023-02-22 03:29:00 CET 20h ago plocate-updatedb.timer > Thu 2023-02-23 11:34:34 CET 12h left Wed 2023-02-22 11:34:33 CET 11h ago systemd-tmpfiles-clean.timer > Sun 2023-02-26 01:00:00 CET 3 days left Mon 2023-02-20 07:51:59 CET 2 days ago raid-check.timer > Mon 2023-02-27 00:19:48 CET 4 days left Mon 2023-02-20 07:51:59 CET 2 days ago fstrim.timer > Mon 2023-02-27 12:34:36 CET 4 days left Tue 2023-02-21 08:22:14 CET 1 day 15h ago archlinux-keyring-wkd-sync.time> The "left" part uses precious screen estate and is pretty much implied by the column name. Drop it.
| * | | | shared/format-table: optionally print timestamps without "left"Zbigniew Jędrzejewski-Szmek2023-02-225-19/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This just adds the base functionality and some unit tests. With TABLE_TIMESTAMP_RELATIVE we print "5s ago" and "5s left", with the new TABLE_TIMESTAMP_LEFT, we print "5s ago" but "5s". This is more useful for cases where we generally only want to print timestamps in the future.
* | | | | Merge pull request #26458 from yuwata/core-network-namespace-remount-sysfsLennart Poettering2023-02-2318-28/+484
|\ \ \ \ \ | |_|/ / / |/| | | | core: remount sysfs when network and mount namespace are enabled
| * | | | test-execute: add test for PrivateNetwork= with/without mount namespacingYu Watanabe2023-02-233-3/+22
| | | | |
| * | | | core/namespace: mount new sysfs when new network namespace is requestedYu Watanabe2023-02-234-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Even when a mount namespace is created, previously host's sysfs is used, especially with RootDirectory= or RootImage=, thus service processes can still access the properties of the network interfaces in the main network namespace through sysfs. This makes, sysfs is remounted with the new network namespace tag, except when PrivateMounts= is explicitly disabled. Hence, the properties of the network interfaces in the main network namespace cannot be accessed by service processes through sysfs. Fixes #26422.
| * | | | core/namespace: introduce a new namespace mount mode PRIVATE_SYSFSYu Watanabe2023-02-231-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful when a service running with a new network namespace. The mount mode is not used yet, but will be used in a later commit.
| * | | | core/namespace: rename SYSFS -> BIND_SYSFSYu Watanabe2023-02-231-7/+7
| | | | | | | | | | | | | | | | | | | | No functional change, just preparation for later commits.
| * | | | mount-util: introduce remount_sysfs()Yu Watanabe2023-02-233-1/+339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful when creating a new network namespace. Unlike procfs, we need to remount sysfs, otherwise properties of the network interfaces in the main network namespace are still accessible through the old sysfs, e.g. /sys/class/net/eth0. All sub-mounts previously mounted on the sysfs are moved onto the new sysfs mount. The function will be used in later commits.
| * | | | core/execute: make PrivateMounts= tristateYu Watanabe2023-02-234-5/+6
| | | | | | | | | | | | | | | | | | | | No functional change, just preparation for later commits.
| * | | | core/dbus-util: introduce bus_set_transient_tristate()Yu Watanabe2023-02-232-0/+25
| | | | | | | | | | | | | | | | | | | | This will be used in later commits.
| * | | | bus-util: introduce bus_property_get_tristate()Yu Watanabe2023-02-232-0/+17
| | | | | | | | | | | | | | | | | | | | This will be used in later commits.
| * | | | core/execute: introduce exec_needs_ipc_namespace() helper functionYu Watanabe2023-02-231-6/+11
| | | | | | | | | | | | | | | | | | | | This also fixes a missing condition in exec_runtime_make().
| * | | | core/execute: introduce exec_needs_network_namespace() helper functionYu Watanabe2023-02-233-5/+12
| | | | |
| * | | | core/namespace: drop unused field in NamespaceInfoYu Watanabe2023-02-232-2/+0
| | |/ / | |/| |
* | | | sd-event: fix error handlingYu Watanabe2023-02-231-1/+1
| | | | | | | | | | | | | | | | Follow-up for 6d2326e036ceed30f9ccdb0266713c10a44dcf6c.
* | | | Merge pull request #26559 from yuwata/sd-event-memory-pressure-follow-upsLennart Poettering2023-02-231-4/+5
|\ \ \ \ | |/ / / |/| | | sd-event: follow-ups for memory pressure event source
| * | | sd-event: fix error handlingYu Watanabe2023-02-231-3/+4
| | | | | | | | | | | | | | | | Follow-up for 158fe190afe37b222c9dc2c53bd7be426b92ef89.
| * | | sd-event: fix use of uninitialized variableYu Watanabe2023-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Follow-up for 158fe190afe37b222c9dc2c53bd7be426b92ef89. Fixes CID#1505670.