mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-04 15:45:22 -05:00
exit non-zero if capability removal failed
This commit is contained in:
parent
3670fcf48b
commit
fef1469fe6
@ -394,6 +394,7 @@ set_file_perms() {
|
|||||||
echo_wrapper_ignore setcap -r "$fso"
|
echo_wrapper_ignore setcap -r "$fso"
|
||||||
getcap_output="$(getcap "$fso")"
|
getcap_output="$(getcap "$fso")"
|
||||||
if [ ! "$getcap_output" = "" ]; then
|
if [ ! "$getcap_output" = "" ]; then
|
||||||
|
exit_code=205
|
||||||
echo "ERROR: removing capabilities for fso '$fso' failed!" >&2
|
echo "ERROR: removing capabilities for fso '$fso' failed!" >&2
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user