test: ensure 'InaccessiblePaths=/proc' option works (#6017)
Test case for PR #5985.
This commit is contained in:
committed by
Evgeny Vereshchagin
parent
b23aec0d6b
commit
c090d74dd9
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Test to make sure that mount namespace setup works properly with the 'InaccessiblePaths=/proc' option
|
||||
|
||||
[Service]
|
||||
InaccessiblePaths=/proc
|
||||
ExecStart=/bin/sh -x -c 'test "$$(stat -c %%a /proc)" = "0"'
|
||||
Type=oneshot
|
||||
Reference in New Issue
Block a user