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 40184138200 for ; Fri, 16 Aug 2013 10:46:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AE26E0D23; Fri, 16 Aug 2013 10:45:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 87BCAE0D1C for ; Fri, 16 Aug 2013 10:45:58 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2E5EB33EBC8 for ; Fri, 16 Aug 2013 10:45:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id B6E3DE5459 for ; Fri, 16 Aug 2013 10:45:55 +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: <1376639351.2c0103336e739df2bc2a433f5e28034b2ec66f69.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: 2c0103336e739df2bc2a433f5e28034b2ec66f69 X-VCS-Branch: master Date: Fri, 16 Aug 2013 10:45:55 +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: f7f95fb6-4a58-4838-9fbb-76e2a528848d X-Archives-Hash: 7b473f3c9f7679ac5554e76f2136772c commit: 2c0103336e739df2bc2a433f5e28034b2ec66f69 Author: Sven Vermeulen siphos be> AuthorDate: Fri Aug 16 07:49:11 2013 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Fri Aug 16 07:49:11 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=2c010333 Allow getattr on file systems for setfiles When loading a new policy, denials are shown regarding getattr rights against filesystem classes for tmpfs_t, devpts_t and device_t. Although not clearly visible in the setfiles code why, allowing these does not hurt security, reduces clutter in the logs and matches the "normal behavior" of the setfiles command. --- policy/modules/system/selinuxutil.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te index cc13e63..2b1f521 100644 --- a/policy/modules/system/selinuxutil.te +++ b/policy/modules/system/selinuxutil.te @@ -645,5 +645,10 @@ ifdef(`distro_gentoo',` allow run_init_t self:passwd rootok; + # Denials upon loading policy + fs_getattr_tmpfs(setfiles_t) + dev_getattr_fs(setfiles_t) + term_getattr_pty_fs(setfiles_t) + files_read_all_symlinks(setfiles_t) ')