Bug 720192 - SELinux is preventing /usr/libexec/colord from 'write' accesses on the file /dev/shm/libv4l-root:usb-0000:00:12.0-1:046d:092e:Camera.
Summary: SELinux is preventing /usr/libexec/colord from 'write' accesses on the file /...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:d094b2999c6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-10 21:02 UTC by Slawomir Czarko
Modified: 2011-07-18 22:32 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.16-34.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-18 22:32:23 UTC
Type: ---


Attachments (Terms of Use)

Description Slawomir Czarko 2011-07-10 21:02:00 UTC
SELinux is preventing /usr/libexec/colord from 'write' accesses on the file /dev/shm/libv4l-root:usb-0000:00:12.0-1:046d:092e:Camera.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that colord should be allowed write access on the libv4l-root:usb-0000:00:12.0-1:046d:092e:Camera file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep colord /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:colord_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_tmpfs_t:s0
Target Objects                /dev/shm/libv4l-
                              root:usb-0000:00:12.0-1:046d:092e:Camera [ file ]
Source                        colord
Source Path                   /usr/libexec/colord
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           colord-0.1.7-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-30.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.8-32.fc15.i686.PAE #1
                              SMP Mon Jun 13 19:55:27 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Thu 07 Jul 2011 10:26:00 PM CEST
Last Seen                     Thu 07 Jul 2011 10:26:00 PM CEST
Local ID                      07fc9e3b-a619-4acb-a1aa-db46a6d82c23

Raw Audit Messages
type=AVC msg=audit(1310070360.491:181): avc:  denied  { write } for  pid=9548 comm="colord" name="libv4l-root:usb-0000:00:12.0-1:046d:092e:Camera" dev=tmpfs ino=44593 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmpfs_t:s0 tclass=file


type=AVC msg=audit(1310070360.491:181): avc:  denied  { open } for  pid=9548 comm="colord" name="libv4l-root:usb-0000:00:12.0-1:046d:092e:Camera" dev=tmpfs ino=44593 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmpfs_t:s0 tclass=file


type=SYSCALL msg=audit(1310070360.491:181): arch=i386 syscall=open success=yes exit=ENODEV a0=bfed9d10 a1=a0002 a2=180 a3=bfedae45 items=1 ppid=1 pid=9548 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=colord exe=/usr/libexec/colord subj=system_u:system_r:colord_t:s0-s0:c0.c1023 key=(null)

type=CWD msg=audit(1310070360.491:181): cwd=/

type=PATH msg=audit(1310070360.491:181): item=0 name=/dev/shm/libv4l-root:usb-0000:00:12.0-1:046d:092e:Camera inode=44593 dev=00:11 mode=0100600 ouid=0 ogid=0 rdev=00:00 obj=unconfined_u:object_r:user_tmpfs_t:s0

Hash: colord,colord_t,user_tmpfs_t,file,write

audit2allow

#============= colord_t ==============
#!!!! The source type 'colord_t' can write to a 'file' of the following types:
# colord_tmpfs_t, colord_var_lib_t, colord_tmp_t

allow colord_t user_tmpfs_t:file { write open };

audit2allow -R

#============= colord_t ==============
#!!!! The source type 'colord_t' can write to a 'file' of the following types:
# colord_tmpfs_t, colord_var_lib_t, colord_tmp_t

allow colord_t user_tmpfs_t:file { write open };

Comment 1 Daniel Walsh 2011-07-11 22:00:09 UTC
Miroslav lets add

userdom_rw_user_tmpfs_files(colord_t)

Comment 2 Miroslav Grepl 2011-07-12 10:17:51 UTC
Fixed in selinux-policy-3.9.16-34.fc15

Comment 3 Fedora Update System 2011-07-15 15:43:38 UTC
selinux-policy-3.9.16-34.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-34.fc15

Comment 4 Fedora Update System 2011-07-16 07:28:32 UTC
Package selinux-policy-3.9.16-34.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-34.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-34.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-07-18 22:30:59 UTC
selinux-policy-3.9.16-34.fc15 has been pushed to the Fedora 15 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.