Apache wants to read krb5kdc.conf file
kadmind trys to setattr on krb5kdc file. Just a library checking access.
policy/modules/services/kerberos.if +21 -0
@@ -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>
policy/modules/services/kerberos.te +1 -1
@@ -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 };
policy/modules/services/apache.te +1 -0
@@ -383,6 +400,7 @@ optional_policy(` kerberos_use(httpd_t) + kerberos_read_kdc_config(httpd_t) ') optional_policy(`
Quoted 2 lines · Daniel J Walsh
kadmind trys to setattr on krb5kdc file. Just a library checking access.
Merged.
Quoted 74 lines
differences
between files
attachment
(kerberos.patch),
"kerberos.patch"--- 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 -0400policy/modules/services/kerberos.if +21
-1@@ -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-2023:38:09.000000000 -0400
+++
serefpolicy-2.5.10/policy/modules/services/kerberos.te 2007-03-22
15:06:59.000000000 -0400policy/modules/services/kerberos.te +1
-2@@ -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-2023:38:06.000000000 -0400
+++
serefpolicy-2.5.10/policy/modules/services/apache.te 2007-03-22
15:06:59.000000000 -0400policy/modules/services/apache.te +1
-0@@ -383,6 +400,7 @@ optional_policy(` kerberos_use(httpd_t) + kerberos_read_kdc_config(httpd_t) ') optional_policy(`
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.