sshd/setrans: make respective init scripts create pid dirs with proper contexts

Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
This commit is contained in:
Dominick Grift 2013-11-09 10:45:13 +01:00 committed by Chris PeBenito
parent 012f1b2311
commit 4113f7b0d4
2 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,10 @@ corecmd_executable_file(sshd_exec_t)
ssh_server_template(sshd)
init_daemon_domain(sshd_t, sshd_exec_t)
ifdef(`distro_debian',`
init_daemon_run_dir(sshd_var_run_t, "sshd")
')
type sshd_key_t;
files_type(sshd_key_t)

View File

@ -20,6 +20,10 @@ type setrans_var_run_t;
files_pid_file(setrans_var_run_t)
mls_trusted_object(setrans_var_run_t)
ifdef(`distro_debian',`
init_daemon_run_dir(setrans_var_run_t, "setrans")
')
ifdef(`enable_mcs',`
init_ranged_daemon_domain(setrans_t, setrans_exec_t, s0 - mcs_systemhigh)
')