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 E44E0138A1F for ; Mon, 21 Apr 2014 15:25:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7F36E09DA; Mon, 21 Apr 2014 15:25:21 +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 9F6D9E099B for ; Mon, 21 Apr 2014 15:25:20 +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 C9B9633FE5F for ; Mon, 21 Apr 2014 15:25:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 748D2187A7 for ; Mon, 21 Apr 2014 15:25:17 +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: <1398093588.2881f0894c6f2af70e0780d4672371f4d712e983.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/filesystem.fc X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 2881f0894c6f2af70e0780d4672371f4d712e983 X-VCS-Branch: master Date: Mon, 21 Apr 2014 15:25:17 +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: 0aa21e6b-345e-4f45-a6bc-2bd7da11c0c2 X-Archives-Hash: 8662c7046ada552411d515bf78b8804b commit: 2881f0894c6f2af70e0780d4672371f4d712e983 Author: Nicolas Iooss m4x org> AuthorDate: Mon Apr 14 21:18:31 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Mon Apr 21 15:19:48 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=2881f089 filesystem: label cgroup symlinks /sys/fs/cgroup is a tmpfs which contains cgroup mounts and symlinks such as cpu and cpuacct. Running restorecon makes this warning happen: restorecon: Warning no default label for /sys/fs/cgroup/cpu Declare a file context for every symlink in the cgroup tmpfs montpoint to no longer have such warning. --- policy/modules/kernel/filesystem.fc | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/kernel/filesystem.fc b/policy/modules/kernel/filesystem.fc index d7c11a0..f5cfe84 100644 --- a/policy/modules/kernel/filesystem.fc +++ b/policy/modules/kernel/filesystem.fc @@ -13,6 +13,7 @@ /sys/fs/cgroup -d gen_context(system_u:object_r:cgroup_t,s0) /sys/fs/cgroup/.* <> +/sys/fs/cgroup/[^/]+ -l gen_context(system_u:object_r:cgroup_t,s0) /sys/fs/pstore -d gen_context(system_u:object_r:pstore_t,s0) /sys/fs/pstore/.* <>