Bug 689016 - SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the directory .sandbox-hicham-kauJtf.
Summary: SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the direc...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:57ad29986e6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-18 20:00 UTC by Hicham HAOUARI
Modified: 2011-03-18 22:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-18 22:12:43 UTC
Type: ---


Attachments (Terms of Use)

Description Hicham HAOUARI 2011-03-18 20:00:12 UTC
SELinux is preventing /bin/systemd-tmpfiles from 'read' accesses on the directory .sandbox-hicham-kauJtf.

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

If you believe that systemd-tmpfiles should be allowed read access on the .sandbox-hicham-kauJtf 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 systemd-tmpfile /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:initrc_t:s0
Target Context                unconfined_u:object_r:sandbox_file_t:s0:c325,c954
Target Objects                .sandbox-hicham-kauJtf [ dir ]
Source                        systemd-tmpfile
Source Path                   /bin/systemd-tmpfiles
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-units-20-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-1.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-1.fc15.i686 #1 SMP Tue
                              Mar 15 05:26:56 UTC 2011 i686 i686
Alert Count                   3
First Seen                    Thu 17 Mar 2011 08:05:01 PM WET
Last Seen                     Fri 18 Mar 2011 07:58:47 PM WET
Local ID                      06860a79-b7a6-4725-bcd3-d72a1193da5d

Raw Audit Messages
type=AVC msg=audit(1300478327.969:219): avc:  denied  { read } for  pid=1699 comm="systemd-tmpfile" name=".sandbox-hicham-kauJtf" dev=sda5 ino=418252 scontext=system_u:system_r:initrc_t:s0 tcontext=unconfined_u:object_r:sandbox_file_t:s0:c325,c954 tclass=dir


type=SYSCALL msg=audit(1300478327.969:219): arch=i386 syscall=openat success=no exit=EACCES a0=4 a1=8b38b2f a2=b0800 a3=0 items=0 ppid=1 pid=1699 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-tmpfile exe=/bin/systemd-tmpfiles subj=system_u:system_r:initrc_t:s0 key=(null)

Hash: systemd-tmpfile,initrc_t,sandbox_file_t,dir,read

audit2allow

#============= initrc_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.
#Contraint rule: 
allow initrc_t sandbox_file_t:dir read;

audit2allow -R

#============= initrc_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.
#Contraint rule: 
allow initrc_t sandbox_file_t:dir read;

Comment 1 Daniel Walsh 2011-03-18 22:12:43 UTC
The problem here is 

/bin/systemd-tmpfiles is not labeled correctly.  Please yum update to the latest policy and this problem should go away.


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