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 : :
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"?
(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.
Miroslav, I see no reason to block the creation of directories labeled httpd_var_lib_t.
Yes, I missed "tclass=dirnode" string.
is this somewhere in testing?
I will do a new build today/tomorrow.
(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 ;)
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
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).
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).
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.