Bug 787355 - SELinux is preventing /usr/sbin/cherokee-worker from 'create' accesses on the None flcache.
Summary: SELinux is preventing /usr/sbin/cherokee-worker from 'create' accesses on the...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:bcdea0b536305eb82708096ecea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-04 11:12 UTC by Michiduta07
Modified: 2012-03-24 00:39 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.10.0-80.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-24 00:39:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michiduta07 2012-02-04 11:12:22 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/cherokee-worker from 'create' accesses on the None flcache.
time:           Sat 04 Feb 2012 01:12:11 PM EET

description:
:SELinux is preventing /usr/sbin/cherokee-worker from 'create' accesses on the None flcache.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that cherokee-worker should be allowed create access on the flcache <Unknown> 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 cherokee-worker /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:httpd_var_lib_t:s0
:Target Objects                flcache [ None ]
:Source                        cherokee-worker
:Source Path                   /usr/sbin/cherokee-worker
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    <Unknown>
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1 SMP Thu
:                              Jan 26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Sat 04 Feb 2012 01:09:02 PM EET
:Last Seen                     Sat 04 Feb 2012 01:09:02 PM EET
:Local ID                      cfc80ceb-73e4-4929-8849-ef0d865de04c
:
:Raw Audit Messages
:type=AVC msg=audit(1328353742.708:207): avc:  denied  { create } for  pid=6355 comm="cherokee-worker" name="flcache" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_var_lib_t:s0 tclass=dirnode=(removed) type=SYSCALL msg=audit(1328353742.708:207): arch=c000003e syscall=83 success=no exit=-13 a0=249c7c0 a1=1ed a2=ffffffffffffffa0 a3=2a items=0 ppid=1027 pid=6355 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="cherokee-worker" exe="/usr/sbin/cherokee-worker" subj=system_u:system_r:httpd_t:s0 key=(null)
:
:
:Hash: cherokee-worker,httpd_t,httpd_var_lib_t,None,create
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-05 20:11:29 UTC
I am interested in tclass.

$ sesearch -A -s httpd_t -t httpd_var_lib_t
Found 3 semantic av rules:
   allow httpd_t httpd_var_lib_t : file { ioctl read write create getattr setattr lock append unlink link rename open } ; 
   allow httpd_t httpd_var_lib_t : dir { ioctl read write getattr lock add_name remove_name search open } ; 
   allow httpd_t file_type : filesystem getattr ;

What is "flcache"?

Comment 2 Michiduta07 2012-02-05 20:26:39 UTC
(In reply to comment #1)
> I am interested in tclass.
> 
> $ sesearch -A -s httpd_t -t httpd_var_lib_t
> Found 3 semantic av rules:
>    allow httpd_t httpd_var_lib_t : file { ioctl read write create getattr
> setattr lock append unlink link rename open } ; 
>    allow httpd_t httpd_var_lib_t : dir { ioctl read write getattr lock add_name
> remove_name search open } ; 
>    allow httpd_t file_type : filesystem getattr ;
> 
> What is "flcache"?

I don't know what that is. I just installed cherokee with the add/remove software application and started configuring it based on the tutorial provided by cherokee.

Comment 3 Daniel Walsh 2012-02-06 16:31:18 UTC
Miroslav, I see no reason to block the creation of directories labeled httpd_var_lib_t.

Comment 4 Miroslav Grepl 2012-02-06 17:40:34 UTC
Yes, I missed "tclass=dirnode" string.

Comment 6 Renich Bon Ciric 2012-02-15 20:06:34 UTC
is this somewhere in testing?

Comment 7 Miroslav Grepl 2012-02-16 11:16:56 UTC
I will do a new build today/tomorrow.

Comment 8 Renich Bon Ciric 2012-02-17 08:29:05 UTC
(In reply to comment #7)
> I will do a new build today/tomorrow.

Thanks a lot ;)

I really need this since I use cherokee only on all my servers ;)

Comment 9 Fedora Update System 2012-02-29 09:34:27 UTC
selinux-policy-3.10.0-78.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-78.fc16

Comment 10 Fedora Update System 2012-03-01 09:25:26 UTC
Package selinux-policy-3.10.0-78.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-78.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-78.fc16
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2012-03-21 02:27:16 UTC
Package selinux-policy-3.10.0-80.fc16:
* should fix your issue,
* was pushed to the Fedora 16 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.10.0-80.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-2733/selinux-policy-3.10.0-80.fc16
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2012-03-24 00:39:31 UTC
selinux-policy-3.10.0-80.fc16 has been pushed to the Fedora 16 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.