Bug 723045

Summary: SELinux is preventing /lib/systemd/systemd-uaccess from 'read' accesses on the file seat0.
Product: [Fedora] Fedora Reporter: Jason D. Clinton <me>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3450767285802ee6df98a6008ff24d4ff15da7352f368e433eb09c93ee299e7e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-19 07:27:22 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 Jason D. Clinton 2011-07-18 20:25:47 UTC
SELinux is preventing /lib/systemd/systemd-uaccess from 'read' accesses on the file seat0.

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

If you believe that systemd-uaccess should be allowed read access on the seat0 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-uaccess /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:udev_t:s0-s0:c0.c1023
Target Context                system_u:object_r:systemd_logind_var_run_t:s0
Target Objects                seat0 [ file ]
Source                        systemd-uaccess
Source Path                   /lib/systemd/systemd-uaccess
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           systemd-30-1.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-5.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              3.0-0.rc7.git3.1.fc16.x86_64 #1 SMP Fri Jul 15
                              22:56:12 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Mon 18 Jul 2011 03:24:49 PM CDT
Last Seen                     Mon 18 Jul 2011 03:24:50 PM CDT
Local ID                      5a66f8b5-3f91-42a1-943a-59b9f7918bc5

Raw Audit Messages
type=AVC msg=audit(1311020690.648:109): avc:  denied  { read } for  pid=5345 comm="systemd-uaccess" name="seat0" dev=tmpfs ino=99483 scontext=system_u:system_r:udev_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_logind_var_run_t:s0 tclass=file


type=AVC msg=audit(1311020690.648:109): avc:  denied  { open } for  pid=5345 comm="systemd-uaccess" name="seat0" dev=tmpfs ino=99483 scontext=system_u:system_r:udev_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_logind_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1311020690.648:109): arch=x86_64 syscall=open success=yes exit=EINTR a0=20b8030 a1=80000 a2=1b6 a3=7fff020b5f70 items=0 ppid=1896 pid=5345 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-uaccess exe=/lib/systemd/systemd-uaccess subj=system_u:system_r:udev_t:s0-s0:c0.c1023 key=(null)

Hash: systemd-uaccess,udev_t,systemd_logind_var_run_t,file,read

audit2allow

#============= udev_t ==============
allow udev_t systemd_logind_var_run_t:file { read open };

audit2allow -R

#============= udev_t ==============
allow udev_t systemd_logind_var_run_t:file { read open };

Comment 1 Miroslav Grepl 2011-07-19 07:26:39 UTC
*** Bug 723046 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2011-07-19 07:27:22 UTC
Fixed in selinux-policy-3.10.0-6.fc16.