libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.3-2.fc16.i686.PAE reason: SELinux is preventing /usr/sbin/httpd from 'write' accesses on the None WebCalendar. time: Mon 06 Feb 2012 11:22:28 PM EST description: :SELinux is preventing /usr/sbin/httpd from 'write' accesses on the None WebCalendar. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that httpd should be allowed write access on the WebCalendar <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 /usr/sbin/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:etc_t:s0 :Target Objects WebCalendar [ None ] :Source /usr/sbin/httpd :Source Path /usr/sbin/httpd :Port <Unknown> :Host (removed) :Source RPM Packages httpd-2.2.21-1.fc16.i686 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-75.fc16.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) : 3.2.3-2.fc16.i686.PAE #1 SMP Fri Feb 3 19:57:53 : UTC 2012 i686 i686 :Alert Count 1 :First Seen Mon 06 Feb 2012 11:20:50 PM EST :Last Seen Mon 06 Feb 2012 11:20:50 PM EST :Local ID 19625131-f6ae-407d-8e36-adec4b9d5db3 : :Raw Audit Messages :type=AVC msg=audit(1328588450.887:30947): avc: denied { write } for pid=23719 comm="/usr/sbin/httpd" name="WebCalendar" dev=dm-3 ino=4987476 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=dirnode=(removed) type=SYSCALL msg=audit(1328588450.887:30947): arch=40000003 syscall=5 success=no exit=-13 a0=bb22d690 a1=242 a2=1b6 a3=bb22d690 items=0 ppid=23707 pid=23719 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="/usr/sbin/httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null) : : :Hash: /usr/sbin/httpd,httpd_t,etc_t,None,write : :audit2allow : : :audit2allow -R : :
Try to execute $ restorecon -R -t httpd_sys_rw_content_t /etc/WebCalendar and let me know if everythin works for you. Thank you.
# restorecon -R -t httpd_sys_rw_content_t /etc/WebCalendar restorecon: invalid option -- 't' usage: restorecon [-iFnprRv0] [ -L labelprefix ] [-e excludedir ] [-o filename ] [-f filename | pathname... ]
I did a restorecon -Rv /etc/WebCalendar and it did nothing. Did you mean chcon -R -t httpd_sys_rw_content_t /etc/WebCalendar ? Also the main portion of WebCalendar is in /usr/share/WebCalendar.
Ah, my fault. I meant # chcon -t -R -t httpd_sys_rw_content_t /etc/WebCalendar
Did that. No more alert. WebCalendar is still not working correctly (bug 788217), but I do not think that is a selinux issue.
Why does WebCalendar wrighting into /etc If it is storing content it should be in /var/lib/WebCalendar or if it is temporary in /var/run/WebCalendar
This occurred during configuration of WebCalendar. It may not be needed during normal operation. I do not know that.
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.