| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- ## <summary>policy for dirsrv</summary>
- ########################################
- ## <summary>
- ## Execute a domain transition to run dirsrv.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed to transition.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_domtrans',`
- gen_require(`
- type dirsrv_t, dirsrv_exec_t;
- ')
- domain_auto_trans($1,dirsrv_exec_t,dirsrv_t)
- allow dirsrv_t $1:fd use;
- allow dirsrv_t $1:fifo_file rw_file_perms;
- allow dirsrv_t $1:process sigchld;
- ')
- ########################################
- ## <summary>
- ## Allow caller to signal dirsrv.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_signal',`
- gen_require(`
- type dirsrv_t;
- ')
- allow $1 dirsrv_t:process signal;
- ')
- ########################################
- ## <summary>
- ## Send a null signal to dirsrv.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_signull',`
- gen_require(`
- type dirsrv_t;
- ')
- allow $1 dirsrv_t:process signull;
- ')
- #######################################
- ## <summary>
- ## Allow a domain to manage dirsrv logs.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_manage_log',`
- gen_require(`
- type dirsrv_var_log_t;
- ')
- allow $1 dirsrv_var_log_t:dir manage_dir_perms;
- allow $1 dirsrv_var_log_t:file manage_file_perms;
- allow $1 dirsrv_var_log_t:fifo_file manage_fifo_file_perms;
- ')
- #######################################
- ## <summary>
- ## Allow a domain to manage dirsrv /var/lib files.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_manage_var_lib',`
- gen_require(`
- type dirsrv_var_lib_t;
- ')
- allow $1 dirsrv_var_lib_t:dir manage_dir_perms;
- allow $1 dirsrv_var_lib_t:file manage_file_perms;
- ')
- #######################################
- ## <summary>
- ## Allow a domain to manage dirsrv /var/run files.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_manage_var_run',`
- gen_require(`
- type dirsrv_var_run_t;
- ')
- allow $1 dirsrv_var_run_t:dir manage_dir_perms;
- allow $1 dirsrv_var_run_t:file manage_file_perms;
- allow $1 dirsrv_var_run_t:sock_file manage_file_perms;
- ')
- #####################################
- # <summary>
- # Allow a domain to create dirsrv pid directories.
- # </summary>
- # <param name="domain">
- # <summary>
- # Domain allowed access.
- # </summary>
- # </param>
- #
- interface(`dirsrv_pid_filetrans',`
- gen_require(`
- type dirsrv_var_run_t;
- ')
- # Allow creating a dir in /var/run with this type
- files_pid_filetrans($1, dirsrv_var_run_t, dir)
- ')
- #######################################
- ## <summary>
- ## Allow a domain to read dirsrv /var/run files.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_read_var_run',`
- gen_require(`
- type dirsrv_var_run_t;
- ')
- allow $1 dirsrv_var_run_t:dir list_dir_perms;
- allow $1 dirsrv_var_run_t:file read_file_perms;
- ')
- ########################################
- ## <summary>
- ## Manage dirsrv configuration files.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_manage_config',`
- gen_require(`
- type dirsrv_config_t;
- ')
- allow $1 dirsrv_config_t:dir manage_dir_perms;
- allow $1 dirsrv_config_t:file manage_file_perms;
- ')
- ########################################
- ## <summary>
- ## Read dirsrv share files.
- ## </summary>
- ## <param name="domain">
- ## <summary>
- ## Domain allowed access.
- ## </summary>
- ## </param>
- #
- interface(`dirsrv_read_share',`
- gen_require(`
- type dirsrv_share_t;
- ')
- allow $1 dirsrv_share_t:dir list_dir_perms;
- allow $1 dirsrv_share_t:file read_file_perms;
- allow $1 dirsrv_share_t:lnk_file read;
- ')
|