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 42D88138ACE for ; Fri, 28 Nov 2014 09:40:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 819D5E0870; Fri, 28 Nov 2014 09:40:53 +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 0AA67E085B for ; Fri, 28 Nov 2014 09:40:52 +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 2FF913402E6 for ; Fri, 28 Nov 2014 09:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D04A5B135 for ; Fri, 28 Nov 2014 09:40:50 +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: <1417166926.7a74e7ba38497d870a3d3c51c8ffd6ffb876d00e.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/openrc.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 7a74e7ba38497d870a3d3c51c8ffd6ffb876d00e X-VCS-Branch: master Date: Fri, 28 Nov 2014 09:40:50 +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: d7ea7d16-bb69-4332-9d65-9bab2680cec5 X-Archives-Hash: a3100898d308d79daf3bc9271f200dfc commit: 7a74e7ba38497d870a3d3c51c8ffd6ffb876d00e Author: Sven Vermeulen siphos be> AuthorDate: Fri Nov 28 09:28:46 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Nov 28 09:28:46 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=7a74e7ba Allow cgroup handler to access /sys/fs/cgroup as tmpfs_t Currently, the /sys/fs/cgroup location is mounted as a tmpfs_t. As the mount options cannot be easily modified as of yet, we grant the cgroup handler search privileges over tmpfs_t. Additional cgroup mounts within /sys/fs/cgroup do hold the right context (cgroup_t). --- policy/modules/contrib/openrc.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/contrib/openrc.te b/policy/modules/contrib/openrc.te index 91afb6e..6a0d7cb 100644 --- a/policy/modules/contrib/openrc.te +++ b/policy/modules/contrib/openrc.te @@ -28,5 +28,8 @@ files_search_pids(openrc_cgroup_release_t) fs_manage_cgroup_dirs(openrc_cgroup_release_t) fs_manage_cgroup_files(openrc_cgroup_release_t) +# /sys/fs/cgroup is by default mounted as tmpfs_t +# Allow search until we can have it mounted correctly (TODO) +fs_search_tmpfs(openrc_cgroup_release_t) auth_use_nsswitch(openrc_cgroup_release_t) 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 7665B1389E2 for ; Fri, 28 Nov 2014 10:04:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AAC8CE08EA; Fri, 28 Nov 2014 10:04:10 +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 1C3FCE08C1 for ; Fri, 28 Nov 2014 10:04:08 +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 1079E3404D9 for ; Fri, 28 Nov 2014 10:04:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8E90DB156 for ; Fri, 28 Nov 2014 10:04:04 +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: <1417166926.7a74e7ba38497d870a3d3c51c8ffd6ffb876d00e.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/openrc.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 7a74e7ba38497d870a3d3c51c8ffd6ffb876d00e X-VCS-Branch: next Date: Fri, 28 Nov 2014 10:04:04 +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: 4ba72d6f-f501-41ca-9512-86d548edd83c X-Archives-Hash: 1bbbf59806c793376b7aec102dfc46e0 Message-ID: <20141128100404.6ERifM8QyUjHobzANU6zqR3jteERWyNO9RnRXX1v4Es@z> commit: 7a74e7ba38497d870a3d3c51c8ffd6ffb876d00e Author: Sven Vermeulen siphos be> AuthorDate: Fri Nov 28 09:28:46 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Nov 28 09:28:46 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=7a74e7ba Allow cgroup handler to access /sys/fs/cgroup as tmpfs_t Currently, the /sys/fs/cgroup location is mounted as a tmpfs_t. As the mount options cannot be easily modified as of yet, we grant the cgroup handler search privileges over tmpfs_t. Additional cgroup mounts within /sys/fs/cgroup do hold the right context (cgroup_t). --- policy/modules/contrib/openrc.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/contrib/openrc.te b/policy/modules/contrib/openrc.te index 91afb6e..6a0d7cb 100644 --- a/policy/modules/contrib/openrc.te +++ b/policy/modules/contrib/openrc.te @@ -28,5 +28,8 @@ files_search_pids(openrc_cgroup_release_t) fs_manage_cgroup_dirs(openrc_cgroup_release_t) fs_manage_cgroup_files(openrc_cgroup_release_t) +# /sys/fs/cgroup is by default mounted as tmpfs_t +# Allow search until we can have it mounted correctly (TODO) +fs_search_tmpfs(openrc_cgroup_release_t) auth_use_nsswitch(openrc_cgroup_release_t)