Bug 799380 - SELinux is preventing /usr/sbin/httpd from using the 'sys_admin' capabilities.
Summary: SELinux is preventing /usr/sbin/httpd from using the 'sys_admin' capabilities.
Keywords:
Status: CLOSED DUPLICATE of bug 798954
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:9405411daf0db44781de40008d1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-02 15:40 UTC by geminic86
Modified: 2012-03-05 08:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-05 08:45:41 UTC
Type: ---


Attachments (Terms of Use)

Description geminic86 2012-03-02 15:40:40 UTC
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;
:

Comment 1 Daniel Walsh 2012-03-02 19:42:40 UTC
sys_admin is a very dangerous access, any idea why httpd is running as root and needs sys_admin privs?

Comment 2 Miroslav Grepl 2012-03-05 08:45:41 UTC

*** This bug has been marked as a duplicate of bug 798954 ***


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