RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1416087 - [RFE] clockdiff, arping, ping, ping6 use File Capabilities
Summary: [RFE] clockdiff, arping, ping, ping6 use File Capabilities
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: iputils
Version: 6.9
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Jan Synacek
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-24 14:52 UTC by Pat Riehecky
Modified: 2017-01-25 07:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-25 07:10:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pat Riehecky 2017-01-24 14:52:26 UTC
Description of problem:
Can clockdiff, ping, ping6 be packaged to utilize File Capabilities rather than SUID for their network operations.

Version-Release number of selected component (if applicable):iputils-20071127-21.el6


How reproducible:100%


Steps to Reproduce:
1.arping and clockdiff ship without non-root access on RHEL6 (File Cap used in RHEL7)
2.ping and ping6 are setuid
3.

Actual results:
setuid ping/ping6, non-root can run commands under RHEL7 that are not permitted in RHEL6

Expected results:
Use of File Capabilities rather than SUID.

%attr(0755,root,root) %caps(cap_net_raw=p) %{_sbindir}/clockdiff
%attr(0755,root,root) %caps(cap_net_raw=p) %{_sbindir}/arping
%attr(0755,root,root) %caps(cap_net_raw=p cap_net_admin=p) %{_bindir}/ping

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

Comment 1 Jan Synacek 2017-01-25 07:10:13 UTC
RHEL6 is in production phase 2 now (https://access.redhat.com/support/policy/updates/errata/), it's too late for such change. Sorry.


Note You need to log in before you can comment on or make changes to this bug.