This commit is contained in:
Patrick Schleizer 2019-12-23 00:26:15 -05:00
parent f4b1df02ee
commit 7aea304549
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -387,6 +387,9 @@ set_file_perms() {
fi fi
if [ "$capability_from_config" = "none" ]; then if [ "$capability_from_config" = "none" ]; then
# sudo setcap -r /usr/bin/ping
# Failed to set capabilities on file `/usr/bin/ping' (No data available)
# The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
echo_wrapper_audit setcap -r "$fso" echo_wrapper_audit setcap -r "$fso"
else else
if ! capsh --print | grep "Bounding set" | grep -q "$capability_from_config" ; then if ! capsh --print | grep "Bounding set" | grep -q "$capability_from_config" ; then