commit: 7a74e7ba38497d870a3d3c51c8ffd6ffb876d00e Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Fri Nov 28 09:28:46 2014 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> 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)
