| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Follow-up for 4fc7e4f374bf4401330e90e267227267abf1dcac
|
|
|
|
|
|
|
|
|
|
|
|
| |
Let's be more precise here. Otherwise people might think this describes
the software system or so. We already expose this via hostnamed as
HardwareVendor/HardwareModel hence use the exact same wording.
(Note that the relevant props on the dmi device are just VENDOR/MODEL,
but that's OK given that DMI really is about hardware anyway,
unconditionally, hence no chance of confusion there.)
Follow-up for 4fc7e4f374bf4401330e90e267227267abf1dcac
|
|\
| |
| | |
TEST-68: replace daemon-reload with separate handler units
|
| |
| |
| |
| |
| |
| |
| |
| | |
On a very slow machine, things are executed out-of-order, and something
pins the previously-exited unit. Instead of fighting with this with daemon-reload,
let's just use a different cleanup unit.
Hopefully fixes #22755.
|
| |
| |
| |
| |
| | |
The name of the unit already says all, no need to duplicate this.
And the comments can easily get out of date, as they did.
|
|\ \
| | |
| | | |
util-lib: efi variable access refactorings
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Some refactoring: split efi-loader.[ch] in two: isolate the calls that
implement out boot loader interface spec, and those which implement
access to upstream UEFI firmware features.
They are quite different in nature and behaviour, and even semantically
it makes to keep these two separate. At the very least because the
previous name "efi-loader.[ch]" suggests all was about loader-specific
APIs, but much of it is generic uefi stuff...
While we are at it, I renamed a bunch of return parameters to follow our
usual ret_xyz naming. But besides renaming no real code changes.
|
| | |
| | |
| | |
| | |
| | | |
The flags are actually 32bit values, but aligned with zeroes befitting a
64bit value. Let's fix that.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
The only caller logs anyway, let's avoid duplicate logging above
LOG_DEBUG.
|
| | |
| | |
| | |
| | | |
read_efi_options_variable() already does this, don#t do it again.
|
| | |
| | |
| | |
| | | |
mention what we'll do as effect of the error we are seeing and eat up.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On systems lacking EFI or the SecureBoot efi var the caching of this
info didn#t work, since we'd see ENOENT when reading the var, and cache
that, which we then use as reason to retry next time.
Let's fix that and convert ENOENT to "secure boot", because that's what
it really means. All other errors are left as is (and reason to retry).
But let's add some debug logging for that case.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously, `event_run()` was called repeatedly in one `event_queue_start()`
invocation. Hence, the SELinux label database is reloaded many times needlessly.
Other settings, e.g. udev rules or hwdata, are tried to be reloaded in the
beginning of `event_queue_start()`. Let's also do so for the SELinux database.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously, if udevd failed to resolve event dependency, the event is
ignored and libudev listeners did not receive the event. This is
inconsistent with the case when a worker failed to process a event,
in that case, the original uevent sent by the kernel is broadcasted to
listeners.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The ENOENT, ENXIO, and ENODEV error can happen easily when a block
device appears and soon removed. So, it is reasonable to ignore the
error. But other errors should not occur here, and hence let's handle
them as critical.
|
| | |
| | |
| | |
| | | |
Inspired by: https://github.com/systemd/systemd/pull/22717#discussion_r834254495
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When the last queued event is processed, information about subsequent
events may be already queued in the netlink socket of sd-device-monitor.
In that case, previously we once removed /run/udev/queue and touch the
file soon later, and `udevadm settle` mistakenly considered all events
are processed.
To mitigate such situation, this makes /run/udev/queue removed in on_post().
|
| | |
| | |
| | |
| | |
| | | |
This should not change any behavior, as the event sources are not
shared. Just for safety.
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| | |
Following our coding style of exiting early (instead of deep nesting),
let's invert the if check here.
Inspired by: https://github.com/systemd/systemd/pull/21602#pullrequestreview-919960060
|
| | |
|
| |
| |
| |
| |
| |
| | |
and check_permission() should not be called in that case.
Replaces #22847.
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Add helper macro PTR_SUB1() to deal with backwards iteration through arrays without UB
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Inspired by #22797, let's avoid some UB when iterating through arrays.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
disabled explicitly
The commit 1cf4ed142d6c1e2b9dc6a0bc74b6a83ae30b0f8e makes the IPv4 ACD
enabled unconditionally for IPv4 link-local addresses even if users
explicitly disable ACD.
This makes the IPv4 ACD is enabled by default, but honor user setting.
Fixes #22763.
|
| |/
|/|
| |
| |
| |
| |
| | |
It looks like the fix for https://github.com/github/codeql/issues/8409
is not yet in production (and the respective query needs to be enabled
in both the main and the PR branch to get results for it, hence why it
passed in #22837).
|
| |
| |
| |
| |
| | |
It allows to specify the desired python executable (and version) via
meson's native file if there are multiple versions available.
|
| |
| |
| |
| |
| |
| | |
This reverts commit 6f4bffb586dfb0ce8db4e02ccb7f076a45bca419.
Should be, hopefully, fixed by https://github.com/github/codeql/issues/8409.
|
| | |
|
|/ |
|
|\
| |
| | |
Inline the iterator declaration in FOREACH_STRING
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Same idea as 03677889f0ef42cdc534bf3b31265a054b20a354.
No functional change intended. The type of the iterator is generally changed to
be 'const char*' instead of 'char*'. Despite the type commonly used, modifying
the string was not allowed.
I adjusted the naming of some short variables for clarity and reduced the scope
of some variable declarations in code that was being touched anyway.
|
|\ \
| | |
| | | |
docs: more tweaks for the image building docs
|
| | |
| | |
| | |
| | | |
Also, beef up links everywhere.
|
| | | |
|
| | |
| | |
| | |
| | | |
usually do
|
|/ / |
|
|\ \
| |/
|/| |
Invert order of entries w/o sort-key in sd-boot menu
|