Bug 558073 - SELinux is preventing /usr/libexec/gdm-session-worker "read" access on video0.
Summary: SELinux is preventing /usr/libexec/gdm-session-worker "read" access on video0.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:0db3bf22371...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-23 14:12 UTC by Elad Alfassa
Modified: 2010-02-02 01:22 UTC (History)
3 users (show)

Fixed In Version: 3.6.32-78.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-02 01:22:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Elad Alfassa 2010-01-23 14:12:55 UTC
Summary:

SELinux is preventing /usr/libexec/gdm-session-worker "read" access on video0.

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://docs.fedoraproject.org/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:v4l_device_t:s0
Target Objects                video0 [ chr_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-73.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.3.fc12.x86_64 #1
                              SMP Mon Jan 18 19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   20
First Seen                    IST 18:27:17 2010 ינו 18 ב'
Last Seen                     IST 16:09:13 2010 ינו 23 ש'
Local ID                      e50188fa-7f6c-4616-b083-2781a2da4a0e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264255753.442:162): avc:  denied  { read } for  pid=15327 comm="gdm-session-wor" name="video0" dev=tmpfs ino=9029 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:v4l_device_t:s0 tclass=chr_file

node=(removed) type=AVC msg=audit(1264255753.442:162): avc:  denied  { open } for  pid=15327 comm="gdm-session-wor" name="video0" dev=tmpfs ino=9029 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:v4l_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1264255753.442:162): arch=c000003e syscall=2 success=yes exit=17 a0=7fff939e58f0 a1=0 a2=7fff939e58fb a3=10 items=0 ppid=15236 pid=15327 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)



Hash String generated from  selinux-policy-3.6.32-73.fc12,catchall,gdm-session-wor,xdm_t,v4l_device_t,chr_file,read
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t v4l_device_t:chr_file { read open };

Comment 1 Daniel Walsh 2010-01-25 17:07:13 UTC
Miroslav could you add
dev_read_video_dev(xdm_t)

Comment 2 Miroslav Grepl 2010-01-26 13:28:01 UTC
Fixed in selinux-policy-3.6.32-78.fc12

Comment 3 Ray Strode [halfline] 2010-01-26 14:49:20 UTC
some face recognition pam module or something?

Comment 4 Elad Alfassa 2010-01-26 15:01:48 UTC
(In reply to comment #3)
> some face recognition pam module or something?    

correct.
http://code.google.com/p/pam-face-authentication

Comment 5 Fedora Update System 2010-01-28 09:23:23 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 6 Fedora Update System 2010-01-29 03:28:38 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 7 Fedora Update System 2010-02-02 01:20:43 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.