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 CBC6A138200 for ; Fri, 19 Oct 2012 15:07:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B686E0660; Fri, 19 Oct 2012 15:06:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 83451E0660 for ; Fri, 19 Oct 2012 15:06:53 +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 A4AE233D993 for ; Fri, 19 Oct 2012 15:06:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 26730E5436 for ; Fri, 19 Oct 2012 15:06:51 +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: <1350659020.6d82100a89b222319a5a042adba4602b8f6c19b3.SwifT@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/modutils.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: SwifT X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 6d82100a89b222319a5a042adba4602b8f6c19b3 X-VCS-Branch: master Date: Fri, 19 Oct 2012 15:06:51 +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: e5eb4a25-209b-429f-844c-ec5f73c2992c X-Archives-Hash: f123dde76b92f7087b2de8a78cde69e5 commit: 6d82100a89b222319a5a042adba4602b8f6c19b3 Author: Dominick Grift gmail com> AuthorDate: Mon Oct 15 10:26:48 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Fri Oct 19 15:03:40 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=6d82100a Changes to the modutils policy module modutils_read_module_config() provides access to list modules_conf_t directories so that we do not need a seperate modutils_list_modules_config() Signed-off-by: Dominick Grift gmail.com> --- policy/modules/system/modutils.if | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/policy/modules/system/modutils.if b/policy/modules/system/modutils.if index ad5f878..c1b049c 100644 --- a/policy/modules/system/modutils.if +++ b/policy/modules/system/modutils.if @@ -83,8 +83,9 @@ interface(`modutils_read_module_config',` files_search_etc($1) files_search_boot($1) - read_files_pattern($1, modules_conf_t, modules_conf_t) - read_lnk_files_pattern($1, modules_conf_t, modules_conf_t) + allow $1 modules_conf_t:dir list_dir_perms; + allow $1 modules_conf_t:file read_file_perms; + allow $1 modules_conf_t:lnk_file read_lnk_file_perms; ') ########################################