Bug 754897 - SELinux is preventing /usr/sbin/httpd from 'append' accesses on the file error_log.
Summary: SELinux is preventing /usr/sbin/httpd from 'append' accesses on the file erro...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
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:20cec501efb93a58815be5ef62f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-18 05:51 UTC by Nathan Brittain
Modified: 2012-03-15 13:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 13:40:00 UTC
Type: ---


Attachments (Terms of Use)

Description Nathan Brittain 2011-11-18 05:51:00 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.1-1.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/httpd from 'append' accesses on the file error_log.
time:           Fri Nov 18 15:50:24 2011

description:
:SELinux is preventing /usr/sbin/httpd from 'append' accesses on the file error_log.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that httpd should be allowed append access on the error_log file 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 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                unconfined_u:object_r:httpd_user_script_exec_t:s0
:Target Objects                error_log [ file ]
:Source                        httpd
:Source Path                   /usr/sbin/httpd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           httpd-2.2.21-1.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-55.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.1-1.fc16.x86_64 #1 SMP Fri Nov
:                              11 21:47:56 UTC 2011 x86_64 x86_64
:Alert Count                   10
:First Seen                    Fri 18 Nov 2011 02:18:48 PM EST
:Last Seen                     Fri 18 Nov 2011 02:36:29 PM EST
:Local ID                      dcff8b24-60d5-4237-83ae-3c9c4818c4ff
:
:Raw Audit Messages
:type=AVC msg=audit(1321590989.877:242): avc:  denied  { append } for  pid=4177 comm="httpd" name="error_log" dev=dm-1 ino=163018 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_user_script_exec_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1321590989.877:242): arch=x86_64 syscall=open success=no exit=EACCES a0=7f7a2841b380 a1=80441 a2=1b6 a3=ffffff00 items=0 ppid=1 pid=4177 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null)
:
:Hash: httpd,httpd_t,httpd_user_script_exec_t,file,append
:
:audit2allow
:
:#============= httpd_t ==============
:allow httpd_t httpd_user_script_exec_t:file append;
:
:audit2allow -R
:
:#============= httpd_t ==============
:allow httpd_t httpd_user_script_exec_t:file append;
:

Comment 1 Daniel Walsh 2011-11-18 14:46:54 UTC
This looks like you did some custom labeling.  Where is the file error_log located.  It should be labeled httpd_log_t.


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