Bug 951930 - SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory webui_sessions.
Summary: SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory ...
Keywords:
Status: CLOSED DUPLICATE of bug 951948
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4a20301aa6a07f179c3e7385506...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-14 14:31 UTC by Niki Guldbrand
Modified: 2013-04-15 07:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-15 07:48:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 951931 0 unspecified CLOSED SELinux is preventing /usr/sbin/httpd from 'read' accesses on the directory repo_mirror. 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 951939 0 unspecified CLOSED SELinux is preventing /usr/sbin/httpd from 'add_name' accesses on the directory sessionid875a124c4e682ef500ec0f756ab367c... 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 951940 0 unspecified CLOSED SELinux is preventing /usr/sbin/httpd from 'create' accesses on the file sessionid729f164eaee434de0805ee5dfa55f1b5. 2021-02-22 00:41:40 UTC

Internal Links: 951931 951939 951940

Description Niki Guldbrand 2013-04-14 14:31:25 UTC
Description of problem:
Logged into the cobbler web interface
SELinux is preventing /usr/sbin/httpd from 'write' accesses on the directory webui_sessions.

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

If you believe that httpd should be allowed write access on the webui_sessions 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                webui_sessions [ 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 16:26:01 CEST
Last Seen                     2013-04-14 16:26:01 CEST
Local ID                      90e85d54-595a-4b75-9868-9f7c52d67c70

Raw Audit Messages
type=AVC msg=audit(1365949561.238:479): avc:  denied  { write } for  pid=10539 comm="/usr/sbin/httpd" name="webui_sessions" dev="dm-1" ino=666743 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:cobbler_var_lib_t:s0 tclass=dir


type=SYSCALL msg=audit(1365949561.238:479): arch=x86_64 syscall=open success=no exit=EACCES a0=7ff813cc1ad0 a1=41 a2=1ff a3=6333333837613037 items=0 ppid=10536 pid=10539 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,write

audit2allow

#============= httpd_t ==============
allow httpd_t cobbler_var_lib_t:dir write;

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 Miroslav Grepl 2013-04-15 07:48:22 UTC

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


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