Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 727491

Summary: missing policy for tuned, allow ifconfig_t self:capability sys_module;
Product: Red Hat Enterprise Linux 6 Reporter: Petr Sklenar <psklenar>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dwalsh, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-02 11:30: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:

Description Petr Sklenar 2011-08-02 09:38:38 UTC
Description of problem:
missing policy , allow ifconfig_t self:capability sys_module;

Version-Release number of selected component (if applicable):
selinux-policy-3.7.19-93.el6.noarch
tuned-0.2.19-6.el6.noarch

How reproducible:
deterministic

Steps to Reproduce:
0. service network restart
1. /etc/init.d/tuned restart
Stopping tuned: [  OK  ]
Starting tuned: [  OK  ]
  
Actual results:

# type=AVC msg=audit(1312277552.840:119160): avc:  denied  { sys_module } for  pid=24065 comm="ethtool" capability=16  scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:system_r:ifconfig_t:s0 tclass=capability

Expected results:
no avc denial

Additional info:
It was found during: https://bugzilla.redhat.com/show_bug.cgi?id=707079#c14


$ echo 'type=AVC msg=audit(1312277373.363:119153): avc:  denied  { sys_module } for  pid=23100 comm="ethtool" capability=16  scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:system_r:ifconfig_t:s0 tclass=capability' | audit2allow 


#============= ifconfig_t ==============
allow ifconfig_t self:capability sys_module;


$ echo 'type=AVC msg=audit(1312277373.363:119153): avc:  denied  { sys_module } for  pid=23100 comm="ethtool" capability=16  scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:system_r:ifconfig_t:s0 tclass=capability' | audit2why 
type=AVC msg=audit(1312277373.363:119153): avc:  denied  { sys_module } for  pid=23100 comm="ethtool" capability=16  scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:system_r:ifconfig_t:s0 tclass=capability

        Was caused by:
                Missing type enforcement (TE) allow rule.

                You can use audit2allow to generate a loadable module to allow this access.

Comment 1 Miroslav Grepl 2011-08-02 11:30:38 UTC

*** This bug has been marked as a duplicate of bug 726339 ***