Bug 557482 - SELinux is preventing /usr/libexec/gdm-session-worker "read" access on /root/.gstreamer-0.10/registry.x86_64.bin.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker "read" access on /root/...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-21 15:34 UTC by Elad Alfassa
Modified: 2010-02-02 01:22 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-78.fc12
Clone Of:
Environment:
Last Closed: 2010-02-02 01:22:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to label /root/.gstreamer-* such that gdm can read it. (5.23 KB, application/octet-stream)
2010-01-21 16:17 UTC, Daniel Walsh
no flags Details

Description Elad Alfassa 2010-01-21 15:34:06 UTC
Summary:
SELinux is preventing /usr/libexec/gdm-session-worker "read" access on
/root/.gstreamer-0.10/registry.x86_64.bin.


Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by gdm-session-wor. It is not expected that this
access is required by gdm-session-wor and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:admin_home_t:s0
Target Objects                /root/.gstreamer-0.10/registry.x86_64.bin [ file ]
Source                        gdm-session-wor
Source Path                   /usr/libexec/gdm-session-worker
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdm-2.28.2-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-69.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux E-laptop 2.6.31.9-174.fc12.x86_64 #1 SMP Mon
                              Dec 21 05:33:33 UTC 2009 x86_64 x86_64
Alert Count                   18
First Seen                    IST 18:31:54 2010 ינו 18 ב'
Last Seen                     IST 16:22:39 2010 ינו 19 ג'
Local ID                      b37f4951-d088-4026-a1ca-3e146d578f2a
Line Numbers                  

Raw Audit Messages            

node=E-laptop type=AVC msg=audit(1263910959.367:9): avc:  denied  { read } for  pid=1506 comm="gdm-session-wor" name="registry.x86_64.bin" dev=sda6 ino=1540956 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=file

node=E-laptop type=AVC msg=audit(1263910959.367:9): avc:  denied  { open } for  pid=1506 comm="gdm-session-wor" name="registry.x86_64.bin" dev=sda6 ino=1540956 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:admin_home_t:s0 tclass=file

node=E-laptop type=SYSCALL msg=audit(1263910959.367:9): arch=c000003e syscall=2 success=yes exit=4294967424 a0=11b3030 a1=0 a2=0 a3=18 items=0 ppid=1366 pid=1506 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gdm-session-wor" exe="/usr/libexec/gdm-session-worker" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)


It is not usual that gdm needs Gstreamer access, but I use  pam-face-authentication (http://code.google.com/p/pam-face-authentication/) and because of this bug it doesn't work on login. (If I already logged on it does works).

Comment 1 Daniel Walsh 2010-01-21 16:17:40 UTC
Created attachment 385957 [details]
Patch to label /root/.gstreamer-* such that gdm can read it.

Miroslav, what do you think of this patch.  I think labeling stuff in the /root directory might eliminate some of these avcs we are seeing.

Please add to F12.

Comment 2 Miroslav Grepl 2010-01-21 16:46:06 UTC
Looks good. I believe mainly the labeling 

/root/\.pulse(/.*)?    gen_context(system_u:object_r:gnome_home_t,s0)
/root/\.gstreamer-.*   gen_context(system_u:object_r:gstreamer_home_t,s0)

will prevent further bugs.

Fixed in selinux-policy-3.6.32-75.fc12.noarch

Comment 3 Fedora Update System 2010-01-28 09:22:32 UTC
selinux-policy-3.6.32-78.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-78.fc12

Comment 4 Fedora Update System 2010-01-29 03:27:51 UTC
selinux-policy-3.6.32-78.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1207

Comment 5 Fedora Update System 2010-02-02 01:19:57 UTC
selinux-policy-3.6.32-78.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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