Bug 694584 - SELinux is preventing /bin/systemd-tmpfiles from 'getattr' accesses on the sock_file /tmp/pulse-aOJZOaaYfVVA/native.
Summary: SELinux is preventing /bin/systemd-tmpfiles from 'getattr' accesses on the so...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:64593572eba...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-07 17:34 UTC by Acker
Modified: 2011-04-17 09:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-17 09:20:01 UTC
Type: ---


Attachments (Terms of Use)

Description Acker 2011-04-07 17:34:16 UTC
SELinux is preventing /bin/systemd-tmpfiles from 'getattr' accesses on the sock_file /tmp/pulse-aOJZOaaYfVVA/native.

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

If you believe that systemd-tmpfiles should be allowed getattr access on the native sock_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 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:user_home_t:s0
Target Objects                /tmp/pulse-aOJZOaaYfVVA/native [ sock_file ]
Source                        systemd-tmpfile
Source Path                   /bin/systemd-tmpfiles
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           systemd-units-24-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-12.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.i686 #1 SMP
                              Wed Mar 30 16:54:01 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Do 07 Apr 2011 19:33:32 CEST
Last Seen                     Do 07 Apr 2011 19:33:32 CEST
Local ID                      7ecf9d0b-683d-4ad8-a9fe-88abe00a4d81

Raw Audit Messages
type=AVC msg=audit(1302197612.766:101): avc:  denied  { getattr } for  pid=2561 comm="systemd-tmpfile" path="/tmp/pulse-aOJZOaaYfVVA/native" dev=sda1 ino=270339 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1302197612.766:101): arch=i386 syscall=fstatat64 success=yes exit=0 a0=6 a1=9b71453 a2=bf8f34b0 a3=100 items=0 ppid=1 pid=2561 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,user_home_t,sock_file,getattr

audit2allow

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t user_home_t:sock_file getattr;

audit2allow -R

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t user_home_t:sock_file getattr;

Comment 1 Daniel Walsh 2011-04-17 09:20:01 UTC
Fixed in current release.


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