All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [ cgroups revisited 3/4] Allow login users to list both cgroup as well as cgroupfs dirs.
@ 2010-04-28 10:02 Dominick Grift
  0 siblings, 0 replies; only message in thread
From: Dominick Grift @ 2010-04-28 10:02 UTC (permalink / raw)
  To: refpolicy

This seems needed but i have not figured out completely why.
I know some atlleast that some gnome wants it but i am not sure as to whether text login users need it.

I do not see a big problem with allowing this myself though.
In some cases regular users can be allowed to edit cgroupfs files, and in that case they will need
this access as well.

Signed-off-by: Dominick Grift <domg472@gmail.com>
---
:100644 100644 990063c... 97af220... M	policy/modules/system/userdomain.if
 policy/modules/system/userdomain.if |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if
index 990063c..97af220 100644
--- a/policy/modules/system/userdomain.if
+++ b/policy/modules/system/userdomain.if
@@ -753,6 +753,7 @@ template(`userdom_login_user_template', `
 	fs_getattr_all_fs($1_t)
 	fs_getattr_all_dirs($1_t)
 	fs_search_auto_mountpoints($1_t)
+	fs_list_cgroupfs_dirs($1_t)
 	fs_list_inotifyfs($1_t)
 	fs_rw_anon_inodefs_files($1_t)
 
@@ -779,6 +780,10 @@ template(`userdom_login_user_template', `
 	seutil_read_config($1_t)
 
 	optional_policy(`
+		cgroup_list_cgroup_dirs($1_t)
+	')
+
+	optional_policy(`
 		cups_read_config($1_t)
 		cups_stream_connect($1_t)
 		cups_stream_connect_ptal($1_t)
-- 
1.7.0.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100428/bd06de6a/attachment.bin 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-28 10:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-28 10:02 [refpolicy] [ cgroups revisited 3/4] Allow login users to list both cgroup as well as cgroupfs dirs Dominick Grift

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.