Bug 798954

Summary: SELinux is preventing /usr/sbin/httpd from 'sys_admin' accesses on the None .
Product: [Fedora] Fedora Reporter: geminic86
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:396e539f7c81ec8b8fc8eac8fc600c9a2c9f1eb86d5d752e972b8dcda66e7c5b
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-01 12:15:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description geminic86 2012-03-01 11:27:08 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 'sys_admin' accesses on the None .
time:           Thu 01 Mar 2012 06:26:56 AM EST

description:
:SELinux is preventing /usr/sbin/httpd from 'sys_admin' accesses on the None .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that httpd should be allowed sys_admin access on the  <Unknown> 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                 [ None ]
: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                    Sun 26 Feb 2012 10:08:34 AM EST
:Last Seen                     Sun 26 Feb 2012 10:08:34 AM EST
:Local ID                      0ec87fb8-f941-47fb-ac3a-05b1cbba42d9
:
:Raw Audit Messages
:type=AVC msg=audit(1330268914.150:79): avc:  denied  { sys_admin } for  pid=1602 comm="/usr/sbin/httpd" capability=21  scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:httpd_t:s0 tclass=capabilitynode=(removed) type=SYSCALL msg=audit(1330268914.150:79): arch=40000003 syscall=117 success=no exit=-1 a0=3 a1=60003 a2=0 a3=100 items=0 ppid=1 pid=1602 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,None,sys_admin
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-03-01 12:15:17 UTC
This is not something what we want to allow for apache.

What mod_* do you use?

If you need it, you can allow it by a local policy

$ grep /usr/sbin/httpd /var/log/audit/audit.log | audit2allow -M mypol
$ semodule -i mypol.pp

Comment 2 Miroslav Grepl 2012-03-05 08:45:41 UTC
*** Bug 799380 has been marked as a duplicate of this bug. ***