| Summary: | SELinux is preventing /usr/sbin/httpd from 'write' accesses on the file wats.php. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | mai thanh an <maithanhan> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:8d2023447a68c328b22ae246a3fec47399f33c79dde824b10e0181d6820f621b | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-21 16:48:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Where is "wats.php" file really located? |
SELinux is preventing /usr/sbin/httpd from 'write' accesses on the file wats.php. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that httpd should be allowed write access on the wats.php 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:user_home_t:s0 Target Objects wats.php [ file ] Source httpd Source Path /usr/sbin/httpd Port <Unknown> Host (removed) Source RPM Packages httpd-2.2.17-10.fc15.1 Target RPM Packages Policy RPM selinux-policy-3.9.16-26.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38.7-30.fc15.i686 #1 SMP Fri May 27 06:02:17 UTC 2011 i686 i686 Alert Count 3 First Seen Fri 17 Jun 2011 07:14:33 PM ICT Last Seen Fri 17 Jun 2011 07:15:21 PM ICT Local ID 52400edb-a53d-47ad-a75a-e319adc63aaf Raw Audit Messages type=AVC msg=audit(1308312921.113:234): avc: denied { write } for pid=10087 comm="httpd" name="wats.php" dev=sda1 ino=672078 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file type=SYSCALL msg=audit(1308312921.113:234): arch=i386 syscall=access success=no exit=EACCES a0=21f2d638 a1=2 a2=18c55e9c a3=21f26e70 items=0 ppid=10083 pid=10087 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null) Hash: httpd,httpd_t,user_home_t,file,write audit2allow #============= httpd_t ============== allow httpd_t user_home_t:file write; audit2allow -R #============= httpd_t ============== allow httpd_t user_home_t:file write;