From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-800307-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6B9F4138CD3 for <garchives@archives.gentoo.org>; Fri, 15 May 2015 13:47:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C48BE0833; Fri, 15 May 2015 13:47:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51885E0833 for <gentoo-commits@lists.gentoo.org>; Fri, 15 May 2015 13:47:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 56219340D0B for <gentoo-commits@lists.gentoo.org>; Fri, 15 May 2015 13:47:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C5179E7 for <gentoo-commits@lists.gentoo.org>; Fri, 15 May 2015 13:47:32 +0000 (UTC) From: "Sven Vermeulen" <swift@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" <swift@gentoo.org> Message-ID: <1431696306.105c5c80ee234d6bed09a47fa36746382e3830f7.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/postfix.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 105c5c80ee234d6bed09a47fa36746382e3830f7 X-VCS-Branch: master Date: Fri, 15 May 2015 13:47:32 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 07e5ccc9-c80d-446f-b6b7-cfa43e340a02 X-Archives-Hash: c5ee03057b6ec9c7312f9a185ab7b615 commit: 105c5c80ee234d6bed09a47fa36746382e3830f7 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Fri May 15 13:25:06 2015 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Fri May 15 13:25:06 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=105c5c80 postmap is a user command When a postfix admin updates a postfix database, he has to call "postmap hash:/etc/postfix/databasename" in order to regenerate the database (in case of a hash database in the example). To allow postmap to give feedback on errors, grant it access to the user terminals and private file descriptors of the admin. policy/modules/contrib/postfix.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/contrib/postfix.te b/policy/modules/contrib/postfix.te index afc1fde..1c0a34c 100644 --- a/policy/modules/contrib/postfix.te +++ b/policy/modules/contrib/postfix.te @@ -500,6 +500,8 @@ corecmd_read_bin_files(postfix_map_t) corecmd_read_bin_pipes(postfix_map_t) corecmd_read_bin_sockets(postfix_map_t) +domain_use_interactive_fds(postfix_map_t) + files_list_home(postfix_map_t) files_read_usr_files(postfix_map_t) files_read_etc_runtime_files(postfix_map_t) @@ -511,6 +513,8 @@ logging_send_syslog_msg(postfix_map_t) miscfiles_read_localization(postfix_map_t) +userdom_use_user_terminals(postfix_map_t) + optional_policy(` locallogin_dontaudit_use_fds(postfix_map_t) ') From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-800300-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C5D70138CCF for <garchives@archives.gentoo.org>; Fri, 15 May 2015 13:27:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F36C8E0814; Fri, 15 May 2015 13:27:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9BD6FE0814 for <gentoo-commits@lists.gentoo.org>; Fri, 15 May 2015 13:27:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 95807340E0F for <gentoo-commits@lists.gentoo.org>; Fri, 15 May 2015 13:27:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 83E639E9 for <gentoo-commits@lists.gentoo.org>; Fri, 15 May 2015 13:27:32 +0000 (UTC) From: "Sven Vermeulen" <swift@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" <swift@gentoo.org> Message-ID: <1431696306.105c5c80ee234d6bed09a47fa36746382e3830f7.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:swift commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/postfix.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 105c5c80ee234d6bed09a47fa36746382e3830f7 X-VCS-Branch: swift Date: Fri, 15 May 2015 13:27:32 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5089aeb8-f775-49c2-8edd-cbeee9c1f5c0 X-Archives-Hash: 92730c070d24aa076a0a0e6a37beb59c Message-ID: <20150515132732.5roaiF2CmczdgCtUAAWtTUiNeY1C-R3oQ52Q3Xv-rW8@z> commit: 105c5c80ee234d6bed09a47fa36746382e3830f7 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Fri May 15 13:25:06 2015 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Fri May 15 13:25:06 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=105c5c80 postmap is a user command When a postfix admin updates a postfix database, he has to call "postmap hash:/etc/postfix/databasename" in order to regenerate the database (in case of a hash database in the example). To allow postmap to give feedback on errors, grant it access to the user terminals and private file descriptors of the admin. policy/modules/contrib/postfix.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/contrib/postfix.te b/policy/modules/contrib/postfix.te index afc1fde..1c0a34c 100644 --- a/policy/modules/contrib/postfix.te +++ b/policy/modules/contrib/postfix.te @@ -500,6 +500,8 @@ corecmd_read_bin_files(postfix_map_t) corecmd_read_bin_pipes(postfix_map_t) corecmd_read_bin_sockets(postfix_map_t) +domain_use_interactive_fds(postfix_map_t) + files_list_home(postfix_map_t) files_read_usr_files(postfix_map_t) files_read_etc_runtime_files(postfix_map_t) @@ -511,6 +513,8 @@ logging_send_syslog_msg(postfix_map_t) miscfiles_read_localization(postfix_map_t) +userdom_use_user_terminals(postfix_map_t) + optional_policy(` locallogin_dontaudit_use_fds(postfix_map_t) ')