Bug 701044 - SELinux is preventing /usr/libexec/colord from 'write' accesses on the directory /dev/shm.
Summary: SELinux is preventing /usr/libexec/colord from 'write' accesses on the direct...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:437bd8103d5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-30 15:26 UTC by Iulian Litcanu
Modified: 2011-05-05 05:03 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.16-21.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-05 05:03:31 UTC
Type: ---


Attachments (Terms of Use)

Description Iulian Litcanu 2011-04-30 15:26:26 UTC
SELinux is preventing /usr/libexec/colord from 'write' accesses on the directory /dev/shm.

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

If you believe that colord should be allowed write access on the shm directory 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                system_u:object_r:tmpfs_t:s0
Target Objects                /dev/shm [ dir ]
Source                        colord
Source Path                   /usr/libexec/colord
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           colord-0.1.1-3.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-18.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.4-20.fc15.x86_64 #1 SMP
                              Thu Apr 28 23:32:48 UTC 2011 x86_64 x86_64
Alert Count                   5
First Seen                    Fri 29 Apr 2011 08:47:15 PM EEST
Last Seen                     Sat 30 Apr 2011 05:51:59 PM EEST
Local ID                      d3f98a9c-4e5c-4b3a-9d14-fc062c4c12b3

Raw Audit Messages
type=AVC msg=audit(1304175119.663:32): avc:  denied  { write } for  pid=1106 comm="colord" name="/" dev=tmpfs ino=9237 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir


type=AVC msg=audit(1304175119.663:32): avc:  denied  { add_name } for  pid=1106 comm="colord" name=6C696276346C2D726F6F743A7573622D303030303A30303A31322E302D313A306334353A363038663A5553422063616D657261 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir


type=AVC msg=audit(1304175119.663:32): avc:  denied  { create } for  pid=1106 comm="colord" name=6C696276346C2D726F6F743A7573622D303030303A30303A31322E302D313A306334353A363038663A5553422063616D657261 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file


type=AVC msg=audit(1304175119.663:32): avc:  denied  { read write open } for  pid=1106 comm="colord" name=6C696276346C2D726F6F743A7573622D303030303A30303A31322E302D313A306334353A363038663A5553422063616D657261 dev=tmpfs ino=16087 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file


type=SYSCALL msg=audit(1304175119.663:32): arch=x86_64 syscall=open success=yes exit=ENODEV a0=7fff936ae280 a1=a00c2 a2=180 a3=3830363a35346330 items=0 ppid=1 pid=1106 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)

Hash: colord,colord_t,tmpfs_t,dir,write

audit2allow

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

allow colord_t tmpfs_t:dir { write add_name };
#!!!! The source type 'colord_t' can write to a 'file' of the following types:
# colord_var_lib_t, colord_tmp_t

allow colord_t tmpfs_t:file { read write create open };

audit2allow -R

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

allow colord_t tmpfs_t:dir { write add_name };
#!!!! The source type 'colord_t' can write to a 'file' of the following types:
# colord_var_lib_t, colord_tmp_t

allow colord_t tmpfs_t:file { read write create open };

Comment 1 Miroslav Grepl 2011-05-02 07:58:11 UTC
Fixed in selinux-policy-3.9.16-21.fc15

Comment 2 Fedora Update System 2011-05-02 10:57:37 UTC
selinux-policy-3.9.16-21.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-21.fc15

Comment 3 Fedora Update System 2011-05-03 04:29:18 UTC
Package selinux-policy-3.9.16-21.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-21.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-21.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-05-05 05:02:56 UTC
selinux-policy-3.9.16-21.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.