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 D41BE1381F3 for ; Fri, 21 Dec 2012 17:44:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6B6BB21C003; Fri, 21 Dec 2012 17:44:42 +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 B0CFC21C003 for ; Fri, 21 Dec 2012 17:44:41 +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 ACBE733BF4B for ; Fri, 21 Dec 2012 17:44:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 45007E543C for ; Fri, 21 Dec 2012 17:44:39 +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: <1356001903.a21e705062be9555bd9b46f44fb94800f89a0173.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/puppet.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: a21e705062be9555bd9b46f44fb94800f89a0173 X-VCS-Branch: master Date: Fri, 21 Dec 2012 17:44:39 +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: 9dcd8075-9840-47ef-a910-3d2e72532c28 X-Archives-Hash: fa1e6506e22f9a80a335c5a055948925 commit: a21e705062be9555bd9b46f44fb94800f89a0173 Author: Sven Vermeulen siphos be> AuthorDate: Thu Dec 20 11:10:10 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Thu Dec 20 11:11:43 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=a21e7050 Puppet module helper scripts are puppet_var_lib_t As the module helper scripts are puppet_var_lib_t, we allow puppet_t to execute these files. Another method would be to have the scripts marked bin_t, but as these paths are depending on module names this does not seem feasible at first sight. More investigation is needed on this matter though. --- policy/modules/contrib/puppet.te | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/policy/modules/contrib/puppet.te b/policy/modules/contrib/puppet.te index ecbded3..2e6f19b 100644 --- a/policy/modules/contrib/puppet.te +++ b/policy/modules/contrib/puppet.te @@ -358,6 +358,8 @@ ifdef(`distro_gentoo',` allow puppet_t self:udp_socket create_socket_perms; allow puppet_t puppet_log_t:file read_file_perms; + can_exec(puppet_t, puppet_var_lib_t) # module helper scripts + kernel_read_kernel_sysctls(puppet_t) kernel_read_net_sysctls(puppet_t) kernel_read_network_state(puppet_t)