Remove unconfined_domain from sendmail, Allow others to read sendmail logs (snmp)
policy/modules/services/sendmail.if +21 -1
@@ -76,6 +76,26 @@ ######################################## ## <summary> +## Read sendmail logs. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +## <rolecap/> +# +interface(`sendmail_read_log',` + gen_require(` + type sendmail_log_t; + ') + + logging_search_logs($1) + read_files_pattern($1, sendmail_log_t, sendmail_log_t) +') + +######################################## +## <summary> ## Create, read, write, and delete sendmail logs. ## </summary> ## <param name="domain">
@@ -91,7 +111,7 @@ ') logging_search_logs($1) - allow $1 sendmail_log_t:file manage_file_perms; + manage_files_pattern($1, sendmail_log_t, sendmail_log_t) ') ########################################
policy/modules/services/sendmail.te +1 -5
@@ -1,5 +1,5 @@ -policy_module(sendmail,1.4.0) +policy_module(sendmail,1.4.1) ######################################## #
@@ -136,10 +136,6 @@ udev_read_db(sendmail_t) ') -optional_policy(` - unconfined_domain(sendmail_t) -') - ifdef(`TODO',` allow sendmail_t etc_mail_t:dir rw_dir_perms; allow sendmail_t etc_mail_t:file manage_file_perms;
--
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.