Bug 692846 - SELinux is preventing /usr/bin/python from 'setattr' accesses on the directory /sys.
Summary: SELinux is preventing /usr/bin/python from 'setattr' accesses on the director...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:d5f4d999dfa...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-01 11:27 UTC by Vít Ondruch
Modified: 2011-05-17 15:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-17 15:58:17 UTC
Type: ---


Attachments (Terms of Use)

Description Vít Ondruch 2011-04-01 11:27:56 UTC
SELinux is preventing /usr/bin/python from 'setattr' accesses on the directory /sys.

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

If you believe that python should be allowed setattr access on the sys directory 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 yum /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:mock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                /sys [ dir ]
Source                        yum
Source Path                   /usr/bin/python
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           python-2.7.1-6.fc15
Target RPM Packages           filesystem-2.4.37-1.fc15
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38-1.fc15.x86_64 #1 SMP Tue Mar 15 05:29:00
                              UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Pá 1. duben 2011, 13:26:17 CEST
Last Seen                     Pá 1. duben 2011, 13:26:17 CEST
Local ID                      f9144423-7986-409c-94be-0c90e7c48625

Raw Audit Messages
type=AVC msg=audit(1301657177.256:78): avc:  denied  { setattr } for  pid=2917 comm="yum" name="/" dev=sysfs ino=1 scontext=unconfined_u:system_r:mock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir


type=SYSCALL msg=audit(1301657177.256:78): arch=x86_64 syscall=chown success=yes exit=0 a0=4dcb720 a1=0 a2=0 a3=2 items=0 ppid=2857 pid=2917 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=yum exe=/usr/bin/python subj=unconfined_u:system_r:mock_t:s0-s0:c0.c1023 key=(null)

Hash: yum,mock_t,sysfs_t,dir,setattr

audit2allow

#============= mock_t ==============
allow mock_t sysfs_t:dir setattr;

audit2allow -R

#============= mock_t ==============
allow mock_t sysfs_t:dir setattr;

Comment 1 Daniel Walsh 2011-04-01 13:26:57 UTC
Fixed in selinux-policy-3.9.16-10.fc15


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