Bug 691181

Summary: SELinux is preventing /bin/systemd-tmpfiles from 'setattr' accesses on the directory pulse-PKdhtXMmr18n.
Product: [Fedora] Fedora Reporter: Hicham HAOUARI <hicham.haouari>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:ae31f818ab01cfdf6168bef12a26a82de0df821156663733926f4dd4b8fd5869
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-28 12:09:53 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 Hicham HAOUARI 2011-03-27 11:29:10 UTC
SELinux is preventing /bin/systemd-tmpfiles from 'setattr' accesses on the directory pulse-PKdhtXMmr18n.

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

If you believe that systemd-tmpfiles should be allowed setattr access on the pulse-PKdhtXMmr18n 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:systemd_tmpfiles_t:s0
Target Context                unconfined_u:object_r:sandbox_file_t:s0:c325,c954
Target Objects                pulse-PKdhtXMmr18n [ 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-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.1-6.fc15.i686 #1 SMP
                              Wed Mar 23 23:16:24 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sun 27 Mar 2011 02:33:33 AM WET
Last Seen                     Sun 27 Mar 2011 02:33:33 AM WET
Local ID                      e95eca81-c61f-44e1-9a04-753c67a39eb4

Raw Audit Messages
type=AVC msg=audit(1301193213.714:222): avc:  denied  { setattr } for  pid=1494 comm="systemd-tmpfile" name="pulse-PKdhtXMmr18n" dev=sda5 ino=418349 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=unconfined_u:object_r:sandbox_file_t:s0:c325,c954 tclass=dir


type=SYSCALL msg=audit(1301193213.714:222): arch=i386 syscall=utimensat success=yes exit=0 a0=7 a1=0 a2=bfda05d8 a3=0 items=0 ppid=1 pid=1494 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:systemd_tmpfiles_t:s0 key=(null)

Hash: systemd-tmpfile,systemd_tmpfiles_t,sandbox_file_t,dir,setattr

audit2allow

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t sandbox_file_t:dir setattr;

audit2allow -R

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t sandbox_file_t:dir setattr;

Comment 1 Miroslav Grepl 2011-03-28 12:09:53 UTC

*** This bug has been marked as a duplicate of bug 691175 ***