Research
Skip Research Menus
Research MenuSecurity Enhanced Linux What's New Frequently Asked Questions Background Documents License Download Participating Mail List Archives Remaining Work Contributors Related Work Press Releases Information Assurance Research NIARL In-house Research Areas Mathematical Sciences Program Sabbaticals Computer & Information Sciences Research Technology Transfer Advanced Computing Advanced Mathematics Communications & Networking Information Processing Microelectronics Other Technologies Technology Fact Sheets Publications Related Links |
SELinux Mailing Listpostfix changes
From: dwalsh_at_redhat.com
Date: Wed, 30 May 2007 10:34:21 -0400
@@ -449,3 +447,22 @@ typeattribute $1 postfix_user_domtrans; ') + +######################################## +## <summary> +## Create a named socket in a postfix private directory. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +# +interface(`postfix_create_pivate_sockets',` + gen_require(` + type postfix_private_t; + ') + + allow $1 postfix_private_t:dir list_dir_perms; + create_sock_files_pattern($1,postfix_private_t,postfix_private_t) +') --- nsaserefpolicy/policy/modules/services/postfix.te 2007-05-29 14:10:57.000000000 -0400 +++ serefpolicy-3.0.1/policy/modules/services/postfix.te 2007-05-30 09:08:15.000000000 -0400 @@ -169,6 +169,12 @@ mta_rw_aliases(postfix_master_t) mta_read_sendmail_bin(postfix_master_t) +term_dontaudit_search_ptys(postfix_master_t) + +optional_policy(` + auth_use_nsswitch(postfix_master_t) +') + optional_policy(` cyrus_stream_connect(postfix_master_t)') @@ -179,6 +185,10 @@ ') optional_policy(` + mysql_stream_connect(postfix_master_t) +') + +optional_policy(` nis_use_ypbind(postfix_master_t) ')
@@ -205,6 +215,7 @@ allow postfix_bounce_t self:capability dac_read_search; allow postfix_bounce_t self:tcp_socket create_socket_perms; +allow postfix_bounce_t postfix_master_t:file read;
allow postfix_bounce_t postfix_public_t:sock_file write;
allow postfix_bounce_t postfix_public_t:dir search;
allow postfix_cleanup_t self:process setrlimit; +allow postfix_cleanup_t postfix_master_t:file read;
# connect to master process
allow postfix_local_t self:fifo_file rw_fifo_file_perms; allow postfix_local_t self:process { setsched setrlimit }; +allow postfix_local_t postfix_master_t:file read;
manage_dirs_pattern(postfix_local_t,postfix_local_tmp_t,postfix_local_tmp_t)
manage_files_pattern(postfix_local_t,postfix_local_tmp_t,postfix_local_tmp_t)
allow postfix_pickup_t self:tcp_socket create_socket_perms; +allow postfix_pickup_t postfix_master_t:file read; stream_connect_pattern(postfix_pickup_t,postfix_private_t,postfix_private_t,postfix_master_t)
@@ -376,7 +390,7 @@ -allow postfix_pipe_t self:fifo_file { read write }; +allow postfix_pipe_t self:fifo_file rw_fifo_file_perms; write_sock_files_pattern(postfix_pipe_t,postfix_private_t,postfix_private_t)
@@ -385,6 +399,10 @@ optional_policy(` + dovecot_domtrans_deliver(postfix_pipe_t) +') + +optional_policy(` procmail_domtrans(postfix_pipe_t) ')
@@ -425,6 +443,11 @@ cron_system_entry(postfix_postdrop_t, postfix_postdrop_exec_t) ') +# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=239951 +optional_policy(` + fstools_read_pipes(postfix_postdrop_t) +') + optional_policy(` ppp_use_fds(postfix_postqueue_t) ppp_sigchld(postfix_postqueue_t) @@ -460,6 +483,8 @@ # Postfix qmgr local policy #
+allow postfix_qmgr_t postfix_master_t:file read;
+
rw_fifo_files_pattern(postfix_qmgr_t,postfix_public_t,postfix_public_t)
-allow postfix_smtp_t self:netlink_route_socket r_netlink_socket_perms;
-
@@ -537,9 +560,18 @@ optional_policy(` + mailman_read_data_files(postfix_smtpd_t) +') + +optional_policy(` postgrey_stream_connect(postfix_smtpd_t)') optional_policy(`
sasl_connect(postfix_smtpd_t)
+ +optional_policy(` + dovecot_auth_stream_connect(postfix_smtpd_t) +') + -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.Received on Wed 30 May 2007 - 13:37:02 EDT |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |