All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>,
	SE Linux <selinux@tycho.nsa.gov>
Subject: Apache wants to read krb5kdc.conf file
Date: Fri, 23 Mar 2007 15:57:02 -0400	[thread overview]
Message-ID: <4604310E.70906@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 76 bytes --]

kadmind trys to setattr on krb5kdc file.  Just a library checking access.



[-- Attachment #2: kerberos.patch --]
[-- Type: text/x-patch, Size: 1594 bytes --]

--- nsaserefpolicy/policy/modules/services/kerberos.if	2007-02-26 14:17:21.000000000 -0500
+++ serefpolicy-2.5.10/policy/modules/services/kerberos.if	2007-03-22 15:06:59.000000000 -0400
@@ -94,6 +94,27 @@
 
 ########################################
 ## <summary>
+##	Read the kerberos kdc configuration file (/etc/krb5kdc.conf).
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+## <rolecap/>
+#
+interface(`kerberos_read_kdc_config',`
+	gen_require(`
+		type krb5kdc_conf_t;
+	')
+
+	files_search_etc($1)
+	allow $1 krb5kdc_conf_t:file read_file_perms;
+
+')
+
+########################################
+## <summary>
 ##	Do not audit attempts to write the kerberos
 ##	configuration file (/etc/krb5.conf).
 ## </summary>
--- nsaserefpolicy/policy/modules/services/kerberos.te	2007-03-20 23:38:09.000000000 -0400
+++ serefpolicy-2.5.10/policy/modules/services/kerberos.te	2007-03-22 15:06:59.000000000 -0400
@@ -68,7 +68,7 @@
 dontaudit kadmind_t krb5_conf_t:file write;
 
 read_files_pattern(kadmind_t,krb5kdc_conf_t,krb5kdc_conf_t)
-dontaudit kadmind_t krb5kdc_conf_t:file write;
+dontaudit kadmind_t krb5kdc_conf_t:file { write setattr };
 
 allow kadmind_t krb5kdc_principal_t:file { getattr lock read write setattr };
 
--- nsaserefpolicy/policy/modules/services/apache.te	2007-03-20 23:38:06.000000000 -0400
+++ serefpolicy-2.5.10/policy/modules/services/apache.te	2007-03-22 15:06:59.000000000 -0400
@@ -383,6 +400,7 @@
 
 optional_policy(`
 	kerberos_use(httpd_t)
+	kerberos_read_kdc_config(httpd_t)
 ')
 
 optional_policy(`

             reply	other threads:[~2007-03-23 19:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-23 19:57 Daniel J Walsh [this message]
2007-04-10 17:16 ` Apache wants to read krb5kdc.conf file Christopher J. PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4604310E.70906@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=cpebenito@tresys.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.