Minor update: capabilities patch
This commit is contained in:
parent
9b084be66d
commit
99b543e3ac
@ -89,12 +89,12 @@
|
||||
- perror("ping: cap_set_proc");
|
||||
+ /* check for cap_net_admin because it may be needed to set packet marks */
|
||||
+ if ((cap = cap_get_proc()) == NULL) {
|
||||
+ perror("ping: cap_get_proc");
|
||||
+ perror("ping6: cap_get_proc");
|
||||
exit(-1);
|
||||
}
|
||||
- cap_free(caps);
|
||||
+ if (cap_get_flag(cap, CAP_NET_ADMIN, CAP_EFFECTIVE, &net_admin_set) != 0) {
|
||||
+ perror("ping: cap_get_flag");
|
||||
+ perror("ping6: cap_get_flag");
|
||||
+ exit(-1);
|
||||
+ }
|
||||
+ cap_free(cap);
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: Network monitoring tools including ping
|
||||
Name: iputils
|
||||
Version: 20101006
|
||||
Release: 16%{?dist}
|
||||
Release: 17%{?dist}
|
||||
License: BSD
|
||||
URL: http://www.skbuff.net/iputils
|
||||
Group: System Environment/Daemons
|
||||
@ -191,6 +191,9 @@ fi
|
||||
%{_sysconfdir}/rc.d/init.d/rdisc
|
||||
|
||||
%changelog
|
||||
* Mon Jul 23 2012 Jan Synáček <jsynacek@redhat.com> 20101006-17
|
||||
- Minor update: capabilities patch
|
||||
|
||||
* Fri Jul 20 2012 Jan Synáček <jsynacek@redhat.com> 20101006-16
|
||||
- Make fedora-review friendly
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user