3 # Capabilities get lost when creating the fai base.tar.xz image.
9 if [ ! -x $target/sbin
/setcap
] ; then
13 for FILE
in /bin
/ping /bin
/ping6
/usr
/bin
/fping
/usr
/bin
/fping6
; do
14 if [ -x $target/$FILE -a ! -h $target/$FILE ] ; then
15 if $ROOTCMD /sbin
/setcap cap_net_raw
+ep
$FILE; then
16 echo "Setcap worked! $FILE is not suid!"
20 if [ -x $target/usr
/bin
/systemd-detect-virt
] ; then
21 $ROOTCMD /sbin
/setcap cap_dac_override
,cap_sys_ptrace
+ep
/usr
/bin
/systemd-detect-virt