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 233FB138247 for ; Sun, 3 Nov 2013 11:19:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EB527E09B5; Sun, 3 Nov 2013 11:19:09 +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 55977E092C for ; Sun, 3 Nov 2013 11:19:09 +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 6226933F09D for ; Sun, 3 Nov 2013 11:19:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id E9212E54D5 for ; Sun, 3 Nov 2013 11:19: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: <1383477160.047ba1322c21dd39104b0e19e5d7fae439f0fd1f.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/libraries.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 047ba1322c21dd39104b0e19e5d7fae439f0fd1f X-VCS-Branch: master Date: Sun, 3 Nov 2013 11:19: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: e0c865f4-3af7-4577-9a73-219eb44dcc49 X-Archives-Hash: 9102ea9ccd2a5ba1159be65cc7b299e5 commit: 047ba1322c21dd39104b0e19e5d7fae439f0fd1f Author: Sven Vermeulen siphos be> AuthorDate: Sun Nov 3 11:12:40 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Nov 3 11:12:40 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=047ba132 Add interface for relabeling lib_t directories This interface will be used later by the portage_t domain. --- policy/modules/system/libraries.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/system/libraries.if b/policy/modules/system/libraries.if index a83933f..24b7ef6 100644 --- a/policy/modules/system/libraries.if +++ b/policy/modules/system/libraries.if @@ -603,3 +603,23 @@ interface(`libs_lib_filetrans',` libs_search_lib($1) ') + +######################################## +## +## Relabel to and from the type used +## for generic lib directories. +## +## +## +## Domain allowed access. +## +## +# +interface(`libs_relabel_lib_dirs',` + gen_require(` + type lib_t; + ') + + relabel_dirs_pattern($1, lib_t, lib_t) +') +