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 6195013877A for ; Tue, 29 Jul 2014 14:07:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21E8DE092F; Tue, 29 Jul 2014 14:07:36 +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 A85E6E092F for ; Tue, 29 Jul 2014 14:07:35 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A507340179 for ; Tue, 29 Jul 2014 14:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 095AC18BF0 for ; Tue, 29 Jul 2014 14:07:29 +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: <1406642601.4563b7dd71222c81a270198e2915712fef53e048.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/libraries.fc X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 4563b7dd71222c81a270198e2915712fef53e048 X-VCS-Branch: master Date: Tue, 29 Jul 2014 14:07:29 +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: c88b849f-b05d-41ab-b148-c371178f362f X-Archives-Hash: 6934677332f688d78818136a80cf8d8e commit: 4563b7dd71222c81a270198e2915712fef53e048 Author: Nicolas Iooss m4x org> AuthorDate: Sat Jul 5 16:35:26 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Tue Jul 29 14:03:21 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=4563b7dd Label /lib symlink as lib_t for every distro As in Debian, Gentoo and Arch Linux /lib may be a symlink, move its file context definition outside of ifdef blocks. --- policy/modules/system/libraries.fc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/policy/modules/system/libraries.fc b/policy/modules/system/libraries.fc index 18398f5..85e918f 100644 --- a/policy/modules/system/libraries.fc +++ b/policy/modules/system/libraries.fc @@ -33,22 +33,15 @@ ifdef(`distro_redhat',` /etc/ppp/plugins/rp-pppoe\.so -- gen_context(system_u:object_r:lib_t,s0) # -# /lib +# /lib(64)? # /lib -d gen_context(system_u:object_r:lib_t,s0) +/lib -l gen_context(system_u:object_r:lib_t,s0) /lib/.* gen_context(system_u:object_r:lib_t,s0) /lib/ld-[^/]*\.so(\.[^/]*)* -- gen_context(system_u:object_r:ld_so_t,s0) /lib/security/pam_poldi\.so -- gen_context(system_u:object_r:textrel_shlib_t,s0) -ifdef(`distro_debian',` -/lib -l gen_context(system_u:object_r:lib_t,s0) -') - -ifdef(`distro_gentoo',` -/lib -l gen_context(system_u:object_r:lib_t,s0) -') - # # /opt #