PATCH: Remove redundant role statement from the apache.te file.
Hello all,
I am working on writing a policy for the Boa web server. I am using the SELinux by example book and the apache modules for guidance. Going through the apache.te file I noticed the following entry is redundant:
role system_r types httpd_t;
This statement is provided as part of the init_daemon_domain interface in the modules/system/init.if interface file. Here is the line in the init_daemon_domain interface function:
role system_r types $1;
I have attached a patch to remove role entry from the apache.te file.
Thanks!
- Ryan
modules/services/apache.te +0 -1
@@ -33,7 +33,6 @@ type httpd_t; type httpd_exec_t; init_daemon_domain(httpd_t,httpd_exec_t) -role system_r types httpd_t; # httpd_cache_t is the type given to the /var/cache/httpd # directory and the files under that directory
Quoted 7 lines · Ryan Bradetich
I am working on writing a policy for the Boa web server. I am using the SELinux by example book and the apache modules for guidance. Going through the apache.te file I noticed the following entry is redundant:
role system_r types httpd_t;
Quoted 7 lines
This statement is provided as part of the
init_daemon_domaininterface in the modules/system/init.if interface file. Here is the line in theinit_daemon_domaininterface function:role system_r types $1;I have attached a patch to remove role entry from the apache.te file.
Since this doesn't hurt anything, I'd rather just leave it since its all over the policy right now. The issue is that if you rely on the interface to allow the role the daemon type, you still have to allow the role to any subdomains of the daemon (like httpd_sys_script_t) explicitly. This makes the handling of the primary domain and sub domains of a daemon slightly inconsistent.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Hello Chris,
Fair enough. I will reverse this patch from my local tree as well.
Thanks!
- Ryan
Quoted 23 lines · Christopher J. PeBenito
Quoted 7 lines · Ryan Bradetich
I am working on writing a policy for the Boa web server. I am using the SELinux by example book and the apache modules for guidance. Going through the apache.te file I noticed the following entry is redundant:
role system_r types httpd_t;Quoted 7 lines
This statement is provided as part of the
init_daemon_domaininterface in the modules/system/init.if interface file. Here is the line in theinit_daemon_domaininterface function:role system_r types $1;I have attached a patch to remove role entry from the apache.te file.
Since this doesn't hurt anything, I'd rather just leave it since its all over the policy right now. The issue is that if you rely on the interface to allow the role the daemon type, you still have to allow the role to any subdomains of the daemon (like
httpd_sys_script_t) explicitly. This makes the handling of the primary domain and sub domains of a daemon slightly inconsistent.
Quoted 6 lines
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.