Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/
Date: Thu, 25 May 2017 17:08:59
Message-Id: 1495731839.cc786a07ee93677d6b41dc10e61e3810038f4c6f.perfinion@gentoo
1 commit: cc786a07ee93677d6b41dc10e61e3810038f4c6f
2 Author: Jason Zaman <jason <AT> perfinion <DOT> com>
3 AuthorDate: Wed Feb 15 17:15:58 2017 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Thu May 25 17:03:59 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=cc786a07
7
8 kerberos: Introduce kerberos_filetrans_named_content interface
9
10 policy/modules/contrib/kerberos.if | 37 +++++++++++++++++++++++++++++++++++++
11 1 file changed, 37 insertions(+)
12
13 diff --git a/policy/modules/contrib/kerberos.if b/policy/modules/contrib/kerberos.if
14 index 01caeead..d9d5811f 100644
15 --- a/policy/modules/contrib/kerberos.if
16 +++ b/policy/modules/contrib/kerberos.if
17 @@ -466,6 +466,43 @@ interface(`kerberos_connect_524',`
18
19 ########################################
20 ## <summary>
21 +## Transition to kerberos named content
22 +## </summary>
23 +## <param name="domain">
24 +## <summary>
25 +## Domain allowed access.
26 +## </summary>
27 +## </param>
28 +#
29 +interface(`kerberos_filetrans_named_content',`
30 + gen_require(`
31 + type krb5_conf_t, krb5_keytab_t, krb5kdc_conf_t;
32 + type krb5kdc_principal_t;
33 + ')
34 +
35 + files_etc_filetrans($1, krb5_conf_t, file, "krb5.conf")
36 + filetrans_pattern($1, krb5kdc_conf_t, krb5_keytab_t, file, "kadm5.keytab")
37 + filetrans_pattern($1, krb5kdc_conf_t, krb5kdc_principal_t, file, "principal")
38 + filetrans_pattern($1, krb5kdc_conf_t, krb5kdc_principal_t, file, "principal0")
39 + filetrans_pattern($1, krb5kdc_conf_t, krb5kdc_principal_t, file, "principal1")
40 + #filetrans_pattern($1, krb5kdc_conf_t, krb5kdc_principal_t, file, "principal1")
41 +
42 + kerberos_etc_filetrans_keytab($1, file, "krb5.keytab")
43 + #kerberos_filetrans_admin_home_content($1)
44 +
45 + kerberos_tmp_filetrans_host_rcache($1, file, "DNS_25")
46 + kerberos_tmp_filetrans_host_rcache($1, file, "host_0")
47 + kerberos_tmp_filetrans_host_rcache($1, file, "HTTP_23")
48 + kerberos_tmp_filetrans_host_rcache($1, file, "HTTP_48")
49 + kerberos_tmp_filetrans_host_rcache($1, file, "imap_0")
50 + kerberos_tmp_filetrans_host_rcache($1, file, "nfs_0")
51 + kerberos_tmp_filetrans_host_rcache($1, file, "ldapmap1_0")
52 + kerberos_tmp_filetrans_host_rcache($1, file, "ldap_487")
53 + kerberos_tmp_filetrans_host_rcache($1, file, "ldap_55")
54 +')
55 +
56 +########################################
57 +## <summary>
58 ## All of the rules required to
59 ## administrate an kerberos environment.
60 ## </summary>