| Summary: | SELinux is preventing /usr/sbin/httpd from 'append' accesses on the file error_log. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nathan Brittain <unfalln> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:20cec501efb93a58815be5ef62f0db4673bb37e867c23a93bce22e7983b94f1b | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-15 13:40:00 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
This looks like you did some custom labeling. Where is the file error_log located. It should be labeled httpd_log_t. |
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; :