Bug 677758 - SELinux is preventing /lib/systemd/systemd-tmpfiles from 'getattr' accesses on the file /tmp/traceback-f14.img.
Summary: SELinux is preventing /lib/systemd/systemd-tmpfiles from 'getattr' accesses o...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:e41a6a89ee2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-15 18:46 UTC by James Laska
Modified: 2013-09-02 06:53 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-16 14:38:45 UTC
Type: ---


Attachments (Terms of Use)

Description James Laska 2011-02-15 18:46:40 UTC
SELinux is preventing /lib/systemd/systemd-tmpfiles from 'getattr' accesses on the file /tmp/traceback-f14.img.

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

If you believe that systemd-tmpfiles should be allowed getattr access on the traceback-f14.img 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/traceback-f14.img [ file ]
Source                        systemd-tmpfile
Source Path                   /lib/systemd/systemd-tmpfiles
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-17-6.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-0.rc4.git0.2.fc15.x86_64 #1
                              SMP Tue Feb 8 04:08:32 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 15 Feb 2011 11:51:21 AM EST
Last Seen                     Tue 15 Feb 2011 11:51:21 AM EST
Local ID                      9ea4928a-47fe-46fd-8564-1cfdbfa08e0e

Raw Audit Messages
type=AVC msg=audit(1297788681.421:371): avc:  denied  { getattr } for  pid=3527 comm="systemd-tmpfile" path="/tmp/traceback-f14.img" dev=dm-3 ino=176436 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1297788681.421:371): arch=x86_64 syscall=newfstatat success=yes exit=0 a0=4 a1=1918003 a2=7ffff08cad40 a3=100 items=0 ppid=1 pid=3527 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=/lib/systemd/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null)

Hash: systemd-tmpfile,systemd_tmpfiles_t,user_home_t,file,getattr

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-02-15 23:00:26 UTC
tmpreaper_t has the following, I think we need these for systemd_tmpfiles_t also.

files_getattr_all_dirs(tmpreaper_t)
files_getattr_all_files(tmpreaper_t)

Comment 2 Miroslav Grepl 2011-02-16 14:38:45 UTC
Yes, I am seeing similar avc msgs.

Fixed in the next rawhide release.


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