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 D23FB1389E2 for ; Tue, 30 Dec 2014 20:44:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A667E0935; Tue, 30 Dec 2014 20:44:02 +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 95914E0935 for ; Tue, 30 Dec 2014 20:44:01 +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 62B35340675 for ; Tue, 30 Dec 2014 20:44:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1B4C9E838 for ; Tue, 30 Dec 2014 20:43:58 +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: <1419972200.90bfde5dce608aa910e0e0e7db0af6c5dda0cb21.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/authlogin.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 90bfde5dce608aa910e0e0e7db0af6c5dda0cb21 X-VCS-Branch: master Date: Tue, 30 Dec 2014 20:43:58 +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: 4c80ff92-db9d-4031-8582-dbbe667f5606 X-Archives-Hash: 4bb13ebcb6ed1b106520d67edb37e97e commit: 90bfde5dce608aa910e0e0e7db0af6c5dda0cb21 Author: Sven Vermeulen siphos be> AuthorDate: Tue Dec 30 20:43:20 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Tue Dec 30 20:43:20 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=90bfde5d Grant all PAM using applications read access to SELinux state --- policy/modules/system/authlogin.if | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/policy/modules/system/authlogin.if b/policy/modules/system/authlogin.if index f05d7bf..6aac59c 100644 --- a/policy/modules/system/authlogin.if +++ b/policy/modules/system/authlogin.if @@ -80,6 +80,13 @@ interface(`auth_use_pam',` optional_policy(` nis_authenticate($1) ') + + ifdef(`distro_gentoo',` + # pam_unix.so only calls unix_chkpwd if geteuid <> 0 or if SELinux is enabled. + # So we need to grant it the proper privileges to check if SELinux is enabled + selinux_getattr_fs($1) + selinux_get_enforce_mode($1) + ') ') ########################################