All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 5/34]: patch to label XDG config files and allow policykit to use them
@ 2011-02-16  6:00 Guido Trentalancia
  2011-02-16 20:51 ` Sven Vermeulen
  0 siblings, 1 reply; 4+ messages in thread
From: Guido Trentalancia @ 2011-02-16  6:00 UTC (permalink / raw)
  To: refpolicy

This patch labels HOME_DIR/\.config as gnome_home_t and then
allows policykit to read such kind of files.

diff -pruN refpolicy-git-02022011-test-apply/policy/modules/apps/gnome.fc refpolicy-git-02022011-test-apply2/policy/modules/apps/gnome.fc
--- refpolicy-git-02022011-test-apply/policy/modules/apps/gnome.fc	2011-01-08 19:07:21.179731404 +0100
+++ refpolicy-git-02022011-test-apply2/policy/modules/apps/gnome.fc	2011-02-07 00:54:30.568909514 +0100
@@ -1,4 +1,4 @@
-HOME_DIR/\.config/gtk-.*	gen_context(system_u:object_r:gnome_home_t,s0)
+HOME_DIR/\.config(/.*)?		gen_context(system_u:object_r:gnome_home_t,s0)
 HOME_DIR/\.gconf(d)?(/.*)?	gen_context(system_u:object_r:gconf_home_t,s0)
 HOME_DIR/\.gnome2(/.*)?		gen_context(system_u:object_r:gnome_home_t,s0)
 
diff -pruN refpolicy-git-02022011-test-apply/policy/modules/services/policykit.te refpolicy-git-02022011-test-apply2/policy/modules/services/policykit.te
--- refpolicy-git-02022011-test-apply/policy/modules/services/policykit.te	2011-01-08 19:07:21.281747514 +0100
+++ refpolicy-git-02022011-test-apply2/policy/modules/services/policykit.te	2011-02-07 00:55:34.133380018 +0100
@@ -69,6 +69,10 @@ miscfiles_read_localization(policykit_t)
 
 userdom_read_all_users_state(policykit_t)
 
+optional_policy(`
+	gnome_read_config(policykit_t)
+')
+
 ########################################
 #
 # polkit_auth local policy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-16 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16  6:00 [refpolicy] [PATCH 5/34]: patch to label XDG config files and allow policykit to use them Guido Trentalancia
2011-02-16 20:51 ` Sven Vermeulen
2011-02-16 20:56   ` Daniel J Walsh
2011-02-16 21:28   ` Guido Trentalancia

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.