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 1ABD2138CCE for ; Sat, 16 May 2015 11:30:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8165E087E; Sat, 16 May 2015 11:30:12 +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 66AD5E087E for ; Sat, 16 May 2015 11:30:12 +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 9CE53340BCD for ; Sat, 16 May 2015 11:30:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 79F119AA for ; Sat, 16 May 2015 11:30:06 +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: <1431775737.39073b3161feea2f4e2cbe3c36579127fc235ed6.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.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 39073b3161feea2f4e2cbe3c36579127fc235ed6 X-VCS-Branch: swift Date: Sat, 16 May 2015 11:30:06 +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: 367ed837-0628-4d55-a761-45abd9cdcffc X-Archives-Hash: 7552e01c007e63ca1906b5363f9b906b Message-ID: <20150516113006.TMsmjfOH1Hp5ZNk990x4dA9DF1gnokzrZhVkQXvEpT4@z> commit: 39073b3161feea2f4e2cbe3c36579127fc235ed6 Author: Sven Vermeulen siphos be> AuthorDate: Sat May 16 11:28:57 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sat May 16 11:28:57 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=39073b31 Additional rights for postfix admin policy/modules/contrib/postfix.if | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/policy/modules/contrib/postfix.if b/policy/modules/contrib/postfix.if index a7ec448..8bc856e 100644 --- a/policy/modules/contrib/postfix.if +++ b/policy/modules/contrib/postfix.if @@ -761,5 +761,13 @@ interface(`postfix_admin',` # Allow postfix admin to send message to log files, needed during operations like "postfix reload" logging_send_syslog_msg($1) + + # Reloading the system through postfix reload needs a few permissions + # "postfix: fatal: socket: Permission denied" + allow $1 self:tcp_socket create_stream_socket_perms; + # "postfix: fatal: inet_addr_local[getifaddrs]: getifaddrs: Permission denied" + allow $1 self:netlink_route_socket r_netlink_socket_perms; + # "postsuper: fatal: setuid(207): Operation not permitted" + allow $1 self:capability { setuid setgid }; ') ')