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 21BC2138B75 for ; Sun, 2 Nov 2014 15:08:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91C2AE0B93; Sun, 2 Nov 2014 15:08:47 +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 3AB18E0B93 for ; Sun, 2 Nov 2014 15:08:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2805B3403C8 for ; Sun, 2 Nov 2014 15:08:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C4DC29471 for ; Sun, 2 Nov 2014 15:08:44 +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: <1414940913.ef453666f30146da245ea98fe97f4548b1fb5166.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/selinuxutil.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: ef453666f30146da245ea98fe97f4548b1fb5166 X-VCS-Branch: master Date: Sun, 2 Nov 2014 15:08:44 +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: 7c80c016-4ca8-4038-9ea8-e7467dfe7548 X-Archives-Hash: 106e6118495373673885d16d3d1f5594 commit: ef453666f30146da245ea98fe97f4548b1fb5166 Author: Sven Vermeulen siphos be> AuthorDate: Sun Nov 2 15:08:33 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Nov 2 15:08:33 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=ef453666 Add auth_read_shadow for run_init_t to support pam-less openrc --- policy/modules/system/selinuxutil.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te index 0ad0479..1ba9d3c 100644 --- a/policy/modules/system/selinuxutil.te +++ b/policy/modules/system/selinuxutil.te @@ -655,6 +655,10 @@ ifdef(`distro_gentoo',` allow run_init_t self:process signal; allow run_init_t self:netlink_selinux_socket { create bind }; + # Needed to support openrc with USE="-pam" + # TODO can we make this optional? is this a bad thing? + auth_read_shadow(run_init_t) + # Denials upon loading policy fs_getattr_tmpfs(setfiles_t) dev_getattr_fs(setfiles_t)