Bug 923473 - SELinux is preventing /usr/sbin/ip from 'execute' accesses on the file ip.
Summary: SELinux is preventing /usr/sbin/ip from 'execute' accesses on the file ip.
Keywords:
Status: CLOSED DUPLICATE of bug 923497
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c232da594f94752aa9474c5597d...
Depends On:
Blocks: F19Blocker, F19FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2013-03-19 23:54 UTC by Adam Williamson
Modified: 2013-03-20 00:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-20 00:56:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2013-03-19 23:54:05 UTC
Description of problem:
Occurs on boot of a Fedora 19 live image built from current repositories.
SELinux is preventing /usr/sbin/ip from 'execute' accesses on the file ip.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that ip should be allowed execute access on the ip file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep ip /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:ifconfig_exec_t:s0
Target Objects                ip [ file ]
Source                        ip
Source Path                   /usr/sbin/ip
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           iproute-3.8.0-3.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-22.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc3.git0.3.fc19.x86_64 #1
                              SMP Mon Mar 18 21:39:31 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-03-19 19:40:42 EDT
Last Seen                     2013-03-19 19:40:43 EDT
Local ID                      6b53ee6a-2dbc-49cd-b9ac-fee49538f160

Raw Audit Messages
type=AVC msg=audit(1363736443.826:423): avc:  denied  { execute } for  pid=2425 comm="20-chrony" name="ip" dev="dm-0" ino=147693 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:ifconfig_exec_t:s0 tclass=file


type=AVC msg=audit(1363736443.826:423): avc:  denied  { open } for  pid=2425 comm="20-chrony" path="/usr/sbin/ip" dev="dm-0" ino=147693 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:ifconfig_exec_t:s0 tclass=file


type=AVC msg=audit(1363736443.826:423): avc:  denied  { execute_no_trans } for  pid=2425 comm="20-chrony" path="/usr/sbin/ip" dev="dm-0" ino=147693 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:ifconfig_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1363736443.826:423): arch=x86_64 syscall=execve success=yes exit=0 a0=10467d0 a1=1044080 a2=1046bb0 a3=7fffda2fd760 items=0 ppid=2422 pid=2425 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=ip exe=/usr/sbin/ip subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)

Hash: ip,system_dbusd_t,ifconfig_exec_t,file,execute

audit2allow

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

audit2allow -R
require {
	type system_dbusd_t;
}

#============= system_dbusd_t ==============
sysnet_exec_ifconfig(system_dbusd_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc3.git0.3.fc19.x86_64
type:           libreport

Comment 1 Adam Williamson 2013-03-19 23:54:30 UTC
Final blocker: "In most cases, there must be no SELinux 'AVC: denied' messages or abrt crash notifications on initial boot and subsequent login"

Comment 2 Daniel Walsh 2013-03-20 00:56:08 UTC

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


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