Bug 611518

Summary: SELinux is preventing /bin/bash "getattr" access on /sbin/iwconfig.
Product: [Fedora] Fedora Reporter: mathepic
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:a65873235dfdb47716529d891f80ee20aaf3b29155b8fad5479e8be3a031f11e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-07 08:14:01 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 mathepic 2010-07-05 12:32:29 UTC
Summary:

SELinux is preventing /bin/bash "getattr" access on /sbin/iwconfig.

Detailed Description:

SELinux denied access requested by gdm. It is not expected that this access is
required by gdm 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:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:ifconfig_exec_t:s0
Target Objects                /sbin/iwconfig [ file ]
Source                        gdm
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-1.fc13
Target RPM Packages           wireless-tools-29-5.1.fc12
Policy RPM                    selinux-policy-3.7.19-28.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.33.5-124.fc13.x86_64 #1 SMP Fri Jun 11
                              09:38:12 UTC 2010 x86_64 x86_64
Alert Count                   12
First Seen                    Sun 04 Jul 2010 10:00:51 PM EDT
Last Seen                     Mon 05 Jul 2010 07:52:54 AM EDT
Local ID                      5977669b-779f-4a0d-a3a9-e66cefa0d13d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1278330774.490:112): avc:  denied  { getattr } for  pid=1377 comm="gdm" path="/sbin/iwconfig" dev=sda3 ino=12120 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ifconfig_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1278330774.490:112): arch=c000003e syscall=4 success=no exit=-13 a0=1b8eb10 a1=7fff447b5970 a2=7fff447b5970 a3=f items=0 ppid=1 pid=1377 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gdm" exe="/bin/bash" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,gdm,xdm_t,ifconfig_exec_t,file,getattr
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t ifconfig_exec_t:file getattr;

Comment 1 Miroslav Grepl 2010-07-07 08:14:01 UTC

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