Bug 646466

Summary: Replace SETUID in spec file with the correct file capabilities.
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: fpingAssignee: Charles R. Anderson <cra>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: chris.ricker, dwalsh, jonstanley, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 646443 Environment:
Last Closed: 2012-02-18 20:18:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 693731    

Description Daniel Walsh 2010-10-25 13:18:08 UTC
+++ This bug was initially created as a clone of Bug #646443 +++

Description of problem:

Please remove setuid setup of files in your package with file capabilities.

This is to satisfy the F15 feature.

https://fedoraproject.org/wiki/Features/RemoveSETUID

An example of how this was done for X is.


%if 0%{?fedora} < 15
%define Xorgperms %attr(4711, root, root)
%else
%define Xorgperms %attr(0711,root,root) %caps(cap_sys_admin,cap_sys_rawio,cap_dac_override=pe)
%endif

Comment 1 Daniel Walsh 2011-04-05 13:22:58 UTC
Any movement on this?

Comment 2 Fedora Admin XMLRPC Client 2011-07-12 22:36:34 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Charles R. Anderson 2011-07-12 23:22:35 UTC
Putting a note in here for myself to keep track of #706682 for SUID-less and CAP_NET_RAW-less kernel support and check if anything else in fping needs SUID.

Comment 4 Jon Stanley 2012-02-09 16:31:19 UTC
Any progress here?

Apparently fping is hard-coded to check if your UID is 0 and if not bail (I haven't looked at the code myself).

Comment 5 Charles R. Anderson 2012-02-18 20:18:38 UTC
Closing, since F17 is using cap_net_raw instead of set-uid root.  Will backport to F16 as well.

Comment 6 Jon Stanley 2012-02-25 19:35:24 UTC
Is it possible to backport to EL6 as well?