Bug 715178

Summary: SELinux is preventing /bin/systemd-tmpfiles from 'getattr' accesses on the fifo_file /var/run/lirc/lircm.
Product: [Fedora] Fedora Reporter: Re6roN
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:bda78665ca60acd8639c5aafc0fa23199e326fd37a25bee47eb7d5d51ddc4f06
Fixed In Version: selinux-policy-3.9.16-32.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-08 18:11:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Re6roN 2011-06-22 05:40:08 UTC
SELinux is preventing /bin/systemd-tmpfiles from 'getattr' accesses on the fifo_file /var/run/lirc/lircm.

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

If you believe that systemd-tmpfiles should be allowed getattr access on the lircm fifo_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:lircd_var_run_t:s0
Target Objects                /var/run/lirc/lircm [ fifo_file ]
Source                        systemd-tmpfile
Source Path                   /bin/systemd-tmpfiles
Port                          <Ismeretlen>
Host                          (removed)
Source RPM Packages           systemd-units-26-3.fc15
Target RPM Packages           lirc-0.9.0-6.fc15
Policy RPM                    selinux-policy-3.9.16-26.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.8-32.fc15.x86_64 #1 SMP Mon Jun
                              13 19:49:05 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    2011. jún. 21., kedd, 17.36.01 CEST
Last Seen                     2011. jún. 22., szerda, 07.26.27 CEST
Local ID                      4260b873-a6c8-4cf3-8c99-a62385fe54e9

Raw Audit Messages
type=AVC msg=audit(1308720387.821:45): avc:  denied  { getattr } for  pid=9795 comm="systemd-tmpfile" path="/var/run/lirc/lircm" dev=tmpfs ino=23505 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:lircd_var_run_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1308720387.821:45): arch=x86_64 syscall=newfstatat success=yes exit=0 a0=4 a1=23de52b a2=7fffb523e3b0 a3=100 items=0 ppid=1 pid=9795 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,lircd_var_run_t,fifo_file,getattr

audit2allow

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t lircd_var_run_t:fifo_file getattr;

audit2allow -R

#============= systemd_tmpfiles_t ==============
allow systemd_tmpfiles_t lircd_var_run_t:fifo_file getattr;

Comment 1 Daniel Walsh 2011-06-22 15:13:00 UTC
Commit 3c0f4076443bc7b4080c38a9ba20c17fb9b9145a in Rawhide has this fix.

Comment 2 Miroslav Grepl 2011-06-29 13:09:33 UTC
Fixed in selinux-policy-3.9.16-31.fc15

Comment 3 Fedora Update System 2011-06-30 15:59:19 UTC
selinux-policy-3.9.16-31.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-31.fc15

Comment 4 Fedora Update System 2011-07-01 18:55:47 UTC
Package selinux-policy-3.9.16-32.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-32.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-32.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-07-08 18:10:01 UTC
selinux-policy-3.9.16-32.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.