Bug 611025 - SELinux is preventing /usr/bin/zmfix "getattr" access on /dev/video0.
Summary: SELinux is preventing /usr/bin/zmfix "getattr" access on /dev/video0.
Keywords:
Status: CLOSED DUPLICATE of bug 611016
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:649faf1ef17...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-03 06:27 UTC by Bart Kus
Modified: 2010-07-04 21:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-04 21:37:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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