From 029da075e29437a8bfafe8838011e3706838e72c Mon Sep 17 00:00:00 2001 From: Yiran Zhou Date: Sat, 20 Nov 2021 08:23:34 +0800 Subject: [PATCH] Use setcap to specify specific files --- contrib/fping.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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