Bug 560370 - SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 "read" access on /dev/video0.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 "read" acce...
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:c1a05931b9f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-31 10:27 UTC by Elad Alfassa
Modified: 2010-02-11 14:41 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-84.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-11 14:41:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Elad Alfassa 2010-01-31 10:27:27 UTC
Summary:

SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 "read" access
on /dev/video0.

Detailed Description:

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

SELinux denied access requested by polkit-agent-he. It is not expected that this
access is required by polkit-agent-he 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                unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:v4l_device_t:s0
Target Objects                /dev/video0 [ chr_file ]
Source                        polkit-agent-he
Source Path                   /usr/libexec/polkit-1/polkit-agent-helper-1
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           polkit-0.95-0.git20090913.3.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 12:24:58 2010 ינו 31 א'
Last Seen                     IST 12:24:58 2010 ינו 31 א'
Local ID                      9aca9d50-2975-49fb-a86c-3d3a6a5c7065
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264933498.743:100): avc:  denied  { read } for  pid=5500 comm="polkit-agent-he" name="video0" dev=tmpfs ino=8950 scontext=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:v4l_device_t:s0 tclass=chr_file

node=(removed) type=AVC msg=audit(1264933498.743:100): avc:  denied  { open } for  pid=5500 comm="polkit-agent-he" name="video0" dev=tmpfs ino=8950 scontext=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:v4l_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1264933498.743:100): arch=c000003e syscall=2 success=yes exit=13 a0=7fffabd71bb0 a1=0 a2=7fffabd71bbb a3=10 items=0 ppid=1658 pid=5500 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="polkit-agent-he" exe="/usr/libexec/polkit-1/polkit-agent-helper-1" subj=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-78.fc12,catchall,polkit-agent-he,policykit_auth_t,v4l_device_t,chr_file,read
audit2allow suggests:

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

Comment 1 Daniel Walsh 2010-02-01 19:01:59 UTC
Miroslav add

dev_read_video_dev(policykit_auth_t)

Comment 2 Miroslav Grepl 2010-02-01 19:37:12 UTC
Fixed in selinux-policy-3.6.32-80.fc12

Comment 3 Fedora Update System 2010-02-03 23:20:39 UTC
selinux-policy-3.6.32-82.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-82.fc12

Comment 4 Fedora Update System 2010-02-05 01:44:27 UTC
selinux-policy-3.6.32-84.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-1492

Comment 5 Fedora Update System 2010-02-11 14:37:08 UTC
selinux-policy-3.6.32-84.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.