Bug 811421 - SELinux is preventing /usr/sbin/httpd from 'search' accesses on the directory /var/lib/colord.
SELinux is preventing /usr/sbin/httpd from 'search' accesses on the directory...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-04-10 21:21 EDT by Luya Tshimbalanga
Modified: 2012-11-06 15:57 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-25 04:17:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
avc denial (24.86 KB, text/plain)
2012-11-05 19:17 EST, Paulo Roma Cavalcanti
no flags Details

  None (edit)
Description Luya Tshimbalanga 2012-04-10 21:21:34 EDT
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.1-3.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/httpd from 'search' accesses on the directory /var/lib/colord.
time:           Tue 10 Apr 2012 06:21:17 PM PDT

:SELinux is preventing /usr/sbin/httpd from 'search' accesses on the directory /var/lib/colord.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If you believe that httpd should be allowed search access on the colord directory by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:allow this access for now by executing:
:# grep httpd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:Additional Information:
:Source Context                system_u:system_r:httpd_t:s0
:Target Context                system_u:object_r:colord_var_lib_t:s0
:Target Objects                /var/lib/colord [ dir ]
:Source                        httpd
:Source Path                   /usr/sbin/httpd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           httpd-2.2.22-2.fc16.x86_64
:Target RPM Packages           colord-0.1.18-2.fc16.x86_64
:Policy RPM                    selinux-policy-3.10.0-80.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.1-3.fc16.x86_64 #1 SMP
:                              Wed Apr 4 18:08:51 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Tue 10 Apr 2012 01:32:25 PM PDT
:Last Seen                     Tue 10 Apr 2012 06:13:54 PM PDT
:Local ID                      e21608af-9053-46bf-bcfa-9ed6861647b3
:Raw Audit Messages
:type=AVC msg=audit(1334106834.720:409): avc:  denied  { search } for  pid=2209 comm="httpd" name="colord" dev="dm-0" ino=1312176 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:colord_var_lib_t:s0 tclass=dir
:type=SYSCALL msg=audit(1334106834.720:409): arch=x86_64 syscall=stat success=no exit=EACCES a0=7f11ed045350 a1=7fff26613ea0 a2=7fff26613ea0 a3=0 items=0 ppid=2206 pid=2209 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null)
:Hash: httpd,httpd_t,colord_var_lib_t,dir,search
:#============= httpd_t ==============
:allow httpd_t colord_var_lib_t:dir search;
:audit2allow -R
:#============= httpd_t ==============
:allow httpd_t colord_var_lib_t:dir search;
Comment 1 Miroslav Grepl 2012-04-11 03:19:36 EDT
Do you have apache files in /var/lib/colord?
Comment 2 Luya Tshimbalanga 2012-04-11 19:39:23 EDT
No according to the result:

$ ls /var/lib/colord/
icc  mapping.db  storage.db

icc folder is empty
Comment 3 Miroslav Grepl 2012-06-22 10:19:24 EDT
Did it happen again?
Comment 4 Luya Tshimbalanga 2012-06-23 13:22:31 EDT
No, I don't see the problem happening since the last update. It seems the issue is fixed.
Comment 5 Miroslav Grepl 2012-06-25 04:17:01 EDT
OK, thank you. Let's close this bug.
Comment 6 Paulo Roma Cavalcanti 2012-11-01 17:34:00 EDT
I am still seeing this bug on F17 64 bits fully updated:

Attempted this access: search
On this directory:


It has been this way for a long time ...
Comment 7 Daniel Walsh 2012-11-05 14:51:00 EST
Paulo please attach your current AVCs

rpm -q selinux-policy
Comment 8 Paulo Roma Cavalcanti 2012-11-05 19:17:59 EST
Created attachment 639005 [details]
avc denial
Comment 9 Paulo Roma Cavalcanti 2012-11-05 19:18:33 EST
Comment 10 Miroslav Grepl 2012-11-06 04:49:35 EST
Did it all happen if you were running BackupPC?
Comment 11 Paulo Roma Cavalcanti 2012-11-06 08:43:40 EST

In F17, if I restart backuppc, I have to restart httpd, 
otherwise no backup is shown in backuppc admin page.
Therefore, this happens every time I restart httpd.

Normally, I have backuppc running all the time,
and backing up on an external usb HD. I have
to check if I stop backuppc and restar httpd, 
whether the avc happens or not ...
Comment 12 Paulo Roma Cavalcanti 2012-11-06 15:57:32 EST
Even with backuppc stopped the denial occurs ...

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