Bug 689256 - [selinux-policy-targeted] SELinux is preventing /bin/systemd-tmpfiles from write access on the chr_file kmsg
Summary: [selinux-policy-targeted] SELinux is preventing /bin/systemd-tmpfiles from wr...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 15
Hardware: noarch
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-20 15:57 UTC by Joachim Frieben
Modified: 2011-05-26 20:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-26 20:49:52 UTC
Type: ---


Attachments (Terms of Use)

Description Joachim Frieben 2011-03-20 15:57:50 UTC
SELinux is preventing /bin/systemd-tmpfiles from write access on the chr_file kmsg.

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

If you believe that systemd-tmpfiles should be allowed write access on the kmsg chr_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:kmsg_device_t:s0
Target Objects                kmsg [ chr_file ]
Source                        systemd-tmpfile
Source Path                   /bin/systemd-tmpfiles
Port                          <Unknown>
Host                          banach
Source RPM Packages           systemd-units-20-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-5.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     banach
Platform                      Linux banach 2.6.38-1.fc15.x86_64 #1 SMP Tue Mar
                              15 05:29:00 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 19 Mar 2011 02:03:35 PM CET
Last Seen                     Sat 19 Mar 2011 02:03:35 PM CET
Local ID                      266e01d2-eeda-4b7d-a644-8c0232bee8ec

Raw Audit Messages
type=AVC msg=audit(1300539815.51:74): avc:  denied  { write } for  pid=2465 comm="systemd-tmpfile" name="kmsg" dev=devtmpfs ino=5359 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file


type=AVC msg=audit(1300539815.51:74): avc:  denied  { open } for  pid=2465 comm="systemd-tmpfile" name="kmsg" dev=devtmpfs ino=5359 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1300539815.51:74): arch=x86_64 syscall=open success=yes exit=ESRCH a0=408f40 a1=80101 a2=ffffffff a3=30f41973ac items=0 ppid=1 pid=2465 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,kmsg_device_t,chr_file,write

audit2allow

#============= systemd_tmpfiles_t ==============
#!!!! The source type 'systemd_tmpfiles_t' can write to a 'chr_file' of the following types:
# console_device_t, null_device_t, zero_device_t, devtty_t

allow systemd_tmpfiles_t kmsg_device_t:chr_file { write open };

audit2allow -R

#============= systemd_tmpfiles_t ==============
#!!!! The source type 'systemd_tmpfiles_t' can write to a 'chr_file' of the following types:
# console_device_t, null_device_t, zero_device_t, devtty_t

allow systemd_tmpfiles_t kmsg_device_t:chr_file { write open };


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