Bug 611025

Summary: SELinux is preventing /usr/bin/zmfix "getattr" access on /dev/video0.
Product: [Fedora] Fedora Reporter: Bart Kus <me>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:649faf1ef1777bf93a7c7eb0ce28a1d5d8176521f7480a00ba33fb94f9dfbd80
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-04 21:37:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bart Kus 2010-07-03 06:27:43 UTC
Summary:

SELinux is preventing /usr/bin/zmfix "getattr" access on /dev/video0.  Happens when trying to view a video stream from the zoneminder web UI.

Detailed Description:

SELinux denied access requested by zmfix. It is not expected that this access is
required by zmfix 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:system_r:httpd_t:s0
Target Context                system_u:object_r:v4l_device_t:s0
Target Objects                /dev/video0 [ chr_file ]
Source                        zmfix
Source Path                   /usr/bin/zmfix
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           zoneminder-1.24.2-4.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-28.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.5-124.fc13.i686 #1 SMP
                              Fri Jun 11 09:48:40 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Fri 02 Jul 2010 11:22:44 PM PDT
Last Seen                     Fri 02 Jul 2010 11:22:44 PM PDT
Local ID                      e4cc5725-6d82-4119-a8f9-d966a1c931e8
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1278138164.528:27442): avc:  denied  { getattr } for  pid=3686 comm="zmfix" path="/dev/video0" dev=devtmpfs ino=10190 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:v4l_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1278138164.528:27442): arch=40000003 syscall=195 success=no exit=-13 a0=89ad0b8 a1=bf8eb574 a2=32fff4 a3=3 items=0 ppid=3685 pid=3686 auid=500 uid=48 gid=488 euid=0 suid=0 fsuid=0 egid=488 sgid=488 fsgid=488 tty=(none) ses=1 comm="zmfix" exe="/usr/bin/zmfix" subj=unconfined_u:system_r:httpd_t:s0 key=(null)



Hash String generated from  catchall,zmfix,httpd_t,v4l_device_t,chr_file,getattr
audit2allow suggests:

#============= httpd_t ==============
allow httpd_t v4l_device_t:chr_file getattr;

Comment 1 Miroslav Grepl 2010-07-04 21:37:39 UTC

*** This bug has been marked as a duplicate of bug 611016 ***