mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-28 02:37:00 -05:00
refactoring
This commit is contained in:
parent
9e493a9f48
commit
55933f8876
@ -127,7 +127,10 @@ set_file_perms() {
|
|||||||
add_statoverride_entry
|
add_statoverride_entry
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ "$capability" = "" ]; then
|
if [ "$capability" = "" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$capability" = "none" ]; then
|
if [ "$capability" = "none" ]; then
|
||||||
echo_wrapper setcap -r "$fso"
|
echo_wrapper setcap -r "$fso"
|
||||||
else
|
else
|
||||||
@ -138,7 +141,6 @@ set_file_perms() {
|
|||||||
|
|
||||||
echo_wrapper setcap "${capability}+ep" "$fso"
|
echo_wrapper setcap "${capability}+ep" "$fso"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
done < "${config_file}"
|
done < "${config_file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user