Bug 680641

Summary: SELinux is preventing /usr/sbin/httpd from using the 'dyntransition' accesses on a process.
Product: [Fedora] Fedora Reporter: Bill Thielman <b.thielman>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:32af2f9441c469eee8e92c80dea8d19dc2aaadaa9f1e5be9bae6decbdf345f1c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-11 15:26: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:

Description Bill Thielman 2011-02-26 17:12:46 UTC
SELinux is preventing /usr/sbin/httpd from using the 'dyntransition' accesses on a process.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that httpd should be allowed dyntransition access on processes labeled unconfined_t 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                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0
Target Objects                Unknown [ process ]
Source                        httpd
Source Path                   /usr/sbin/httpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           httpd-2.2.17-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.i686 #1 SMP
                              Mon Feb 7 07:04:18 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sat 26 Feb 2011 12:06:24 PM EST
Last Seen                     Sat 26 Feb 2011 12:06:24 PM EST
Local ID                      033e516c-52b6-4a79-ba32-80983c9ac661

Raw Audit Messages
type=AVC msg=audit(1298739984.104:29992): avc:  denied  { dyntransition } for  pid=10229 comm="httpd" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=process


type=SYSCALL msg=audit(1298739984.104:29992): arch=i386 syscall=write success=no exit=EACCES a0=14 a1=3dcdcd0 a2=2a a3=3dcdcd0 items=0 ppid=2517 pid=10229 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=1 comm=httpd exe=/usr/sbin/httpd subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)

Hash: httpd,unconfined_t,unconfined_t,process,dyntransition

audit2allow

#============= unconfined_t ==============
allow unconfined_t self:process dyntransition;

audit2allow -R

#============= unconfined_t ==============
allow unconfined_t self:process dyntransition;

Comment 1 Miroslav Grepl 2011-02-28 09:08:49 UTC
Bill,
how did you get this? Are you using mod_selinux?

Comment 2 Daniel Walsh 2011-02-28 16:56:30 UTC
Also why are you running httpd as unconfined_t?  It is running as uid=0 so it is not in the user session.