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 1B3B01381F3 for ; Fri, 21 Dec 2012 20:10:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C668521C056; Fri, 21 Dec 2012 20:10:30 +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 4C4B521C056 for ; Fri, 21 Dec 2012 20:10:29 +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 00CC833D976 for ; Fri, 21 Dec 2012 20:10:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 991CCE5442 for ; Fri, 21 Dec 2012 20:10:27 +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: <1356120522.1d5cee45ef90d18e97374228bcdfb68f63cd74d1.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: 1d5cee45ef90d18e97374228bcdfb68f63cd74d1 X-VCS-Branch: master Date: Fri, 21 Dec 2012 20:10:27 +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: 28fda90d-db15-4f7e-9885-6ac835c9bda7 X-Archives-Hash: c8a02161bcbbc97b2327bc6b95deed85 commit: 1d5cee45ef90d18e97374228bcdfb68f63cd74d1 Author: Sven Vermeulen siphos be> AuthorDate: Fri Dec 21 20:08:42 2012 +0000 Commit: Sven Vermeulen siphos be> CommitDate: Fri Dec 21 20:08:42 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=1d5cee45 Allow restorecon/setfiles to read all symlinks As restorecon is currently often ran by users to reset /var/run actions, setfiles_t need to be able to read /var/* links (including /var/run -> /run and /var/lock -> /run/lock). Otherwise, we get: restorecon: lstat(/var/run/puppet) failed: Permission denied and the AVC denial clearly shows a read operation against the var_run_t lnk_file. --- policy/modules/system/selinuxutil.te | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/policy/modules/system/selinuxutil.te b/policy/modules/system/selinuxutil.te index 9bf38f8..4cba334 100644 --- a/policy/modules/system/selinuxutil.te +++ b/policy/modules/system/selinuxutil.te @@ -633,3 +633,12 @@ ifdef(`hide_broken_symptoms',` optional_policy(` hotplug_use_fds(setfiles_t) ') + +ifdef(`distro_gentoo',` + ########################################### + # + # setfiles local policy + # + + files_read_all_symlinks(setfiles_t) +')