commit:     0d5ec8428b688ea09c2241fe868e1d684fc9cba6
Author:     Jason Zaman <jason <AT> perfinion <DOT> com>
AuthorDate: Wed Feb 15 17:15:58 2017 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Fri Feb 17 08:46:50 2017 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0d5ec842

kerberos: Introduce kerberos_filetrans_named_content interface

 policy/modules/contrib/kerberos.if | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/policy/modules/contrib/kerberos.if 
b/policy/modules/contrib/kerberos.if
index 01caeead..d9d5811f 100644
--- a/policy/modules/contrib/kerberos.if
+++ b/policy/modules/contrib/kerberos.if
@@ -466,6 +466,43 @@ interface(`kerberos_connect_524',`
 
 ########################################
 ## <summary>
+##     Transition to kerberos named content
+## </summary>
+## <param name="domain">
+##     <summary>
+##      Domain allowed access.
+##     </summary>
+## </param>
+#
+interface(`kerberos_filetrans_named_content',`
+       gen_require(`
+               type krb5_conf_t, krb5_keytab_t, krb5kdc_conf_t;
+               type krb5kdc_principal_t;
+       ')
+
+       files_etc_filetrans($1, krb5_conf_t, file, "krb5.conf")
+       filetrans_pattern($1, krb5kdc_conf_t, krb5_keytab_t, file, 
"kadm5.keytab")
+       filetrans_pattern($1, krb5kdc_conf_t, krb5kdc_principal_t, file, 
"principal")
+       filetrans_pattern($1, krb5kdc_conf_t, krb5kdc_principal_t, file, 
"principal0")
+       filetrans_pattern($1, krb5kdc_conf_t, krb5kdc_principal_t, file, 
"principal1")
+       #filetrans_pattern($1, krb5kdc_conf_t, krb5kdc_principal_t, file, 
"principal1")
+
+       kerberos_etc_filetrans_keytab($1, file, "krb5.keytab")
+       #kerberos_filetrans_admin_home_content($1)
+
+       kerberos_tmp_filetrans_host_rcache($1, file, "DNS_25")
+       kerberos_tmp_filetrans_host_rcache($1, file, "host_0")
+       kerberos_tmp_filetrans_host_rcache($1, file, "HTTP_23")
+       kerberos_tmp_filetrans_host_rcache($1, file, "HTTP_48")
+       kerberos_tmp_filetrans_host_rcache($1, file, "imap_0")
+       kerberos_tmp_filetrans_host_rcache($1, file, "nfs_0")
+       kerberos_tmp_filetrans_host_rcache($1, file, "ldapmap1_0")
+       kerberos_tmp_filetrans_host_rcache($1, file, "ldap_487")
+       kerberos_tmp_filetrans_host_rcache($1, file, "ldap_55")
+')
+
+########################################
+## <summary>
 ##     All of the rules required to
 ##     administrate an kerberos environment.
 ## </summary>

Reply via email to