summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* github: update default and example in templateYu Watanabe2023-03-152-5/+5
|
* Merge pull request #26771 from YHNdnzj/machinectl-editYu Watanabe2023-03-164-4/+228
|\ | | | | machinectl: add verb edit and cat to operate on .nspawn files
| * test: add testsuite-74.machinectlMike Yuan2023-03-152-0/+47
| |
| * machinectl: add verb edit and cat to operate on .nspawn filesMike Yuan2023-03-152-4/+181
| | | | | | | | | | | | This allows operating on .nspawn files using machinectl. Closes #26246
* | manager: fix scope for environment generatorsLudwig Nussel2023-03-161-1/+1
| | | | | | | | fixes regression introduced by 4870133bfa
* | test: fix testsuite-17.10.shDmitry V. Levin2023-03-161-0/+1
| | | | | | | | | | | | Make sure /etc/udev/hwdb.d/ exists before creating a file inside it. Fixes: 95cf8cae77f7 ("test: add coverage test for udevadm")
* | Merge pull request #26831 from YHNdnzj/edit-util-followupYu Watanabe2023-03-161-3/+3
|\ \ | | | | | | edit-util: follow-ups
| * | edit-util: log unexpected errors if we fail to remove the parent dirMike Yuan2023-03-151-2/+2
| | |
| * | edit-util: use path_equalMike Yuan2023-03-151-1/+1
| |/
* | udev-rules: check for conflicting and duplicate expressionsDmitry V. Levin2023-03-162-4/+102
| | | | | | | | | | | | | | | | Log an error when a rule line contains conflicting match expressions, e.g. NAME=="value", NAME!="value" Log a warning when a rule line contains duplicate expressions, e.g. NAME=="value", NAME=="value"
* | Update github issue template to include systemd-dissectCornelius Hoffmann2023-03-153-0/+5
| |
* | Merge pull request #26784 from DaanDeMeyer/chase-fixDaan De Meyer2023-03-1514-138/+209
|\ \ | | | | | | Allow creating files and directories with chase_symlinks_open() and further improvements
| * | chase-symlinks: Add more assertionsDaan De Meyer2023-03-151-18/+13
| | | | | | | | | | | | | | | Let's turn some runtime errors into assertions and add a few new assertions.
| * | chase-symlinks: Rework open() functions and some chase flagsDaan De Meyer2023-03-153-70/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, when CHASE_PARENT is specified, we chase the parent directory of the symlink itself. Let's change this and chase the parent directory of the symlink target so that trying to open the actual file later with O_NOFOLLOW doesn't fail with ELOOP. To get the current behavior, callers can add CHASE_NOFOLLOW to chase the parent directory of the symlink itself. Currently, when CHASE_MKDIR_0755 is specified, we create all components of the path as directories. Instead, let's change the flag to only create parent directories and leave the final component of the PATH untouched. Also, allow CHASE_NONEXISTENT with CHASE_MKDIR_0755 now that it doesn't create all components anymore. Finally, rework chase_symlinks_and_open() and chase_symlinkat_at_and_open() to always chase the parent directory and use xopenat() to open the final component of the path. This allows us to pass O_CREAT to create the file or directory (O_DIRECTORY) if it is missing. If CHASE_PARENT is configured, we just reopen the parent directory that we chased.
| * | chase-symlinks: Remove unused ret_fd argumentsDaan De Meyer2023-03-1411-23/+16
| | |
| * | chase-symlinks: Fix memory leakDaan De Meyer2023-03-141-1/+3
| | |
| * | fs-util: Add xopenat()Daan De Meyer2023-03-143-27/+73
| | | | | | | | | | | | | | | xopenat() will create directories if O_DIRECTORY and O_CREAT are specified. Note that this is not an atomic operation.
* | | fs-util: Drop unlink_noerrno()Daan De Meyer2023-03-156-36/+12
| | |
* | | Merge pull request #26820 from DaanDeMeyer/dir-fd-is-rootDaan De Meyer2023-03-155-5/+82
|\ \ \ | |_|/ |/| | fd-util: Add dir_fd_is_root()
| * | fd-util: Add dir_fd_is_root()Daan De Meyer2023-03-153-0/+66
| | |
| * | mountpoint-util: Add path_get_mnt_id_at()Daan De Meyer2023-03-152-5/+16
| |/
* | Add rebrands of Medion Akoya notebooks/tabletsbri2023-03-151-0/+3
| |
* | Merge pull request #26804 from fbuihuu/fixes-for-test-58-repartLuca Boccassi2023-03-152-3/+3
|\ \ | | | | | | Fixes for test 58 repart
| * | tests: don't use absolute paths when installing binaries in TEST-58-REPARTFranck Bui2023-03-141-2/+2
| | | | | | | | | | | | | | | | | | Let image_install figures the binary paths out itself as not all distributions ship the mkfs.* tools in the same location. For example openSUSE ships mksquashfs in /usr/bin/.
| * | tests: fix inverted condition in testsuite-58.shFranck Bui2023-03-141-1/+1
| | |
* | | Merge pull request #26825 from keszybz/log-message-fixLuca Boccassi2023-03-152-7/+4
|\ \ \ | | | | | | | | Log message fix
| * | | core: fix "(null)" in outputZbigniew Jędrzejewski-Szmek2023-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | We want an empty string, not NULL. I made some brainfart here. Fixup for 1980a25dc03aa500d4ee2725d696f68d265cd4ca.
| * | | core: reduce scope of variableZbigniew Jędrzejewski-Szmek2023-03-151-6/+3
| | | |
* | | | Merge pull request #26800 from t-8ch/memfd_createLennart Poettering2023-03-156-9/+44
|\ \ \ \ | | | | | | | | | | memfd: add support for exec flags
| * | | | treewide: memfd_create: use exec flagsThomas Weißschuh2023-03-154-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the flags MEMFD_EXEC or MEMFD_NOEXEC_SEAL as applicable. These warnings instruct the kernel wether the memfd is executable or not. Without specifying those flags the kernel will emit the following warning since version 6.3, commit 105ff5339f49 ("mm/memfd: add MFD_NOEXEC_SEAL and MFD_EXEC"): kernel: memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=1 'systemd'
| * | | | memfd-util: add wrapper for memfd_createThomas Weißschuh2023-03-152-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | The wrapper removes the flags MFD_EXEC and MFD_NOEXEC_SEAL when running on kernels not understanding those flags.
| * | | | missing: add memfd exec flagsThomas Weißschuh2023-03-151-0/+8
| | | | |
* | | | | Merge pull request #26794 from bluca/log_extra_fieldsLennart Poettering2023-03-155-11/+106
|\ \ \ \ \ | | | | | | | | | | | | core: append LogExtraFields= values to log_unit* messages
| * | | | | core: append LogExtraFields= values to log_unit* messagesLuca Boccassi2023-03-142-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensure messages from PID1 regarding a unit also contain those fields. For example, portable services have PORTABLE=<image> as extra fields, which is useful to identify which version of a portable image produced a log message like an error or an oomd kill.
| * | | | | log: add iov helpers for log_contextLuca Boccassi2023-03-143-6/+84
| | | | | |
* | | | | | core: make the memory pressure cgroup path writable when ↵Luca Boccassi2023-03-152-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ProtectControlGroups=yes The interface requires services to write to the cgroup file to activate notifications, but with ProtectControlGroups=yes we make it read-only. Add a writable bind mount. Follow-up for 6bb0084204bd93122c9f04391b80aea5a8a0ff08
* | | | | | test: assume run-unit-tests.py and unit tests are installed in the same ↵Franck Bui2023-03-151-3/+4
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | directory This avoids hard coding the path of the directory where the unit tests are installed.
* | | | | stub: Remove overlapping PE section warningJan Janssen2023-03-151-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we always create PE images with a non-zero image base we cannot run into this issue anymore. Any tool that still uses the old hard-coded section offsets will end up creating bad images with sections below the image base. objcopy will warn about this and any PE loader will simply refuse to load such an image. Meanwhile updated tools do not use hard-coded offsets anymore.
* | | | | Merge pull request #26815 from keszybz/cgls-no-xattrs-by-defaultLuca Boccassi2023-03-153-63/+71
|\ \ \ \ \ | | | | | | | | | | | | Do not show xattrs and cgroup ids in cgls by default
| * | | | | cgls: add -x and -c optionsZbigniew Jędrzejewski-Szmek2023-03-142-18/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -x is short for --xattrs=yes and -c is short for --cgroup-id=yes.
| * | | | | cgls: stop showing cgroup ids and xattrs by defaultZbigniew Jędrzejewski-Szmek2023-03-142-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Those are rather specialized bits of information, useful mostly for debugging. I use cgls quite often but never had the need to use either of those… But they take up a significant amount of screen real estate, esp. when executed as root: -.slice ├─user.slice (#1683) │ → user.invocation_id: 74b0bd1258c5485eb969016384e0d06a │ → trusted.invocation_id: 74b0bd1258c5485eb969016384e0d06a │ └─user-1000.slice (#6488) │ → user.invocation_id: b0261a14fe74490d9a9d5266c52cceb6 │ → trusted.invocation_id: b0261a14fe74490d9a9d5266c52cceb6 │ ├─user@1000.service … (#6590) │ │ → user.invocation_id: 9e1fb54ad07940d8b92c33c81d169f11 │ │ → user.delegate: 1 │ │ → trusted.invocation_id: 9e1fb54ad07940d8b92c33c81d169f11 │ │ → trusted.delegate: 1 │ │ ├─session.slice (#6874) ... Let's not show them by default, so we can show more cgroups. (Also, on a terminal, we already highlight delegate units via underlining and an ellipsis, so 'user.delegate:1' is redundant.)
| * | | | | cgtop: drop counterproductive bitfieldsZbigniew Jędrzejewski-Szmek2023-03-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The variable after the bitfields has 8 byte alignment, so we weren't saving any memory, but the code to serve the bitfields was more complicated.
| * | | | | cgtop: split out the main loop into a separate functionZbigniew Jędrzejewski-Szmek2023-03-141-40/+41
| | |/ / / | |/| | | | | | | | | | | | | This way the initial setup is nicely separated from the main loop logic.
* | | | | Merge pull request #26808 from keszybz/no-controllers-followupLuca Boccassi2023-03-153-20/+25
|\ \ \ \ \ | | | | | | | | | | | | Docs and dump output follow-up for the case of delegation with no controllers
| * | | | | manager: in dump, show no controllers as "(none)"Zbigniew Jędrzejewski-Szmek2023-03-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | https://github.com/systemd/systemd/commit/7b3693e4e4c9cae50fca65136278a62fae11327e#r103711181
| * | | | | man: document "Delegate=" a bit moreZbigniew Jędrzejewski-Szmek2023-03-142-19/+21
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This case is a bit surprising, even if logical if one understands how the parser works. Let's be more explicit. Follow-up for 7b3693e4e4c9cae50fca65136278a62fae11327e.
* | | | | mkfs-util: Redirect mksquashfs output to /dev/nullDaan De Meyer2023-03-151-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The -quiet option for mksquashfs was added somewhat recently so to support older versions, let's redirect stdout of mksquashfs to /dev/null instead.
* | | | | Merge pull request #26683 from YHNdnzj/systemctl-shutdown-whenLuca Boccassi2023-03-157-45/+110
|\ \ \ \ \ | | | | | | | | | | | | systemctl: add --when for scheduled poweroff/halt/reboot/kexec support
| * | | | | test-time-util: add test cases to invalidate "show" and "cancel"Mike Yuan2023-03-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Ensure that systemctl reboot --when=show and --when=cancel will not result in ambiguities
| * | | | | systemctl: add option --when for scheduled shutdownMike Yuan2023-03-144-39/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass an empty string or "cancel" will cancel the action. Pass "show" will show the scheduled actions. Replaces #17258