Bug 669079 - SELinux is preventing /lib/systemd/systemd-tmpfiles from 'getattr' accesses on the file /tmp/yum.log.
Summary: SELinux is preventing /lib/systemd/systemd-tmpfiles from 'getattr' accesses o...
Keywords:
Status: CLOSED DUPLICATE of bug 674194
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6adfa0d7b21...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-12 16:11 UTC by Peter Hjalmarsson
Modified: 2014-01-21 23:17 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-02-01 16:21:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter Hjalmarsson 2011-01-12 16:11:58 UTC
SELinux is preventing /lib/systemd/systemd-tmpfiles from 'getattr' accesses on the file /tmp/yum.log.

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

If you believe that systemd-tmpfiles should be allowed getattr access on the yum.log 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                system_u:object_r:root_t:s0
Target Objects                /tmp/yum.log [ file ]
Source                        systemd-tmpfile
Source Path                   /lib/systemd/systemd-tmpfiles
Port                          <Okänd>
Host                          (removed)
Source RPM Packages           systemd-16-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.12-5.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-2.fc15.x86_64 #1 SMP Fri
                              Jan 7 14:57:36 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    ons 12 jan 2011 14.09.07
Last Seen                     ons 12 jan 2011 14.09.07
Local ID                      1d10f530-9169-4647-bb37-d5bb2a1b2f30

Raw Audit Messages
type=AVC msg=audit(1294837747.709:68): avc:  denied  { getattr } for  pid=2656 comm="systemd-tmpfile" path="/tmp/yum.log" dev=dm-1 ino=1966082 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=file


type=SYSCALL msg=audit(1294837747.709:68): arch=x86_64 syscall=newfstatat success=yes exit=0 a0=4 a1=19b9b63 a2=7fff0928a920 a3=100 items=0 ppid=1 pid=2656 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,root_t,file,getattr

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-01-12 17:16:28 UTC
Not sure how you got a file labeled root_t into /tmp.  But can you just remove the log file or chcon -t tmp_t and then systemd-tmpfiles will stop complaining.

Comment 2 Paolo Bonzini 2011-02-01 15:13:50 UTC
Possibly a bug in yum, since I could reproduce it too?  Reassigning.

Comment 3 Paolo Bonzini 2011-02-01 16:21:22 UTC

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


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