test: add capability tests for ProtectKernelModules=

This just adds capabilities test.
This commit is contained in:
Djalal Harouni
2016-10-12 13:36:27 +02:00
parent 502d704e5e
commit 3ae33295f0
4 changed files with 27 additions and 0 deletions
@@ -0,0 +1,7 @@
[Unit]
Description=Test CAP_SYS_MODULE for ProtectKernelModules=yes
[Service]
ProtectKernelModules=yes
ExecStart=/bin/sh -x -c '! capsh --print | grep cap_sys_module'
Type=oneshot