| Summary: | SELinux is preventing /usr/sbin/httpd from using the 'sys_admin' capabilities. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | geminic86 |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | 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: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:9405411daf0db44781de40008d1b9a906ba7f61793213bfd08696e040c617eaa | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-05 08:45:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
sys_admin is a very dangerous access, any idea why httpd is running as root and needs sys_admin privs? *** This bug has been marked as a duplicate of bug 798954 *** |
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.7-1.fc16.i686.PAE reason: SELinux is preventing /usr/sbin/httpd from using the 'sys_admin' capabilities. time: Fri 02 Mar 2012 10:40:31 AM EST description: :SELinux is preventing /usr/sbin/httpd from using the 'sys_admin' capabilities. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that httpd should have the sys_admin capability 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:system_r:httpd_t:s0 :Target Objects [ capability ] :Source /usr/sbin/httpd :Source Path /usr/sbin/httpd :Port <Unknown> :Host (removed) :Source RPM Packages httpd-2.2.22-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.7-1.fc16.i686.PAE #1 SMP Tue Feb : 21 01:30:59 UTC 2012 i686 i686 :Alert Count 1 :First Seen Fri 02 Mar 2012 10:20:13 AM EST :Last Seen Fri 02 Mar 2012 10:20:13 AM EST :Local ID 64f5bd5d-89c7-432d-8a15-c9f896730585 : :Raw Audit Messages :type=AVC msg=audit(1330701613.203:84): avc: denied { sys_admin } for pid=1753 comm="/usr/sbin/httpd" capability=21 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:httpd_t:s0 tclass=capability : : :type=SYSCALL msg=audit(1330701613.203:84): arch=i386 syscall=ipc success=no exit=EPERM a0=3 a1=60003 a2=0 a3=100 items=0 ppid=1 pid=1753 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 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,httpd_t,capability,sys_admin : :audit2allow : :#============= httpd_t ============== :allow httpd_t self:capability sys_admin; : :audit2allow -R : :#============= httpd_t ============== :allow httpd_t self:capability sys_admin; :