Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 753438 - SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on the file utmp.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:344324a4810...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-12 14:47 UTC by Jann Horn
Modified: 2011-11-14 11:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-14 11:53:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jann Horn 2011-11-12 14:47:34 UTC
SELinux is preventing /usr/libexec/gdm-session-worker from 'read' accesses on the file utmp.

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

If you believe that gdm-session-worker should be allowed read access on the utmp 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 gdm-session-wor /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:var_run_t:s0
Target Objects                utmp [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           gdm-3.0.4-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-39.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.6-0.fc15.i686 #1 SMP Tue Oct
                              4 00:51:19 UTC 2011 i686 i686
Alert Count                   4
First Seen                    Sa 12 Nov 2011 15:46:00 CET
Last Seen                     Sa 12 Nov 2011 15:46:01 CET
Local ID                      d9d672b0-7887-4ab9-8845-99e821270248

Raw Audit Messages
type=AVC msg=audit(1321109161.416:59): avc:  denied  { read } for  pid=1469 comm="gdm-simple-slav" name="utmp" dev=tmpfs ino=12073 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1321109161.416:59): arch=i386 syscall=open success=no exit=EACCES a0=4793f523 a1=88000 a2=82736e8 a3=4793f529 items=0 ppid=1456 pid=1469 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=gdm-simple-slav exe=/usr/libexec/gdm-simple-slave subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gdm-session-wor,xdm_t,var_run_t,file,read

audit2allow

#============= xdm_t ==============
allow xdm_t var_run_t:file read;

audit2allow -R

#============= xdm_t ==============
allow xdm_t var_run_t:file read;

Comment 1 Miroslav Grepl 2011-11-14 11:53:40 UTC
/var/run/utmp is mislabeled. Not sure how got this mislabeling.

# restorecon -R -v /var/run/utmp

will fix.


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