| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
locale: fix ENOENT handling for vconsole.conf or xorg.conf
|
| |
| |
| |
| |
| | |
It is used at only place, and mostly trivial.
No functional change, just refactoring.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Follow-up for 64f3419ec1f56a93b6dd48137ca40c945fc06c59.
If the input timestamp is too old (say, 1min since 1970-01-01), then
parse_timestamp() may fail on a timezone with positive shift e.g.
JST (UTC+9). Moreover, even if parse_timestamp() succeeds, its result
'y' and 'usec_sub_unsigned(x, 2 * USEC_PER_DAY)' are both zero, and
the assertion will be triggered.
Fixes #26172.
|
| |
| |
| |
| |
| |
| | |
Fixes a bug introduced by 78463c6c4fdcb703bc0dc694c3ea77df3c5624e0.
Fixes #25545.
|
|\ \
| | |
| | | |
Add struct tpm2_handle and use _cleanup_ instead of goto
|
| | |
| | |
| | |
| | |
| | | |
This allows using _cleanup_ with the handles, which then allows removing the
use of goto in all functions that use the handles.
|
| | |
| | |
| | |
| | |
| | | |
This is needed for later patches that use Tpm2Handle, which requires access
to the Tpm2Context.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This will be used by Tpm2Handle instances, which is added in later patches.
The refcounting allows the context to be retained until all Tpm2Handles have
been cleaned up, and the initial ref is released, before cleaning the context.
|
| |/
| |
| |
| | |
This aligns with systemd coding guidelines for struct naming
|
|\ \
| | |
| | | |
sysusers: improve messages and autocreate /etc
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This allows sysusers to operate with --root that is an empty directory.
It may be useful to, for example, populate the user database before installing
anything else.
firstboot was already doing this, so drop the duplicated call there.
|
| | | |
|
| | |
| | |
| | |
| | | |
Without commas, the sentences can be hard to parse.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
The only function of SYNTHETIC_ERRNO is to set the return value.
If we're ignoring the return value, it shouldn't be used.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The usual story:
$ diff -u <(pahole build/systemd-sysusers.0) <(pahole build/systemd-sysusers)
/* size: 80, cachelines: 2, members: 15 */
- /* sum members: 68, holes: 1, sum holes: 4 */
- /* sum bitfield members: 5 bits (0 bytes) */
- /* padding: 7 */
- /* bit_padding: 3 bits */
+ /* sum members: 73, holes: 1, sum holes: 4 */
+ /* padding: 3 */
/* last cacheline: 16 bytes */
Effectively, because of padding, we were not saving anything. We're not putting
struct Item in arrays, but when allocating on the heap, we're going to round up to
normal alignment too.
The code becomes shorter (and quicker):
$ size build/systemd-sysusers{,.0}
text data bss dec hex filename
79967 2040 264 82271 1415f build/systemd-sysusers.0
79726 2040 264 82030 1406e build/systemd-sysusers
(In case you're wondering, I wrote this long commit message for a very simple
change on purpose: I want to deflate the bitfield cargo cult a bit.)
|
| | |
| | |
| | |
| | |
| | |
| | | |
It is now a supported executable, so add manpage.
Fixes https://github.com/systemd/systemd/issues/26289
|
|\ \ \
| | | |
| | | | |
ci: Test with secure boot enabled under mkosi
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This gives us some nice test coverage for secure boot enrolling and the
stub secure boot workound. The authenticated EFI variables are already
created by mkosi, all we need to do is request secure boot to be used.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This way, people do not need efitools installed to generate these as
sbsigntools has everything needed to produce signed EFI variables.
|
|\ \ \ \
| | | | |
| | | | | |
test: add a testcase for lvextend
|
| | | | |
| | | | |
| | | | |
| | | | | |
For RHBZ#2158628 (https://bugzilla.redhat.com/show_bug.cgi?id=2158628)
|
| | | | | |
|
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The documentation on moving an existing homedir into a systemd-homed managed
one suggests using rsync(1) with a bunch of flags to preserve as much metadata
as possible: permissions, xattrs, timestamps, etc. The previously suggested
flags were:
rsync -aHAXv --remove-source-files …
… which does include mtimes, but not ctimes and atimes, because -a does not
include those:
--archive, -a archive mode is -rlptgoD (no -A,-X,-U,-N,-H)
This change adds the -N and -U flags to preserve even more file timestamps,
turning the command into:
rsync -aHANUXv --remove-source-files …
The new flags are:
--crtimes, -N preserve create times (newness)
--atimes, -U preserve access (use) times
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The 'pcr_bank' functions operate on hash algs, and are not specific to the PCR
banks, while the 'primary_alg' functions operate on asymmetric algs, and are
not specific to primary keys.
|
|\ \ \ \
| | | | |
| | | | | |
locale: check conversion before polkit
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Let's make library-functions simple and independent as possible as they
are. No functional change, just refactoring.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
settings
Before this commit, if virtual console keymap is unchanged, localed just
returns without modifying anything. However, the X11 part may need updating.
So we should check for both and ensure they are unmodified.
Replaces #26190.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Then, context_get_x11_context() always replies a valid X11 context.
No functional change, just refactoring.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This also makes x11_convert_to_vconsole() changed in the same way.
Then, their callers update Context if necessary.
No functional change, just preparation for later commits.
|
| | | | |
| | | | |
| | | | |
| | | | | |
No functional changes, preparation for later commits.
|
| | | | | |
|