From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CEF76139694 for ; Fri, 17 Feb 2017 08:51:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E6F621C09B; Fri, 17 Feb 2017 08:51:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4091321C09B for ; Fri, 17 Feb 2017 08:51:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C09D3341142 for ; Fri, 17 Feb 2017 08:50:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A271E4ADE for ; Fri, 17 Feb 2017 08:50:56 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1487321210.0d5ec8428b688ea09c2241fe868e1d684fc9cba6.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/kerberos.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 0d5ec8428b688ea09c2241fe868e1d684fc9cba6 X-VCS-Branch: next Date: Fri, 17 Feb 2017 08:50:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e35c6c10-53fc-4d87-b4df-16c62c69771a X-Archives-Hash: 56f68cefd829f0638f62a11ea9cc91cd commit: 0d5ec8428b688ea09c2241fe868e1d684fc9cba6 Author: Jason Zaman perfinion com> AuthorDate: Wed Feb 15 17:15:58 2017 +0000 Commit: Jason Zaman gentoo 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',` ######################################## ## +## Transition to kerberos named content +## +## +## +## Domain allowed access. +## +## +# +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") +') + +######################################## +## ## All of the rules required to ## administrate an kerberos environment. ##