From: Yiran Zhou Date: Sat, 20 Nov 2021 00:23:34 +0000 (+0800) Subject: Use setcap to specify specific files X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=029da075e29437a8bfafe8838011e3706838e72c;p=fping.git Use setcap to specify specific files --- diff --git a/contrib/fping.spec b/contrib/fping.spec index e587c4a..823c7ff 100644 --- a/contrib/fping.spec +++ b/contrib/fping.spec @@ -54,7 +54,8 @@ rm -rf $RPM_BUILD_ROOT %post if [ -x /usr/sbin/setcap ]; then /bin/chmod 0755 /usr/sbin/fping* - /usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping* + /usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping + /usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping6 fi %changelog