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 279E9138247 for ; Sun, 3 Nov 2013 11:19:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6DAD7E0AA0; Sun, 3 Nov 2013 11:19:10 +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 0E198E0AA0 for ; Sun, 3 Nov 2013 11:19:08 +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 1B82E33F04C 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 BA2C6E545C 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: <1383477131.79328a8d79780d669e3830e6b9e7bac81ce89727.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/corecommands.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 79328a8d79780d669e3830e6b9e7bac81ce89727 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: 006d0019-172b-4ab6-a469-a832a6b8fda8 X-Archives-Hash: 8a8219094c12ea6c095bda2aa33c2a1e commit: 79328a8d79780d669e3830e6b9e7bac81ce89727 Author: Sven Vermeulen siphos be> AuthorDate: Sun Nov 3 11:12:11 2013 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Nov 3 11:12:11 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=79328a8d Add relabel interfaces for bin_t dir and lnk_files These interfaces will be used later by the portage_t domain. --- policy/modules/kernel/corecommands.if | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/policy/modules/kernel/corecommands.if b/policy/modules/kernel/corecommands.if index 9e9263a..917b160 100644 --- a/policy/modules/kernel/corecommands.if +++ b/policy/modules/kernel/corecommands.if @@ -1091,3 +1091,41 @@ interface(`corecmd_mmap_all_executables',` mmap_files_pattern($1, bin_t, exec_type) ') + +# Now starts gentoo specific but cannot use ifdef_distro gentoo here + +######################################## +## +## Relabel to and from the bin type. +## +## +## +## Domain allowed access. +## +## +# +interface(`corecmd_relabel_bin_dirs',` + gen_require(` + type bin_t; + ') + + relabel_dirs_pattern($1, bin_t, bin_t) +') + +######################################## +## +## Relabel to and from the bin type. +## +## +## +## Domain allowed access. +## +## +# +interface(`corecmd_relabel_bin_lnk_files',` + gen_require(` + type bin_t; + ') + + relabel_lnk_files_pattern($1, bin_t, bin_t) +')