]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-protectkernelmodules-yes-capabilities.service
core: use id unit when retrieving unit file state (#8038)
[thirdparty/systemd.git] / test / test-execute / exec-protectkernelmodules-yes-capabilities.service
1 [Unit]
2 Description=Test CAP_SYS_MODULE for ProtectKernelModules=yes
3
4 [Service]
5 ProtectKernelModules=yes
6 ExecStart=/bin/sh -x -c '! capsh --print | grep cap_sys_module'
7 Type=oneshot