Stricter directory control for ipa daemons, each one it's own directory

This commit is contained in:
Simo Sorce 2008-04-01 18:07:14 -04:00
parent 625d9b2de8
commit 0d5f45b3dd
3 changed files with 16 additions and 1 deletions

View File

@ -1 +1,9 @@
#
# /usr
#
/usr/sbin/ipa_kpasswd -- gen_context(system_u:object_r:ipa_kpasswd_exec_t,s0)
#
# /var
#
/var/cache/ipa/kpasswd(/.*)? gen_context(system_u:object_r:ipa_kpasswd_ccache_t,s0)

View File

@ -8,6 +8,7 @@ policy_module(ipa_kpasswd, 1.0)
type ipa_kpasswd_t;
type ipa_kpasswd_exec_t;
type ipa_kpasswd_var_run_t;
type ipa_kpasswd_ccache_t;
init_daemon_domain(ipa_kpasswd_t, ipa_kpasswd_exec_t)
########################################
@ -38,6 +39,12 @@ kerberos_use(ipa_kpasswd_t)
kernel_read_system_state(ipa_kpasswd_t)
# /var/cache/ipa/kpasswd
files_type(ipa_kpasswd_ccache_t)
manage_dirs_pattern(ipa_kpasswd_t, ipa_kpasswd_ccache_t, ipa_kpasswd_ccache_t)
manage_files_pattern(ipa_kpasswd_t, ipa_kpasswd_ccache_t, ipa_kpasswd_ccache_t)
files_var_filetrans(ipa_kpasswd_t, ipa_kpasswd_ccache_t,dir)
corenet_tcp_sendrecv_all_if(ipa_kpasswd_t)
corenet_udp_sendrecv_all_if(ipa_kpasswd_t)
corenet_raw_sendrecv_all_if(ipa_kpasswd_t)

View File

@ -8,4 +8,4 @@
# /var
#
/var/log/ipa_error\.log -- gen_context(system_u:object_r:ipa_webgui_log_t,s0)
/var/cache/ipa(/.*)? gen_context(system_u:object_r:ipa_cache_t,s0)
/var/cache/ipa/sessions(/.*)? gen_context(system_u:object_r:ipa_cache_t,s0)