Bug 787932 - SELinux is preventing /usr/sbin/httpd from 'write' accesses on the None WebCalendar.
Summary: SELinux is preventing /usr/sbin/httpd from 'write' accesses on the None WebCa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b53ded4cea163c2ab2306a46609...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-07 04:23 UTC by John Griffiths
Modified: 2012-03-24 00:39 UTC (History)
3 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:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Griffiths 2012-02-07 04:23:27 UTC
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
:
:

Comment 1 Miroslav Grepl 2012-02-07 11:03:23 UTC
Try to execute

$ restorecon -R -t httpd_sys_rw_content_t /etc/WebCalendar

and let me know if everythin works for you. Thank you.

Comment 2 John Griffiths 2012-02-07 17:19:15 UTC
# 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... ]

Comment 3 John Griffiths 2012-02-07 17:23:07 UTC
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.

Comment 4 Miroslav Grepl 2012-02-07 17:35:34 UTC
Ah, my fault. I meant

# chcon -t -R -t httpd_sys_rw_content_t /etc/WebCalendar

Comment 5 John Griffiths 2012-02-07 18:59:21 UTC
Did that. No more alert.

WebCalendar is still not working correctly (bug 788217), but I do not think that is a selinux issue.

Comment 6 Daniel Walsh 2012-02-07 20:02:36 UTC
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

Comment 7 John Griffiths 2012-02-07 20:08:56 UTC
This occurred during configuration of WebCalendar. It may not be needed during normal operation. I do not know that.

Comment 8 Fedora Update System 2012-02-29 09:34:35 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 9 Fedora Update System 2012-03-01 09:25:31 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 10 Fedora Update System 2012-03-21 02:27:22 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 11 Fedora Update System 2012-03-24 00:39:38 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.