Bug 788651 - SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /etc/samba/smb.conf.
Summary: SELinux is preventing /usr/bin/python from 'getattr' accesses on the None /et...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:45b472c6798c2d8f16d94162e4e...
: 788653 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-08 17:39 UTC by Roger Berg
Modified: 2012-02-08 19:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-08 19:59:15 UTC
Type: ---


Attachments (Terms of Use)

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. ***


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