summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * NEWS: update dateLuca Boccassi2023-02-021-1/+1
| |
| * NEWS: update contributors listLuca Boccassi2023-02-021-13/+14
| |
| * hwdb: update autosuspend dbLuca Boccassi2023-02-021-1/+1
| |
| * hwdb: updateLuca Boccassi2023-02-027-1765/+2261
| |
* | NEWS: fix typoLuca Boccassi2023-02-021-1/+1
| |
* | NEWS: various fixesLennart Poettering2023-02-021-162/+177
|/
* NEWS: update for v253-rc2Luca Boccassi2023-02-021-0/+28
|
* NEWS: fix typoYu Watanabe2023-02-021-2/+2
|
* Merge pull request #26292 from yuwata/locale-fix-enoent-handlingZbigniew Jędrzejewski-Szmek2023-02-021-9/+4
|\ | | | | locale: fix ENOENT handling for vconsole.conf or xorg.conf
| * locale: drop context_clear_x11()Yu Watanabe2023-02-011-8/+2
| | | | | | | | | | It is used at only place, and mostly trivial. No functional change, just refactoring.
| * locale: fix ENOENT handling for vconsole.conf or xorg.confYu Watanabe2023-02-011-1/+2
| |
* | test-time-util: skip test for TIMESTAMP_DATE if the timestamp is too oldYu Watanabe2023-02-021-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | udev: make get_virtfn_info() provide physical PCI deviceYu Watanabe2023-02-021-1/+1
| | | | | | | | | | | | Fixes a bug introduced by 78463c6c4fdcb703bc0dc694c3ea77df3c5624e0. Fixes #25545.
* | Merge pull request #26180 from ddstreet/tpm2_cleanupLuca Boccassi2023-02-025-357/+331
|\ \ | | | | | | Add struct tpm2_handle and use _cleanup_ instead of goto
| * | tpm2: add Tpm2Handle with automatic cleanupDan Streetman2023-02-013-267/+237
| | | | | | | | | | | | | | | This allows using _cleanup_ with the handles, which then allows removing the use of goto in all functions that use the handles.
| * | tpm2: use Tpm2Context* instead of ESYS_CONTEXT*Dan Streetman2023-02-015-55/+55
| | | | | | | | | | | | | | | This is needed for later patches that use Tpm2Handle, which requires access to the Tpm2Context.
| * | tpm2: use ref counter for Tpm2ContextDan Streetman2023-02-015-64/+68
| | | | | | | | | | | | | | | | | | | | | 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.
| * | tpm2: rename struct tpm2_context to Tpm2ContextDan Streetman2023-02-015-16/+16
| |/ | | | | | | This aligns with systemd coding guidelines for struct naming
* | Merge pull request #26269 from keszybz/sysusers-empty-etc-and-improved-messagesLuca Boccassi2023-02-026-87/+140
|\ \ | | | | | | sysusers: improve messages and autocreate /etc
| * | test-sysusers: check that sysusers creates /etc when missingZbigniew Jędrzejewski-Szmek2023-02-011-0/+8
| | |
| * | basic/user-util: create /etc from take_etc_passwd_lockZbigniew Jędrzejewski-Szmek2023-02-012-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | basic/user-util: convert prefix_roota→path_join and use _cleanup_ moreZbigniew Jędrzejewski-Szmek2023-02-011-14/+6
| | |
| * | basic: reword some commentsZbigniew Jędrzejewski-Szmek2023-02-012-14/+11
| | | | | | | | | | | | Without commas, the sentences can be hard to parse.
| * | sysusers: when comparing items, log debug the differenceZbigniew Jędrzejewski-Szmek2023-02-011-16/+55
| | |
| * | sysusers: add helper to create new ItemZbigniew Jędrzejewski-Szmek2023-02-011-34/+50
| | |
| * | pid1,sysusers: drop unused SYNTHETIC_ERRNOZbigniew Jędrzejewski-Szmek2023-01-312-2/+2
| | | | | | | | | | | | | | | The only function of SYNTHETIC_ERRNO is to set the return value. If we're ignoring the return value, it shouldn't be used.
| * | sysusers: drop counterproductive bitfield annotationsZbigniew Jędrzejewski-Szmek2023-01-311-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.)
* | | man: add page for systemd-ac-powerLuca Boccassi2023-02-012-0/+72
| | | | | | | | | | | | | | | | | | It is now a supported executable, so add manpage. Fixes https://github.com/systemd/systemd/issues/26289
* | | Merge pull request #26287 from medhefgo/mkosi-auto-enrollLuca Boccassi2023-02-017-22/+66
|\ \ \ | | | | | | | | ci: Test with secure boot enabled under mkosi
| * | | ci: Test with secure boot enabled under mkosiJan Janssen2023-02-012-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | git: Ignore mkosi secure boot keysJan Janssen2023-02-011-0/+1
| | | |
| * | | boot: Add if-safe mode for secure boot enrollmentJan Janssen2023-02-014-15/+48
| | | |
| * | | man: Use sbsigntools for secure boot key generation exampleJan Janssen2023-02-011-6/+7
| | | | | | | | | | | | | | | | | | | | This way, people do not need efitools installed to generate these as sbsigntools has everything needed to produce signed EFI variables.
* | | | Merge pull request #26285 from yuwata/test-lvextendFrantisek Sumsal2023-02-011-3/+24
|\ \ \ \ | | | | | | | | | | test: add a testcase for lvextend
| * | | | test: add a testcase for lvextendYu Watanabe2023-02-011-0/+20
| | | | | | | | | | | | | | | | | | | | For RHBZ#2158628 (https://bugzilla.redhat.com/show_bug.cgi?id=2158628)
| * | | | test: make helper_check_device_units() log unit nameYu Watanabe2023-02-011-3/+4
| | | | |
* | | | | docs: tweak rsync flags for moving existing home dir to systemd-homedwouter bolsterlee2023-02-011-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | tpm2: rename tpm2 alg id<->string functionsDan Streetman2023-02-015-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #26219 from yuwata/localed-follow-upsZbigniew Jędrzejewski-Szmek2023-02-015-294/+467
|\ \ \ \ | | | | | | | | | | locale: check conversion before polkit
| * | | | test: add tests for localectl --no-convertYu Watanabe2023-01-281-0/+122
| | | | |
| * | | | locale: downgrade level of one more log messageYu Watanabe2023-01-281-1/+1
| | | | |
| * | | | locale: move logging from library-like functions to callerYu Watanabe2023-01-282-16/+16
| | | | |
| * | | | locale: decouple vconsole_read_data() from x11_read_data()Yu Watanabe2023-01-282-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | Let's make library-functions simple and independent as possible as they are. No functional change, just refactoring.
| * | | | locale: also check if converted keymap or friends is same as the current ↵Yu Watanabe2023-01-281-47/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | locale: sync two X11 contexts on updateYu Watanabe2023-01-282-34/+38
| | | | |
| * | | | locale: always check input keyboard layout and friends earlierYu Watanabe2023-01-281-17/+17
| | | | |
| * | | | locale: replace context_get_x11_context() with context_get_x11_context_safe()Yu Watanabe2023-01-283-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Then, context_get_x11_context() always replies a valid X11 context. No functional change, just refactoring.
| * | | | locale: make vconsole_convert_to_x11() not update ContextYu Watanabe2023-01-284-184/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | locale: introduce VCContext and several helper functions for the structYu Watanabe2023-01-284-53/+110
| | | | | | | | | | | | | | | | | | | | No functional changes, preparation for later commits.
| * | | | locale: add missing logsYu Watanabe2023-01-281-6/+6
| | | | |