From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-719125-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CE1D613877A for <garchives@archives.gentoo.org>; Thu, 7 Aug 2014 09:50:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5743BE096B; Thu, 7 Aug 2014 09:50:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB63DE0964 for <gentoo-commits@lists.gentoo.org>; Thu, 7 Aug 2014 09:50:06 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 313423401E8 for <gentoo-commits@lists.gentoo.org>; Thu, 7 Aug 2014 08:06:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id F0DD01881A for <gentoo-commits@lists.gentoo.org>; Thu, 7 Aug 2014 08:06:03 +0000 (UTC) From: "Sven Vermeulen" <swift@gentoo.org> 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" <swift@gentoo.org> Message-ID: <1407348517.a3557731110822effbdd433dffe24c3fbacdc9d8.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/files.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: a3557731110822effbdd433dffe24c3fbacdc9d8 X-VCS-Branch: master Date: Thu, 7 Aug 2014 08:06:03 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0364acdf-d626-4f34-ac62-9cc0076f2698 X-Archives-Hash: d127eeea4455cd6a52d3bfb0889c0a5f Message-ID: <20140807080603.pcz6GEn7zhdhR57AuwN99N4khSVOBFer2Hh4hMVfLlE@z> commit: a3557731110822effbdd433dffe24c3fbacdc9d8 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Wed Aug 6 08:55:58 2014 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Wed Aug 6 18:08:37 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=a3557731 Comment out seutil_relabelto_bin_policy We comment out the use of the seutil_relabelto_bin_policy call in the files_relabel_non_auth_files interface. This allows us to set this interface in a tunable statement, like so: seutil_relabelto_bin_policy(foo_t) tunable_policy(`foo_relabel_non_auth_files',` files_relabel_non_auth_files(foo_t) ') In larger entries, this allows us to have a minimalistic policy (a domain only allowed to manage and relabel a certain set of file types) and, through a boolean, enable it to manage and relabel a larger set of types. --- policy/modules/kernel/files.if | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index 3f20525..ca278d5 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -1445,7 +1445,9 @@ interface(`files_relabel_non_auth_files',` relabelfrom_chr_files_pattern($1, non_auth_file_type, non_auth_file_type) # satisfy the assertions: - seutil_relabelto_bin_policy($1) + # seutil_relabelto_bin_policy($1) + # Gentoo: this is removed as we do not want to set attributes in this phase, we want + # to allow files_relabel_non_auth_files to be an optional setting (tunable). ')