Bug 698976 - SELinux is preventing /bin/systemd-tmpfiles from 'unlink' accesses on the file yum.log.
Summary: SELinux is preventing /bin/systemd-tmpfiles from 'unlink' accesses on the fil...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:f514abb3ca8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-22 13:36 UTC by Clyde E. Kunkel
Modified: 2012-09-28 16:14 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-28 16:14:53 UTC
Type: ---


Attachments (Terms of Use)

Description Clyde E. Kunkel 2011-04-22 13:36:23 UTC
SELinux is preventing /bin/systemd-tmpfiles from 'unlink' accesses on the file yum.log.

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

If you believe that systemd-tmpfiles should be allowed unlink 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                yum.log [ file ]
Source                        systemd-tmpfile
Source Path                   /bin/systemd-tmpfiles
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-units-24-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-15.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.39-0.rc4.git2.0.fc16.x86_64 #1 SMP Thu Apr 21
                              02:24:19 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 22 Apr 2011 09:34:57 AM EDT
Last Seen                     Fri 22 Apr 2011 09:34:57 AM EDT
Local ID                      b53a396e-35c0-4e46-8493-219364303bbf

Raw Audit Messages
type=AVC msg=audit(1303479297.272:98): avc:  denied  { unlink } for  pid=2341 comm="systemd-tmpfile" name="yum.log" dev=dm-0 ino=13 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=file


type=SYSCALL msg=audit(1303479297.272:98): arch=x86_64 syscall=unlinkat success=no exit=EACCES a0=4 a1=2028053 a2=0 a3=7fffda840451 items=0 ppid=1 pid=2341 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,root_t,file,unlink

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-04-25 13:36:02 UTC
This looks like an old anaconda bug that was not fixing the label of the yum.log during installation.

Comment 2 Chris Lumens 2011-05-03 19:20:42 UTC
What's the full file path?

Comment 3 Daniel Walsh 2011-05-03 19:36:29 UTC
/var/lock

Comment 4 Clyde E. Kunkel 2012-09-28 16:14:53 UTC
Must be obe. closing


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