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 D08D913877A for ; Wed, 6 Aug 2014 09:19:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0177CE08D3; Wed, 6 Aug 2014 09:19:42 +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 A2378E08D3 for ; Wed, 6 Aug 2014 09:19:41 +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 A64F233F6E2 for ; Wed, 6 Aug 2014 09:19:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 6820E18815 for ; Wed, 6 Aug 2014 09:19: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: <1407316635.13028888c98455c718f3706b38a2801c7b76b465.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:testing commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/selinuxutil.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 13028888c98455c718f3706b38a2801c7b76b465 X-VCS-Branch: testing Date: Wed, 6 Aug 2014 09:19: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: 828e01b7-1d40-4854-bf84-02b9ec62949f X-Archives-Hash: aa8375410b375b1ca8165e08e5860ed1 commit: 13028888c98455c718f3706b38a2801c7b76b465 Author: Sven Vermeulen siphos be> AuthorDate: Wed Aug 6 09:17:15 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Wed Aug 6 09:17:15 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=13028888 Make SELinux configuration a security file type The SELinux configuration should be considered a security-sensitive configuration type and as such should not be made part of the system-wide accesses towards regular files (non_auth/non_security). --- policy/modules/system/selinuxutil.te | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te index 48566a4..4d6f5d9 100644 --- a/policy/modules/system/selinuxutil.te +++ b/policy/modules/system/selinuxutil.te @@ -28,7 +28,7 @@ roleattribute system_r semanage_roles; # in the domain_type interface # (fix dup decl) type selinux_config_t; -files_type(selinux_config_t) +files_security_file(selinux_config_t) type checkpolicy_t, can_write_binary_policy; type checkpolicy_exec_t; @@ -40,14 +40,14 @@ role system_r types checkpolicy_t; # /etc/selinux/*/contexts/* # type default_context_t; -files_type(default_context_t) +files_security_file(default_context_t) # # file_context_t is the type applied to # /etc/selinux/*/contexts/files # type file_context_t; -files_type(file_context_t) +files_security_file(file_context_t) type load_policy_t; type load_policy_exec_t; @@ -67,7 +67,7 @@ role newrole_roles types newrole_t; # the security server policy configuration. # type policy_config_t; -files_type(policy_config_t) +files_security_file(policy_config_t) neverallow ~can_relabelto_binary_policy policy_config_t:file relabelto; #neverallow ~can_write_binary_policy policy_config_t:file { write append };