From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E8DE6139697 for ; Tue, 21 Feb 2017 07:11:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8A3221C06D; Tue, 21 Feb 2017 07:11:51 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C55C021C03E for ; Tue, 21 Feb 2017 07:11:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D95BD340FE2 for ; Tue, 21 Feb 2017 07:11:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE3F84F45 for ; Tue, 21 Feb 2017 07:11:48 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1487659252.ca23f74eb96deca16ed2cd98f551436ff80093b9.perfinion@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.fc X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: ca23f74eb96deca16ed2cd98f551436ff80093b9 X-VCS-Branch: master Date: Tue, 21 Feb 2017 07:11:48 +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: 379115bb-584d-4cd3-98cd-e98d693aa05a X-Archives-Hash: d03b931428f0083582b12e9c804c9d31 commit: ca23f74eb96deca16ed2cd98f551436ff80093b9 Author: cgzones googlemail com> AuthorDate: Thu Feb 16 15:08:47 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Feb 21 06:40:52 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ca23f74e files: no default types for /run and /var/lock encourage private types for /run and /var/lock by not providing default contexts anymore policy/modules/kernel/files.fc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/policy/modules/kernel/files.fc b/policy/modules/kernel/files.fc index 39491e9d..5d2c0c58 100644 --- a/policy/modules/kernel/files.fc +++ b/policy/modules/kernel/files.fc @@ -155,11 +155,7 @@ HOME_ROOT/lost\+found/.* <> # /run -d gen_context(system_u:object_r:var_run_t,s0-mls_systemhigh) /run -l gen_context(system_u:object_r:var_run_t,s0) -/run/.* gen_context(system_u:object_r:var_run_t,s0) -/run/.*\.*pid <> - -/run/lock -d gen_context(system_u:object_r:var_lock_t,s0) -/run/lock -l gen_context(system_u:object_r:var_lock_t,s0) +/run/.* <> # # /selinux @@ -243,7 +239,10 @@ ifndef(`distro_redhat',` /var/lib/nfs/rpc_pipefs(/.*)? <> -/var/lock(/.*)? gen_context(system_u:object_r:var_lock_t,s0) +/var/lock -d gen_context(system_u:object_r:var_lock_t,s0-mls_systemhigh) +/var/lock -l gen_context(system_u:object_r:var_lock_t,s0) +/var/lock/subsys -d gen_context(system_u:object_r:var_lock_t,s0-mls_systemhigh) +/var/lock/.* <> /var/log/lost\+found -d gen_context(system_u:object_r:lost_found_t,mls_systemhigh) /var/log/lost\+found/.* <>