Bug 723046

Summary: SELinux is preventing /lib/systemd/systemd-uaccess from 'getattr' accesses on the file /run/systemd/seats/seat0.
Product: [Fedora] Fedora Reporter: Jason D. Clinton <me>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE 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:f43afd626ad35122422100a7a1b002e91ab7f46c0bbb0a6ee9bfe5de9d8b6be7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-19 07:26:39 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:26:17 UTC
SELinux is preventing /lib/systemd/systemd-uaccess from 'getattr' accesses on the file /run/systemd/seats/seat0.

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

If you believe that systemd-uaccess should be allowed getattr 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                /run/systemd/seats/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                      9ba7acd4-8f46-479c-8c09-903ccfd947ca

Raw Audit Messages
type=AVC msg=audit(1311020690.649:110): avc:  denied  { getattr } for  pid=5345 comm="systemd-uaccess" path="/run/systemd/seats/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.649:110): arch=x86_64 syscall=fstat success=yes exit=0 a0=4 a1=7fff020b5eb0 a2=7fff020b5eb0 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,getattr

audit2allow

#============= udev_t ==============
allow udev_t systemd_logind_var_run_t:file getattr;

audit2allow -R

#============= udev_t ==============
allow udev_t systemd_logind_var_run_t:file getattr;

Comment 1 Miroslav Grepl 2011-07-19 07:26:39 UTC

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