Bug 951939

Summary: SELinux is preventing /usr/sbin/httpd from 'add_name' accesses on the directory sessionid875a124c4e682ef500ec0f756ab367c4.
Product: [Fedora] Fedora Reporter: Niki Guldbrand <niki.guldbrand>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9b9c7f12e9eb0d51d481410adad7f96046d203150ca591bffcbc7ac835eee4a4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-15 07:48:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Niki Guldbrand 2013-04-14 15:56:52 UTC
Description of problem:
Happens during login in the web interface of cobbler
SELinux is preventing /usr/sbin/httpd from 'add_name' accesses on the directory sessionid875a124c4e682ef500ec0f756ab367c4.

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

If you believe that httpd should be allowed add_name access on the sessionid875a124c4e682ef500ec0f756ab367c4 directory 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:object_r:cobbler_var_lib_t:s0
Target Objects                sessionid875a124c4e682ef500ec0f756ab367c4 [ dir ]
Source                        /usr/sbin/httpd
Source Path                   /usr/sbin/httpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           httpd-2.4.4-2.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-87.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.6-203.fc18.x86_64 #1 SMP Tue
                              Apr 9 19:33:01 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-04-14 17:41:10 CEST
Last Seen                     2013-04-14 17:41:10 CEST
Local ID                      bf64cd35-6e99-44e4-b06f-5f8144ce2c96

Raw Audit Messages
type=AVC msg=audit(1365954070.580:377): avc:  denied  { add_name } for  pid=1515 comm="/usr/sbin/httpd" name="sessionid875a124c4e682ef500ec0f756ab367c4" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:cobbler_var_lib_t:s0 tclass=dir


type=SYSCALL msg=audit(1365954070.580:377): arch=x86_64 syscall=open success=no exit=EACCES a0=7f1fe8495a70 a1=41 a2=1ff a3=6665323836653463 items=0 ppid=1306 pid=1515 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 ses=4294967295 tty=(none) comm=/usr/sbin/httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null)

Hash: /usr/sbin/httpd,httpd_t,cobbler_var_lib_t,dir,add_name

audit2allow

#============= httpd_t ==============
#!!!! This avc is allowed in the current policy

allow httpd_t cobbler_var_lib_t:dir add_name;

audit2allow -R
require {
	type httpd_t;
}

#============= httpd_t ==============
cobbler_manage_lib_files(httpd_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.6-203.fc18.x86_64
type:           libreport

Comment 1 Niki Guldbrand 2013-04-14 16:04:45 UTC
Description of problem:
Happens during login in the web interface of cobbler

Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.6-203.fc18.x86_64
type:           libreport

Comment 2 Miroslav Grepl 2013-04-15 07:48:09 UTC

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