Logo
Explore Help
Sign In
morgan/systemd
1
0
Fork 0
You've already forked systemd
mirror of https://github.com/morgan9e/systemd synced 2026-04-15 08:56:15 +09: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 Version: 1.25.5 Page: 798ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API