Bug 560989 - SELinux is preventing /bin/login "read" access on video0.
Summary: SELinux is preventing /bin/login "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:13a6e94f651...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-02 12:58 UTC by Elad Alfassa
Modified: 2010-02-20 00:21 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-89.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-20 00:21:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Elad Alfassa 2010-02-02 12:58:32 UTC
Summary:

SELinux is preventing /bin/login "read" access on video0.

Detailed Description:

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

SELinux denied access requested by login. It is not expected that this access is
required by login 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:local_login_t:s0-s0:c0.c1023
Target Context                system_u:object_r:v4l_device_t:s0
Target Objects                video0 [ chr_file ]
Source                        login
Source Path                   /bin/login
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           util-linux-ng-2.16.2-5.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-78.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                   2
First Seen                    IST 19:54:13 2010 פבר 01 ב'
Last Seen                     IST 19:54:13 2010 פבר 01 ב'
Local ID                      fe0ad836-88b4-425b-ba34-12e16883f985
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1265046853.179:72): avc:  denied  { read } for  pid=1320 comm="login" name="video0" dev=tmpfs ino=8986 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:v4l_device_t:s0 tclass=chr_file

node=(removed) type=AVC msg=audit(1265046853.179:72): avc:  denied  { open } for  pid=1320 comm="login" name="video0" dev=tmpfs ino=8986 scontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tcontext=system_u:object_r:v4l_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1265046853.179:72): arch=c000003e syscall=2 success=yes exit=13 a0=7fffb2cf5870 a1=0 a2=7fffb2cf587b a3=10 items=0 ppid=1 pid=1320 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty2 ses=4294967295 comm="login" exe="/bin/login" subj=system_u:system_r:local_login_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-78.fc12,catchall,login,local_login_t,v4l_device_t,chr_file,read
audit2allow suggests:

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

Comment 1 Daniel Walsh 2010-02-02 14:13:27 UTC
Do you have a strange pam module?  Face Recognition?

Comment 2 Elad Alfassa 2010-02-02 14:22:07 UTC
(In reply to comment #1)
> Do you have a strange pam module?  Face Recognition?    

yes. i managed getting it work in the password dialog of the screensaver, but i can't get it work in terminal or gdm logins. i thought that selinux causes this problem because i see messages like this one every time i try to login with this module.

Comment 3 Daniel Walsh 2010-02-02 14:48:27 UTC
If you add this rule, you should be ok

# grep login /var/log/audit/audit.log | audit2allow -M mylogin
# semodule -i mylogin.pp

Would allow it to read the device.

Comment 4 Daniel Walsh 2010-02-09 20:55:33 UTC
Miroslav,

Add
dev_read_video_dev(local_login_t)

Comment 5 Miroslav Grepl 2010-02-10 10:56:47 UTC
Fixed in selinux-policy-3.6.32-87.fc12

Comment 6 Fedora Update System 2010-02-11 22:01:03 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 7 Fedora Update System 2010-02-13 00:40:06 UTC
selinux-policy-3.6.32-89.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-1836

Comment 8 Fedora Update System 2010-02-20 00:19:12 UTC
selinux-policy-3.6.32-89.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.