summaryrefslogtreecommitdiffstats
path: root/man/systemd-rc-local-generator.xml (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-09-20boot: Change the way we provide builtinsJan Janssen3-21/+23
Relying on symbol aliasing seems to be rather unreliable. Instead just use some light #ifdefery. Fixes: #24630
2022-09-20udev: use block_device_is_whole_disk()Yu Watanabe3-36/+29
No functional changes, just refactoring. Note, this also makes synthesize_change() propagate the error from synthesize_change_one(). However, the caller of synthesize_change() ignores the failure anyway, hence the change does not take any effect.
2022-09-20sd-device: use fd_reopen() at one more placeYu Watanabe1-2/+2
It provides recognizable error if /proc is not mounted.
2022-09-20cryptsetup: use TPM flags over boolWilliam Roberts1-1/+1
This works becuase TPM2_FLAGS_USE_PIN is 1 and bool is a 1 so the bits line up as expected, however if for some reason flags change values and for clarity check if the boolean indicates this flag and pass the flag value. Signed-off-by: William Roberts <william.c.roberts@intel.com>
2022-09-19meson: make several tests run sequentiallyYu Watanabe1-1/+2
Follow-up for f93ba375301e43900f1fe5a93a2b33b1efcc73e0.
2022-09-19test: add more test cases for mkdir_p_safe() and mkdir_p_root()Yu Watanabe1-5/+96
2022-09-19mkdir: chase_symlinks_and_stat() does not return 0Yu Watanabe1-2/+6
This reverts commits e22916e61d1fdb7b46918b605ebf783d9017f9d8 and 1e146d738232acbe7f72903e9c5e4d1166ea67f5.
2022-09-19tpm2-util: make tpm2_pcr_bank_from_string() case-insensitiveLennart Poettering2-25/+9
This way we can use it directly in measure.c, and thus remove a bit of redundant code. OpenSSL prefers uppercasing the MD names, others don't hence let's be lenient here.
2022-09-19udev: use device_opendir()Yu Watanabe1-19/+8
2022-09-19sd-device: use device_opendir()Yu Watanabe1-17/+3
2022-09-19sd-device: introduce device_opendir()Yu Watanabe2-0/+33
2022-09-19hwdb: run "update-hwdb-autosuspend"Zbigniew Jędrzejewski-Szmek1-0/+17
2022-09-19hwdb: run "update-hwdb"Zbigniew Jędrzejewski-Szmek10-2745/+12564
As usual, it seems to be mostly additions and corrections. Sadly, it seems a bit of mojibake has crept in in various places. But it's hard to correct, in particular because it's hard to detect all cases automatically. I think we can ignore this for now. When I run this a few weeks ago, ma-large.txt was gutted and 20-OUI.hwdb was siginificantly smaller. For whatever reasons, it's back to normal now.
2022-09-19udev: use sd_device_get_sysattr_value()Yu Watanabe1-22/+29
No functional changes, just refactoring.
2022-09-19udev: use faccessat()Yu Watanabe1-7/+7
No functional changes, just refactoring.
2022-09-19sd-device: re-implement device_sysattrs_read_all() without recursionYu Watanabe1-4/+23
2022-09-19sd-device: use faccessat()Yu Watanabe1-15/+16
No functional changes, just refactoring.
2022-09-19sd-device: use fstatat()Yu Watanabe1-6/+2
No functional changes, just refactoring.
2022-09-19sd-device: use path_hash_ops to store sysattrsYu Watanabe1-1/+4
As the stored values are actually path. Just for safety. This also drops unnecessary duplication of path.
2022-09-19also provide credentials in ExecStartPreJörg Thalheim1-1/+1
Systemd's credential interface is not yet natively supported by all programs yet. Hence it's often required to run scripts to massage secrets in the way the programs expect it. This commit allows the ExecStartPre commands to access credentials. Fixes https://github.com/systemd/systemd/issues/19604
2022-09-18test: add testcase for link priorityYu Watanabe2-26/+72
2022-09-18man/systemd-run: Refer to man-pages project (man7.org) when citing bash(1)BerndAdameit1-1/+1
2022-09-18path-util: add examples for path_make_relative() and path_make_relative_parent()Yu Watanabe1-1/+11
Addresses https://github.com/systemd/systemd/pull/24646#discussion_r973691797.
2022-09-18tree-wide: drop unused reference to DecryptedImageYu Watanabe15-76/+31
2022-09-18tree-wide: use dissected_image_relinquish()Yu Watanabe4-52/+24
2022-09-18dissect-image: introduce dissected_image_relinquish()Yu Watanabe2-0/+19
2022-09-18udev: do not ignore -ENOENT from sd_device_get_devname() for block deviceYu Watanabe1-2/+0
We already checked that the sd_device object 'dev' is for a whole block device. So, -ENOENT should not be triggeered here, and if it is, there exists something spurious. Hence we should not ignore the failure.
2022-09-18udev: use block_device_get_whole_disk()Yu Watanabe1-17/+7
This should not change anything effectively.
2022-09-18udev-node: use symlink_atomic_full_label() to create devlinkYu Watanabe1-26/+7
If the filename of a device symlink is too long, then the temporary filename may become invalid, and we fail to create symlink. The function `tempfn_random()` used in symlink_atomic_full() generates a safe temporary filename. Note that, thanks to the PR #23043, now only one worker can handle the same symlink simultaneously. Hence, the device ID based temporary filename is not necessary.
2022-09-18blockdev-util: change return value when a partition device is passed to ↵Yu Watanabe1-1/+1
partition_enumerator_new() To make it consistent what returned by block_device_get_whole_disk().
2022-09-18blockdev-util: introduce block_device_get_whole_disk()Yu Watanabe2-0/+31
2022-09-18blockdev-util: split-out block_device_is_whole_disk()Yu Watanabe1-10/+23
No functional changes, just preparation for later commits.
2022-09-18sd-device: refuse block device without subsystemYu Watanabe1-2/+2
Previously, even if sd_device_get_subsystem() returns -ENOENT for block device, we accepted that. This makes the check slightly stricter.
2022-09-18dissect-image: free crypt_device object before trying to activate with ↵Yu Watanabe1-5/+14
unique name Otherwise we get error from libcryptsetup like the following: systemd[1234]: Cannot use device /dev/loop5 which is in use (already mapped or mounted).
2022-09-18udev: downgrade log level when device node is already removedYu Watanabe1-2/+3
Follow-up for 790da548b0c37af60aed2f46867ba3885ea78718.
2022-09-18dissect-image: introduce DISSECTED_PARTITION_NULLYu Watanabe2-4/+10
Currently, it is not necessary to set partno or architecture in dissect_image_new(), but just for safety. Preparation for later commits.
2022-09-18dissect-image: split out dissected_image_new()Yu Watanabe1-24/+42
To make dissect_image() shorter. No functional changes, just refactoring.
2022-09-18dissect-image: take a reference of LoopDevice into DissectedImageYu Watanabe2-6/+31
To make LoopDevice object freed after DissectedImage is freed. At least currently, this should not change anything. Preparation for later commits.
2022-09-18loop-util: introduce reference counter for LoopDeviceYu Watanabe2-1/+7
2022-09-18dissect-image: take reference of DecryptedImage into DissectedImageYu Watanabe2-2/+11
No functional changes. Preparation for later commits.
2022-09-18dissect-image: introduce reference counter for DecryptedImageYu Watanabe2-7/+29
2022-09-18dissect-image: lazily deactivate decrypted DM volumesYu Watanabe1-1/+2
The DM block device may be still used by other processes.
2022-09-18measure: rename measure_pcr() to measure_kernel()Lennart Poettering1-4/+4
Let's say what we actually measure, not what into (which is obvious anyway). This is generally more descriptive, but also good for later work that allows measuring the boot phase too.
2022-09-17cryptsetup-util: introduce crypt_free_and_replace()Yu Watanabe2-2/+6
2022-09-17test-50-dissect: do not fail test on cleanupYu Watanabe1-3/+7
These paths are read-only mount points. Hence, we cannot remove the contents.
2022-09-17test-50-dissect: check mount destination instead of mount sourceYu Watanabe1-1/+8
And rebreak long lines. This should take no effective change, just refactoring.
2022-09-17coredumpctl: rename table entryZbigniew Jędrzejewski-Szmek2-2/+2
"Disk Size" could be mistaken for "Size of the Disk".
2022-09-17various: use "-" instead of "n/a" in tablesZbigniew Jędrzejewski-Szmek3-13/+13
In the context of a table, both would be generally understood to have the same meaning. "n/a" is a strange beast. It was useful when tables were produced on the typewriter with "---------" used to separate rows. It is visually more pleasing to use "-", and there is no risk of it being mistaken for a row separator.
2022-09-17fd-util: rename CLOSE_AND_REPLACE() -> close_and_replace()Yu Watanabe11-15/+12
We have free_and_replace() and friends, they are all named with lower letters, even they are macros, not functions. For consistency, let's rename CLOSE_AND_REPLACE() with lower letters. This also mekes the macro used more places.
2022-09-16dissect-image: make verity_partition() actually fail when all attempts of ↵Yu Watanabe1-4/+6
activation failed