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 C3F72138202 for ; Wed, 19 Dec 2012 21:17:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E616A21C070; Wed, 19 Dec 2012 21:16:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 292F621C070 for ; Wed, 19 Dec 2012 21:16:58 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2242233D90A for ; Wed, 19 Dec 2012 21:16:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id BFBEAE543C for ; Wed, 19 Dec 2012 21:16:55 +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: <1355921292.f990dd9d3b062bab42a51baf00500cdc2b48e63b.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/roles/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/roles/sysadm.te X-VCS-Directories: policy/modules/roles/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: f990dd9d3b062bab42a51baf00500cdc2b48e63b X-VCS-Branch: master Date: Wed, 19 Dec 2012 21:16:55 +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: 24e72a27-2721-48b5-87d5-a961b8e3a14d X-Archives-Hash: 2ae846430098e4c1b5c4f413d94966a3 commit: f990dd9d3b062bab42a51baf00500cdc2b48e63b Author: Sven Vermeulen siphos be> AuthorDate: Wed Dec 19 12:48:12 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Wed Dec 19 12:48:12 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=f990dd9d Allow sysadmin to call rpcinfo When calling rpcinfo -p to find out the available RPC services, we got the following error: rpcinfo: can't contact portmapper: RPC: Remote system error - Permission denied Adding the rpcbind_stream_connect to sysadm_t resolved this as the denial showed the following: Dec 19 13:45:59 hpl kernel: [18164.749818] type=1400 audit(1355921159.325:1387): avc: denied { connectto } for pid=30087 comm="rpcinfo" path="/run/rpcbind.sock" scontext=staff_u:sysadm_r:sysadm_t tcontext=system_u:system_r:rpcbind_t tclass=unix_stream_socket --- policy/modules/roles/sysadm.te | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te index 8ecfdcb..0d22033 100644 --- a/policy/modules/roles/sysadm.te +++ b/policy/modules/roles/sysadm.te @@ -547,6 +547,10 @@ ifdef(`distro_gentoo',` ') optional_policy(` + rpcbind_stream_connect(sysadm_t) + ') + + optional_policy(` shorewall_admin(sysadm_t, sysadm_r) ') ')