From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D39AF138CD2 for ; Sat, 16 May 2015 11:31:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB448E08F5; Sat, 16 May 2015 11:31:10 +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 891A8E08F5 for ; Sat, 16 May 2015 11:31:09 +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 95076340AB5 for ; Sat, 16 May 2015 11:31:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 476219E6 for ; Sat, 16 May 2015 11:31:07 +0000 (UTC) From: "Sven Vermeulen" 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" Message-ID: <1431774670.94b22b5403841d31a3eeb61bab332e81c3afb69d.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.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 94b22b5403841d31a3eeb61bab332e81c3afb69d X-VCS-Branch: master Date: Sat, 16 May 2015 11:31:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6c61dbaf-73b3-4952-9349-0ac4b814d16d X-Archives-Hash: 62fa199b4f3caaf27264e40ab5bb7ce2 Message-ID: <20150516113107.TwB-PgR3ldZTAZ8YHBzpoIdHulfnML0v1JdtPQOW6g8@z> commit: 94b22b5403841d31a3eeb61bab332e81c3afb69d Author: Sven Vermeulen siphos be> AuthorDate: Sat May 16 11:11:10 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sat May 16 11:11:10 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=94b22b54 Add postfix operations to postfix_admin Allow postfix administrator to execute postfix: ~# /usr/sbin/postfix reload This also requires the administrative domain to have the ability to send log messages. policy/modules/contrib/postfix.if | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/policy/modules/contrib/postfix.if b/policy/modules/contrib/postfix.if index 8e7d1e7..a7ec448 100644 --- a/policy/modules/contrib/postfix.if +++ b/policy/modules/contrib/postfix.if @@ -748,11 +748,18 @@ interface(`postfix_admin',` ifdef(`distro_gentoo',` gen_require(` type postfix_showq_exec_t; + type postfix_master_exec_t; type postfix_postqueue_t; ') allow postfix_postqueue_t $1:process sigchld; can_exec($1, postfix_showq_exec_t) + + # Postfix admin must be able to execute postfix main (for instance for "postfix reload") + can_exec($1, postfix_master_exec_t) + + # Allow postfix admin to send message to log files, needed during operations like "postfix reload" + logging_send_syslog_msg($1) ') ')