Content-type: text/html Manpage of httpd_sys_script_selinux

httpd_sys_script_selinux

Section: httpd_sys_script SELinux Policy documentation (8)
Updated: httpd_sys_script
Index Return to Main Contents
 

NAME

httpd_sys_script_selinux - Security Enhanced Linux Policy for the httpd_sys_script processes  

DESCRIPTION

Security-Enhanced Linux secures the httpd_sys_script processes via flexible mandatory access control.

 

NSSWITCH DOMAIN

If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd serve for the httpd_sys_script_t, you must turn on the authlogin_nsswitch_use_ldap boolean.

setsebool -P authlogin_nsswitch_use_ldap 1

If you want to allow confined applications to run with kerberos for the httpd_sys_script_t, you must turn on the kerberos_enabled boolean.

setsebool -P kerberos_enabled 1

 

SHARING FILES

If you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and public_content_rw_t. These context allow any of the above domains to read the content. If you want a particular domain to write to the public_content_rw_t domain, you must set the appropriate boolean.
Allow httpd_sys_script servers to read the /var/httpd_sys_script directory by adding the public_content_t file type to the directory and by restoring the file type.

semanage fcontext -a -t public_content_t "/var/httpd_sys_script(/.*)?"
restorecon -F -R -v /var/httpd_sys_script

Allow httpd_sys_script servers to read and write /var/tmp/incoming by adding the public_content_rw_t type to the directory and by restoring the file type. This also requires the allow_httpd_sys_scriptd_anon_write boolean to be set.

semanage fcontext -a -t public_content_rw_t "/var/httpd_sys_script/incoming(/.*)?"
restorecon -F -R -v /var/httpd_sys_script/incoming

If you want to allow apache scripts to write to public content, directories/files must be labeled public_rw_content_t., you must turn on the httpd_sys_script_anon_write boolean.

setsebool -P httpd_sys_script_anon_write 1

 

FILE CONTEXTS

SELinux requires files to have an extended attribute to define the file type.

You can see the context of a file using the -Z option to lsP Policy governs the access confined processes have to these files. SELinux httpd_sys_script policy is very flexible allowing users to setup their httpd_sys_script processes in as secure a method as possible.

The following file types are defined for httpd_sys_script:

httpd_sys_script_exec_t

- Set files with the httpd_sys_script_exec_t type, if you want to transition an executable to the httpd_sys_script_t domain.


Paths:
/var/www/svn/hooks(/.*)?, /usr/share/mythweb/mythweb.pl, /usr/share/wordpress/.*.php, /usr/lib/cgi-bin(/.*)?, /opt/.*.cgi, /var/www/perl(/.*)?, /usr/share/mythtv/mythweather/scripts(/.*)?, /usr/share/wordpress-mu/wp-config.php, /usr/.*.cgi, /var/www/html/[^/]*/cgi-bin(/.*)?, /var/www/[^/]*/cgi-bin(/.*)?, /var/www/cgi-bin(/.*)?, /usr/share/wordpress/wp-includes/.*.php

Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels.

 

PROCESS TYPES

SELinux defines process types (domains) for each process running on the system

You can see the context of a process using the -Z option to psP Policy governs the access confined processes have to files. SELinux httpd_sys_script policy is very flexible allowing users to setup their httpd_sys_script processes in as secure a method as possible.

The following process types are defined for httpd_sys_script:

httpd_sys_script_t

Note: semanage permissive -a PROCESS_TYPE can be used to make a process type permissive. Permissive process types are not denied access by SELinux. AVC messages will still be generated.

 

MANAGED FILES

The S


 

Index

NAME
DESCRIPTION
NSSWITCH DOMAIN
SHARING FILES
FILE CONTEXTS
PROCESS TYPES
MANAGED FILES

This document was created by man2html, using the manual pages.
Time: 19:32:09 GMT, September 30, 2012