| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Follow-up for #26448.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
stub: Read extra kernel command line items from SMBIOS
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
This function can be used to find SMBIOS strings in the SMBIOS Type 11
table.
|
| |
| |
| |
| |
| | |
SMBIOS tables are immutable, so let's access it via const pointers
where possible.
|
| | |
|
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
strchr() should be able to search for the terminating null byte,
our implementation doesn't, let's fix that.
|
|\ \
| | |
| | | |
systemctl-list: several cleanups
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Rename struct path_info -> PathInfo,
- Drop struct path_infos,
- Use CLEANUP_ARRAY(),
No functional change, just refactoring.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Rename struct automount_info -> AutomountInfo,
- use CLEANUP_ARRAY(), and etc.
No functional change, just refactoring.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Rename struct timer_info -> TimerInfo,
- use CLEANUP_ARRAY().
No functional change, just refactoring.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Rename struct socket_info -> SocketInfo.
- Drop own_triggered field, and always copy the triggered field.
- Use CLEANUP_ARRAY().
No functional changes, just refactoring.
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
sd-journal: several fixlets and cleanups for sd_journal_send()
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This also makes
- use GREEDY_REALLOC() or GREEDY_REALLOC0(),
- use CLEANUP_ARRAY() macro.
|
| | | |
| | | |
| | | |
| | | | |
This also makes IOVEC_INIT_STRING() and IOVEC_MAKE_STRING() identical.
|
| | | | |
|
| |/ /
| | |
| | |
| | | |
It will be used in later commits.
|
| | |
| | |
| | |
| | |
| | | |
In config_parse_socket_listen(), we have checked the path is absolute,
however we have not in the dbus method.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
Initialize fds with -EBADF + drop one unneeded initialization
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Do not say " left" on every timer in LEFT column
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
core: remount sysfs when network and mount namespace are enabled
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | | |
No functional change, just preparation for later commits.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | | |
No functional change, just preparation for later commits.
|
| | | | |
| | | | |
| | | | |
| | | | | |
This will be used in later commits.
|
| | | | |
| | | | |
| | | | |
| | | | | |
This will be used in later commits.
|
| | | | |
| | | | |
| | | | |
| | | | | |
This also fixes a missing condition in exec_runtime_make().
|
| | | | | |
|
| | |/ /
| |/| | |
|
| | | |
| | | |
| | | |
| | | | |
Follow-up for 6d2326e036ceed30f9ccdb0266713c10a44dcf6c.
|
|\ \ \ \
| |/ / /
|/| | | |
sd-event: follow-ups for memory pressure event source
|
| | | |
| | | |
| | | |
| | | | |
Follow-up for 158fe190afe37b222c9dc2c53bd7be426b92ef89.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Follow-up for 158fe190afe37b222c9dc2c53bd7be426b92ef89.
Fixes CID#1505670.
|