diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2016-09-25 13:04:30 +0200 |
---|---|---|
committer | Djalal Harouni <tixxdz@opendz.org> | 2016-09-25 13:04:30 +0200 |
commit | 615a1f4b26f3c7d10ad9ea638341a6920a6bc435 (patch) | |
tree | bd2c0eb3df604f41e21a9c06aedcf8a0168dc95a /test/test-execute/exec-privatedevices-no-capability-mknod.service | |
parent | 8f81a5f61bcf745bae3acad599d7a9da686643e3 (diff) |
test: add CAP_MKNOD tests for PrivateDevices=
Diffstat (limited to 'test/test-execute/exec-privatedevices-no-capability-mknod.service')
-rw-r--r-- | test/test-execute/exec-privatedevices-no-capability-mknod.service | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-execute/exec-privatedevices-no-capability-mknod.service b/test/test-execute/exec-privatedevices-no-capability-mknod.service new file mode 100644 index 0000000000..6d39469da8 --- /dev/null +++ b/test/test-execute/exec-privatedevices-no-capability-mknod.service @@ -0,0 +1,7 @@ +[Unit] +Description=Test CAP_MKNOD capability for PrivateDevices=no + +[Service] +PrivateDevices=no +ExecStart=/bin/sh -x -c 'capsh --print | grep cap_mknod' +Type=oneshot |