Bug 811573 - SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the file /usr/include/python2.7/pyconfig-64.h.
Summary: SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the file /u...
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:2b56a26738b356221da094dc390...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-11 13:06 UTC by info
Modified: 2012-04-12 08:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-12 08:43:01 UTC
Type: ---


Attachments (Terms of Use)

Description info 2012-04-11 13:06:06 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.1-3.fc16.x86_64
reason:         SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the file /usr/include/python2.7/pyconfig-64.h.
time:           Wed 11 Apr 2012 04:05:53 PM EEST

description:
:SELinux is preventing /sbin/setfiles from 'relabelto' accesses on the file /usr/include/python2.7/pyconfig-64.h.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/usr/include/python2.7/pyconfig-64.h default label should be usr_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /usr/include/python2.7/pyconfig-64.h
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that setfiles should be allowed relabelto access on the pyconfig-64.h 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 restorecon /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c102
:                              3
:Target Context                system_u:object_r:rtkit_daemon_t:s0
:Target Objects                /usr/include/python2.7/pyconfig-64.h [ file ]
:Source                        restorecon
:Source Path                   /sbin/setfiles
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           policycoreutils-2.1.4-13.fc16.x86_64
:Target RPM Packages           python-libs-2.7.2-5.2.fc16.x86_64
:Policy RPM                    selinux-policy-3.10.0-80.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.1-3.fc16.x86_64 #1
:                              SMP Wed Apr 4 18:08:51 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Wed 11 Apr 2012 04:03:14 PM EEST
:Last Seen                     Wed 11 Apr 2012 04:05:35 PM EEST
:Local ID                      f843713e-b7b2-4f4b-a2ab-6a2cc63f6bda
:
:Raw Audit Messages
:type=AVC msg=audit(1334149535.4:158): avc:  denied  { relabelto } for  pid=4288 comm="restorecon" name="pyconfig-64.h" dev="dm-1" ino=143694 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rtkit_daemon_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1334149535.4:158): arch=x86_64 syscall=lsetxattr success=no exit=EACCES a0=7ffee793af50 a1=7ffee671b46b a2=7ffee82caf00 a3=24 items=0 ppid=4199 pid=4288 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=8 comm=restorecon exe=/sbin/setfiles subj=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 key=(null)
:
:Hash: restorecon,setfiles_t,rtkit_daemon_t,file,relabelto
:
:audit2allow
:
:#============= setfiles_t ==============
:allow setfiles_t rtkit_daemon_t:file relabelto;
:
:audit2allow -R
:
:#============= setfiles_t ==============
:allow setfiles_t rtkit_daemon_t:file relabelto;
:

Comment 1 Miroslav Grepl 2012-04-12 08:43:01 UTC
What are you exactly doing?

"rtkit_daemon_t" is a process label. It can not be used for a file.


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