| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | | |
When we open a watchdog fresh we have never pinged it, hence reset the
ping timestamp explicitly, so that it is not only reset the first time
we open the device, but all times.
|
| |/
| |
| |
| |
| | |
Let's put the "watchdog" always as prefix in the name, and not as suffix
or the middle. Just for reasons of naming hygiene
|
| |
| |
| |
| |
| | |
We should really have set O_CLOEXEC for all our fds, but better be safe
than sorry.
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
| |
libbpf returns error codes from the kernel unmodified, and we don't understand
them so non-fatal ones are handled as hard errors.
Add a translation helper, and start by translating 524 to EOPNOTSUPP, which is
returned when nsresourced tries to use LSM BPF hooks that are not
implemented on a given arch (in this case, arm64 is misssing trampolines).
Fixes https://github.com/systemd/systemd/issues/32170
|
|\
| |
| | |
logind-user: check linger file in user_wants_service_manager too
|
| |
| |
| |
| |
| |
| | |
Follow-up for 5099a50d4398e190387d204f5df81cc176bd33e2
Fixes #33005
|
| |
| |
| |
| | |
Also make the function take const User*
|
|/
|
|
|
|
|
|
| |
Mention in the warning message for a failed open on a to be removed file
why systemd-tmpfiles tried to open it.
Also open the file with the O_NOCTTY flag, since it should never become
the controlling terminal.
|
|\
| |
| | |
blockdev-util: for partition block devices partition scanning is always off
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Update wiki links
|
| |/ |
|
|\ \
| | |
| | | |
Optionally link ssh dropins
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
all cases
It's only needed on distros where sshd doesn't support drop-ins in /usr, which
is not the case on SUSE.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
in all cases
On distros like SUSE where ssh config dropins in /usr are supported, there's no
need for a symlink in /etc/ssh/ssh_config.d/ that points to the dropin
installed somewhere in /usr (that is not reachable by ssh).
|
| | |
| | |
| | |
| | |
| | | |
Also, previously GREEDY_REALLOC was used improperly,
causing the fds_array to be leaked when realloc() fails.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
disconnected from bus
if machined exits while a machine is still running, we'll issue the
UnrefUnit() call on the unit. This quite likely will fail if during
shutdown the bus connection is already down. But that's no reason to
warn at all, since the ref count will implicitly be dropped if our side
disappears from the bus. Hence, downgrade to LOG_DEBUG in case of
connection problems.
|
|\ \ \
| |_|/
|/| | |
Fixlets for missing_loop.h
|
| | |
| | |
| | |
| | |
| | |
| | | |
See https://github.com/torvalds/linux/blob/v6.10-rc1/include/uapi/linux/loop.h
Fixes a bug in b3fe33ff52ece458a5b990a4a68d59aef7cae10b.
|
| | |
| | |
| | |
| | | |
Fixes a bug introduced by 4d6437d33c45c3d31497f2e3bd8d415f775546b8.
|
|/ /
| |
| |
| |
| |
| | |
Note, journal_file_dump() is only used by tests.
Closes #33035.
|
| | |
|
|\ \
| | |
| | | |
blockdev-util: also check loop/partscan sysattr
|
| | |
| | |
| | |
| | |
| | |
| | | |
With https://github.com/torvalds/linux/commit/b9684a71fca793213378dd410cd11675d973eaa1 (v5.19),
we cannot check partition scanning is enabled for a loopback block device
without checking the attribute.
|
| | |
| | |
| | |
| | |
| | |
| | | |
With https://github.com/torvalds/linux/commit/430cc5d3ab4d0ba0bd011cfbb0035e46ba92920c,
the value of GENHD_FL_NO_PART, previously named as GENHD_FL_NO_PART_SCAN,
is changed from 0x0200 to 0x0004. So, we need to check both flags.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Denials from AppArmor are raised as EACCES, so EPERM is not enough. Do
the same check as PrivateNetwork above.
Fixes https://github.com/systemd/systemd/issues/31037
Related to 06384eb3c5044f632f50304a0210a402460f1189
|
|\ \ \
| | | |
| | | | |
journal: several fixlets for flushing runtime journal
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If the runtime journal is opened, we will anyway write journal entries
to the runtime journal, even if the persistent journal is writable.
Hence, we need to flush the runtime journal file later.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Then, we can use SD_JOURNAL_ASSUME_IMMUTABLE flag, and the performance
of reading runtime journal should be improved.
|
|\ \ \ \
| |_|/ /
|/| | | |
core: several cleanups/fixes for WorkingDirectory= handling
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Refuse WorkingDirectory=~ both in that and exec_invoke()
when dynamic user is used.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
get_fixed_user
Prompted by https://github.com/systemd/systemd/pull/33016#discussion_r1614848067
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Follow-up for 14631951cea807de2d482a430841c604c2040718
Before this commit, if WorkingDirectory= is empty or literally "-",
'simplified' is not populated, resulting in the ASSERT_PTR
in unit_write_settingf() below getting triggered.
Also, do not accept "-", so that the parser is consistent
with load-fragment.c
Fixes #33015
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This brings output on par with unit_log_process_exit().
|
|/ / /
| | |
| | |
| | | |
See also: https://lore.kernel.org/r/20240502130033.1958492-3-hch@lst.de
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Otherwise, tpm2_uneal() -> tpm2_build_sealing_policy() ->
tpm2_deserialize() will trigger assertion.
Prompted by #33017.
|
|/ /
| |
| |
| | |
Follow-up for 404aea7815595c1324947ed7f2a7502b17d3cc01.
|
| |
| |
| |
| |
| |
| |
| |
| | |
If an initrd has an empty or uninitialized /etc/machine-id file,
then PID1 write a valid machine ID. So, the logic is important only on
soft-reboot. Let's mention that explicitly.
Follow-up for 16718dcf78a90faf8c5f53d7bf63e3575bc78be7.
|
|/
|
|
|
|
|
|
|
|
| |
This effectively reverts ba540e9f1c29b430ac916918410c27171d14ab95.
https://github.com/systemd/systemd/pull/32915#discussion_r1608258136
> In many cases we allow --root=/ as a mechanism for forcing an "offline" mode,
> while still operating on the root dir. if we do the getenv_for_pid() thing
> below I'd claim this is very much an "online" operation, and hence --root=/
> should really disable that.
|
|\
| |
| | |
Improve parsing of kernel/install.conf
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Before:
/etc/kernel/install.conf:6: Unknown key name 'asdf' in section '(null)', ignoring.
After:
/etc/kernel/install.conf:6: Unknown key 'asdf', ignoring.
Also make the message a bit better.
|