Bug 569719

Summary: SELinux is preventing /sbin/ip "execute" access on /sbin/ip.
Product: [Fedora] Fedora Reporter: Jan Alonzo <jmalonzo>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e378295c1e82c4c2231f3660e659adec48f2d5f1c8a824dd06e5d3a835b993fc
Fixed In Version: selinux-policy-3.7.14-3.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-20 03:35:43 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 Jan Alonzo 2010-03-02 07:12:05 UTC
Summary:

SELinux is preventing /sbin/ip "execute" access on /sbin/ip.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by ip. It is not expected that this access is
required by ip and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:devicekit_power_t:s0-s0:c0.c1023
Target Context                system_u:object_r:ifconfig_exec_t:s0
Target Objects                /sbin/ip [ file ]
Source                        ip
Source Path                   /sbin/ip
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iproute-2.6.32-1.fc13
Target RPM Packages           iproute-2.6.32-1.fc13
Policy RPM                    selinux-policy-3.7.9-1.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33-0.48.rc8.git1.fc14.x86_64 #1 SMP Fri Feb 19
                              03:44:33 UTC 2010 x86_64 x86_64
Alert Count                   6
First Seen                    Tue 02 Mar 2010 01:15:51 AM EST
Last Seen                     Tue 02 Mar 2010 08:22:45 AM EST
Local ID                      9c202261-20f7-4a37-ae29-3c7b410baff2
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1267478565.911:57): avc:  denied  { execute } for  pid=7735 comm="56dhclient" name="ip" dev=dm-1 ino=20798 scontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ifconfig_exec_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1267478565.911:57): avc:  denied  { read open } for  pid=7735 comm="56dhclient" name="ip" dev=dm-1 ino=20798 scontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ifconfig_exec_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1267478565.911:57): avc:  denied  { execute_no_trans } for  pid=7735 comm="56dhclient" path="/sbin/ip" dev=dm-1 ino=20798 scontext=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ifconfig_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1267478565.911:57): arch=c000003e syscall=59 success=yes exit=0 a0=1a3c3a0 a1=1a3cbc0 a2=1a3d480 a3=28 items=0 ppid=7734 pid=7735 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ip" exe="/sbin/ip" subj=system_u:system_r:devicekit_power_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,ip,devicekit_power_t,ifconfig_exec_t,file,execute
audit2allow suggests:

#============= devicekit_power_t ==============
allow devicekit_power_t ifconfig_exec_t:file { read execute open execute_no_trans };

Comment 1 Daniel Walsh 2010-03-02 13:45:15 UTC
Miroslav

add

sysnet_domtrans_ifconfig(devicekit_power_t)
to F12.

Fixed in selinux-policy-3.7.10-6.fc13.noarch

Comment 2 Daniel Walsh 2010-03-02 13:45:53 UTC
*** Bug 569720 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2010-03-12 19:44:25 UTC
selinux-policy-3.7.14-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.14-1.fc13

Comment 4 Fedora Update System 2010-03-14 13:38:17 UTC
selinux-policy-3.7.14-3.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.14-3.fc13

Comment 5 Fedora Update System 2010-03-20 03:34:30 UTC
selinux-policy-3.7.14-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.