Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test/test-systemd-tmpfiles.py: do not fail if machine-id is missing | Luca Boccassi | 2022-10-25 | 1 | -1/+1 |
| | | | | When building in a chroot there might not be any machine-id | ||||
* | tmpfiles: optionally, decode string to write to files with base64 | Lennart Poettering | 2022-07-15 | 1 | -0/+10 |
| | | | | | | This is useful to use "f" or "w" to write arbitrary binary files to disk, or files with newlines and similar (for example to provision SSH host keys and similar). | ||||
* | shared/specifier: fix %u/%U/%g/%G when called as unprivileged user | Zbigniew Jędrzejewski-Szmek | 2022-03-29 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | We would resolve those specifiers to the calling user/group. This is mostly OK when done in the manager, because the manager generally operates as root in system mode, and a non-root in user mode. It would still be wrong if called with --test though. But in systemctl, this would be generally wrong, since we can call 'systemctl --system' as a normal user, either for testing or even for actual operation with '--root=…'. When operating in --global mode, %u/%U/%g/%G should return an error. The information whether we're operating in system mode, user mode, or global mode is passed as the data pointer to specifier_group_name(), specifier_user_name(), specifier_group_id(), specifier_user_id(). We can't use userdata, because it's already used for other things. | ||||
* | tmpfiles: add '=' action modifier. | Allen Webb | 2021-06-08 | 1 | -2/+59 |
| | | | | | | | | | | | Add the '=' action modifier that instructs tmpfiles.d to check the file type of a path and remove objects that do not match before trying to open or create the path. BUG=chromium:1186405 TEST=./test/test-systemd-tmpfiles.py "$(which systemd-tmpfiles)" Change-Id: If807dc0db427393e9e0047aba640d0d114897c26 | ||||
* | test: move test-systemd-tmpfiles.py from src/test to test | Yu Watanabe | 2021-01-19 | 1 | -0/+143 |
As the other test scripts, e.g. test-sysusers.sh, are located under test rather than src/test. |