X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FDEBIAN%2F20-capabilities;h=b057587a65d9f5328592f7c1772a0b384576a125;hb=e6c8a36522847eca91819ab3eb656dd824bc3e3c;hp=6e63c92dade3f4cf0c054698eb1bf25c25247d71;hpb=3bd65f0ca635f1349626c2393a4dd8a50df64f54;p=automated-distro-installer diff --git a/fai/config/scripts/DEBIAN/20-capabilities b/fai/config/scripts/DEBIAN/20-capabilities index 6e63c92..b057587 100755 --- a/fai/config/scripts/DEBIAN/20-capabilities +++ b/fai/config/scripts/DEBIAN/20-capabilities @@ -4,6 +4,9 @@ # Restore them here. # +# note on an ubuntu 16.04 system, these caps were set without this script +# running. I wonder if it is actually needed on a debian 8 system. + set -e if [ ! -x $target/sbin/setcap ] ; then @@ -11,7 +14,7 @@ if [ ! -x $target/sbin/setcap ] ; then fi for FILE in /bin/ping /bin/ping6 /usr/bin/fping /usr/bin/fping6; do - if [ -x $target/$FILE ] ; then + if [ -x $target/$FILE -a ! -h $target/$FILE ] ; then if $ROOTCMD /sbin/setcap cap_net_raw+ep $FILE; then echo "Setcap worked! $FILE is not suid!" fi