Logo
Explore Help
Sign In
dasharo/systemd
0
0
Fork 0
You've already forked systemd
mirror of https://github.com/Dasharo/systemd.git synced 2026-03-06 15:02:31 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
main
systemd/test/test-execute/exec-privatedevices-bind.service

11 lines
252 B
SYSTEMD
Raw Permalink Normal View History

core: do not make private /dev/ read-only too soon The read-only bit is flipped after setting up all the mounts, so that bind mounts can be added. Remove the early config, and add a unit test. Fixes https://github.com/systemd/systemd/issues/30372
2023-12-07 22:19:11 +00:00
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateDevices=yes with a bind mounted device
[Service]
tests: use relative paths in ExecStart= and friends We want to retain *some* of the full paths in order to test more code paths. But the default should be to use the command name only. This makes the tests less visually cluttered.
2024-01-04 15:24:52 +01:00
ExecStart=sh -c 'test -c /dev/kmsg'
ExecStart=sh -c 'test ! -w /dev/'
core: do not make private /dev/ read-only too soon The read-only bit is flipped after setting up all the mounts, so that bind mounts can be added. Remove the early config, and add a unit test. Fixes https://github.com/systemd/systemd/issues/30372
2023-12-07 22:19:11 +00:00
Type=oneshot
PrivateDevices=yes
BindPaths=/dev/kmsg
Reference in New Issue Copy Permalink
Powered by Gitea Page: 149ms Template: 5ms
English
English
Licenses API