Bug 788651

Summary: SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /etc/samba/smb.conf.
Product: [Fedora] Fedora Reporter: Roger Berg <greb17>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:45b472c6798c2d8f16d94162e4e0a8ddd2395bfb2d8baec3f825a0cfbe8cdcac
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-08 19:59:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Roger Berg 2012-02-08 17:39:10 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.3-2.fc16.x86_64
reason:         SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /etc/samba/smb.conf.
time:           ons  8 feb 2012 18.38.44

description:
:SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /etc/samba/smb.conf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python should be allowed getattr access on the smb.conf <Okänd> 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 system-config-s /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:sambagui_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:admin_home_t:s0
:Target Objects                /etc/samba/smb.conf [ None ]
:Source                        system-config-s
:Source Path                   /usr/bin/python
:Port                          <Okänd>
:Host                          (removed)
:Source RPM Packages           python-2.7.2-5.2.fc16.x86_64
:Target RPM Packages           samba-common-3.6.1-77.fc16.x86_64
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.3-2.fc16.x86_64 #1 SMP Fri
:                              Feb 3 20:08:08 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    ons  8 feb 2012 18.37.20
:Last Seen                     ons  8 feb 2012 18.37.20
:Local ID                      f80ccfb3-7e9f-4629-8087-7b813bffd41f
:
:Raw Audit Messages
:type=AVC msg=audit(1328722640.424:130): avc:  denied  { getattr } for  pid=2912 comm="system-config-s" path="/etc/samba/smb.conf" dev=sda3 ino=790577 scontext=system_u:system_r:sambagui_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328722640.424:130): arch=c000003e syscall=4 success=no exit=-13 a0=186f010 a1=7fff10778250 a2=7fff10778250 a3=20 items=0 ppid=1 pid=2912 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="system-config-s" exe="/usr/bin/python" subj=system_u:system_r:sambagui_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: system-config-s,sambagui_t,admin_home_t,None,getattr
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Daniel Walsh 2012-02-08 19:59:15 UTC
restorecon -R -v /etc/samba

You created the file in /root and mv'd it to /etc, meaning it has the wrong label

Comment 2 Daniel Walsh 2012-02-08 19:59:39 UTC
*** Bug 788653 has been marked as a duplicate of this bug. ***