]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/exec-capabilityboundingset-merge.service
test: add tests to ensure that the capabilities are properly set
[thirdparty/systemd.git] / test / exec-capabilityboundingset-merge.service
1 [Unit]
2 Description=Test for CapabilityBoundingSet
3
4 [Service]
5 ExecStart=/bin/sh -c 'c=$(capsh --print | grep "Bounding set " | cut -f 2 -d "="); echo $c; exit $(test $c = "cap_chown,cap_fowner,cap_kill")'
6 CapabilityBoundingSet=CAP_FOWNER
7 CapabilityBoundingSet=CAP_KILL CAP_CHOWN