Skip to contentSkip to conversation

Changes to the gnome policy module

refpolicy Dominick Grift 4 participants 18 messages Oct 3, 2012 – Oct 9, 2012

lore
Share & tools
lore
#0 lore raw

The below is ported from Fedora with (considerable) changes.

The changes are pretty far reaching and so i would like comments on it.

Some of the changes are:

Creating new types for ~/.cache, ~/.config, ~/.local/share and various generic gstreamer content ( see the HOME_DIR file contexts ) These types arent specific to gnome but Fedora threats the gnome module as if it were a module for any desktop environment.

The config, cache and data types are from the freedesktop specification and are used by any desktop ( at least that is the idea behind this standard )

This patch also implements a config_usr_t type which is basically for KDE

The gnome keyring daemon needs to be prefixed since it needs to be able to transition back to the user domain.

Therefore i created a separate gnome_role_template_gkeyringd rather than stuffing it in a generic gnome_role (gconfd and others might not need to be prefixed)

You will notice that i have enclosed plenty of gnome transition interfaces.

I expect that those will be needed (i know they will) and to make sure they are proper, i decided to create them beforehand.

I also created interfaces that should be called in the user domain, to allow users to create generic gnome content with the proper file transition and to allow them to relabel and manage the content

gnome_manage_all_generic_home_content
gnome_relabel_all_generic_home_content
gnome_filetrans_all_generic_home

These are supposed to end up in the userdom_manage_home_role ( in a optional policy block)

There is also a inteface that allows callers to execute all generic gnome home files (this should be added to the userdom_exec_home_files interface so that this can be allowed conditionally

The policy builds, and allows users calling gnome_role_template_keyringd to domain transition (both via their session bus type or userdomain type)

By calling the gnome_role_template_keyringd you will depend on the dbus role (it needs to be nested in the dbus_role_template). example:

optional_policy(`
dbus_role_template(user, user_r, user_t)

optional_policy(`
gnome_role_template_gkeyringd(user, user_r, user_t)
')
optional_policy(`
wm_role_template(user, user_r, user_t)
')
')

There is one big difference between fedora and refpolicy. Fedora wants selinux to make unconfined users run their dbus session in the unconfined_dbusd_t domain. Refpolicy allows unconfined users to run their dbus session in the unconfined_t domain

I favor refpolicies solution as i believe that ideally unconfined_t should never transition out of unconfined_t. ( the argument that unconfined_t needs to transition in order to be able to create files with the proper type is not longer valid since we now have named file transitions)

I think fedora also wants selinux to make xdm runs its debus session in the xdm_dbusd_t session bus type (not sure) i think that would be a bad idea as well.

Anyways the policy builds and it installs, i did some basic checks and it works as expected as far as i have tested.

But i know from experience that it *might* get ugly (i think dwalsh might understand what i am talking about)

Nonetheless, sooner or later we will have to confront it so it might as well be now

I just want to throw this in the group because i still hope one day we are all on the same page when it comes to dealing with issues that this patch aims to deal with

gnome.fc +22 -4
index 00a19e3..a8580f1 100644
@@ -1,9 +1,27 @@
-HOME_DIR/\.config/gtk-.*	gen_context(system_u:object_r:gnome_home_t,s0)
+HOME_DIR/\.cache(/.*)?	gen_context(system_u:object_r:cache_home_t,s0)
+HOME_DIR/\.config(/.*)?	gen_context(system_u:object_r:config_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)
+HOME_DIR/\.gnome(/.*)?	gen_context(system_u:object_r:gnome_home_t,s0)
+HOME_DIR/\.gnome2(/.*)?	gen_context(system_u:object_r:gnome_home_t,s0)
+HOME_DIR/\.gnome2/keyrings(/.*)?	gen_context(system_u:object_r:gnome_keyring_home_t,s0)
+HOME_DIR/\.gnome2_private(/.*)?	gen_context(system_u:object_r:gnome_home_t,s0)
+HOME_DIR/\.grl-bookmarks	--	gen_context(system_u:object_r:gstreamer_home_t,s0)
+HOME_DIR/\.grl-metadata-store	--	gen_context(system_u:object_r:gstreamer_home_t,s0)
+HOME_DIR/\.grl-podcasts	--	gen_context(system_u:object_r:gstreamer_home_t,s0)
+HOME_DIR/\.gstreamer-0\.10(/.)?	gen_context(system_u:object_r:gstreamer_home_t,s0)
+HOME_DIR/\.kde(/.*)?	gen_context(system_u:object_r:config_home_t,s0)
+HOME_DIR/\.local(/.*)?	gen_context(system_u:object_r:gconf_home_t,s0)
+HOME_DIR/\.local/share(/.*)?	gen_context(system_u:object_r:data_home_t,s0)
+HOME_DIR/\.nv(/.*)?  gen_context(system_u:object_r:cache_home_t,s0)
+HOME_DIR/\.orc(/.*)?	gen_context(system_u:object_r:gstreamer_home_t,s0)
+HOME_DIR/\.Xdefaults	--	gen_context(system_u:object_r:config_home_t,s0)
 
-/etc/gconf(/.*)?		gen_context(system_u:object_r:gconf_etc_t,s0)
+/etc/gconf(/.*)?	gen_context(system_u:object_r:gconf_etc_t,s0)
 
 /tmp/gconfd-USER/.*	--	gen_context(system_u:object_r:gconf_tmp_t,s0)
 
-/usr/libexec/gconfd-2 	--	gen_context(system_u:object_r:gconfd_exec_t,s0)
+/usr/bin/gnome-keyring-daemon	--	gen_context(system_u:object_r:gkeyringd_exec_t,s0)
+
+/usr/libexec/gconfd-2	--	gen_context(system_u:object_r:gconfd_exec_t,s0)
+
+/usr/share/config(/.*)?	gen_context(system_u:object_r:config_usr_t,s0)
gnome.if +1324 -49

1,481 lines not on this page · raw message

gnome.te +98 -16

149 lines not on this page · raw message

#1 lore raw
Quoted 13 lines · Dominick Grift
gnome.if +13 -0
+#######################################
+## <summary>
+##	Create, read, write, and delete
+##	all generic gnome user home content.
+## </summary>
+## <param name="user_domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+## <rolebase/>
+#
+interface(`gnome_manage_all_generic_home_content',`

gnome.if line 153

Quoted 10 lines
gnome.if +10 -0
+	gen_require(`
+		type cache_home_t, config_home_t, data_home_t;
+		type gconf_home_t, gnome_home_t, gstreamer_home_t;
+	')
+
+	allow $1 { cache_home_t config_home_t data_home_t gconf_home_t gnome_home_t }:dir manage_dir_perms;
+	allow $1 { cache_home_t config_home_t data_home_t gconf_home_t gnome_home_t }:file manage_file_perms;
+	allow $1 { cache_home_t config_home_t data_home_t gconf_home_t gnome_home_t }:lnk_file manage_lnk_file_perms;
+	allow $1 { cache_home_t config_home_t data_home_t gconf_home_t gnome_home_t }:sock_file manage_sock_file_perms;
+	allow $1 { cache_home_t config_home_t data_home_t gconf_home_t gnome_home_t }:fifo_file manage_fifo_file_perms;

I added gstreamer_home_t to the above. ( i forgot that)

Quoted 16 lines
gnome.if +16 -0
+	tunable_policy(`use_nfs_home_dirs',`
+		fs_manage_nfs_dirs($1)
+		fs_manage_nfs_files($1)
+		fs_manage_nfs_symlinks($1)
+		fs_manage_nfs_named_sockets($1)
+		fs_manage_nfs_named_pipes($1)
+	')
+
+	tunable_policy(`use_samba_home_dirs',`
+		fs_manage_cifs_dirs($1)
+		fs_manage_cifs_files($1)
+		fs_manage_cifs_symlinks($1)
+		fs_manage_cifs_named_sockets($1)
+		fs_manage_cifs_named_pipes($1)
+	')
+')
#2 lore raw
In reply to Dominick Grift

gnome.te line 73

Quoted 3 lines · Dominick Grift
gnome.te +3 -0
+
+dev_read_urand(gconfd_t)
+

bug: i changed that to:

dev_read_urand(gnomedomain)

Quoted 14 lines
gnome.te +14 -0
+domain_use_interactive_fds(gnomedomain)
+
+files_read_etc_files(gnomedomain)
+
+miscfiles_read_localization(gnomedomain)
+
+logging_send_syslog_msg(gnomedomain)
+
+userdom_use_user_terminals(gnomedomain)
+
+##############################
+#
+# Gconf local Policy
+#
#3 lore raw
In reply to Dominick Grift
Quoted 4 lines · Dominick Grift

Creating new types for ~/.cache, ~/.config, ~/.local/share and various generic gstreamer content ( see the HOME_DIR file contexts ) These types arent specific to gnome but Fedora threats the gnome module as if it were a module for any desktop environment.

The config, cache and data types are from the freedesktop specification and are used by any desktop ( at least that is the idea behind this standard )

[...]

I would rather see them being either separate (like the xdg patches I suggested twice on the mailinglist) or part of userdom. But with great preference to separate. I don't see a reason to put it in a module that might not always be loaded, nor am I a proponent of having modules named one thing and meaning something else (gnome versus "any desktop related stuff", or apache versus "any web server stuff").

In the XDG policy we use in Gentoo, we have xdg_cache_home_t, xdg_config_home_t, xdg_data_home_t and xdg_runtime_home_t (for /run/user/USER stuff). It also supports file transitions for applications that make specific locations therein (like ~/.config/chromium, ~/.config/epdfview, ...) as to isolate (confine) the applications more.

I'm even going as far as providing user location types (that, if the sysadmin wants, the user can label his content with) for downloads (xdg_downloads_home_t), documents, music, pictures and videos (I don't see the need for documents yet, the rest allows me to confine the user apps pretty good). Of course, not all administrators want this granularity of MAC so a few booleans suffice to stay with the standard "all user content" privileges.

Still, I see a definite need for decent user application confinement. Many attacks are targeting user applications (the browser is one of the prime examples, but don't forget the adobe flash vulnerabilities and so on). For browsers alone I am already happy that my browsers both have their own domain and are not allowed to read any of my files beyond their own xdg-related locations and, for browser, the xdg_downloads_home_t stuff.

Quoted 7 lines

I also created interfaces that should be called in the user domain, to allow users to create generic gnome content with the proper file transition and to allow them to relabel and manage the content

gnome_manage_all_generic_home_content
gnome_relabel_all_generic_home_content
gnome_filetrans_all_generic_home

These are supposed to end up in the userdom_manage_home_role ( in a optional policy block)

Shouldn't those be "userdom_manage_all_generic_home_content" instead?

Also, I think it would be wise to use an attribute to label the user home content with, and work on the attribute. Newly created types (like specific ~/.config/* stuff) can then be marked as such as well and automatically take part in the privilege setting.

[...]

Quoted 4 lines

There is one big difference between fedora and refpolicy. Fedora wants selinux to make unconfined users run their dbus session in the unconfined_dbusd_t domain. Refpolicy allows unconfined users to run their dbus session in the unconfined_t domain

I favor refpolicies solution as i believe that ideally unconfined_t should never transition out of unconfined_t. ( the argument that unconfined_t needs to transition in order to be able to create files with the proper type is not longer valid since we now have named file transitions)

I find unconfined confusing exactly for that reason: when to transition away from an unconfined setting? Never seems like a valid choice (and is at least simple to understand ;-) However, don't mind me on this part - I do not use unconfined domains.

#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/03/2012 02:16 PM, Sven Vermeulen wrote:

I have no problem going to xdg. We have very few domains that transition out of unconfined_t. The problem with this is what I often want to provide some protection for the bulk of users who run with unconfined_t. Currently we try to add protection to chrome/firefox plugins and thumb_t. Most of the rest are either historic, to keep labeling correct. Or probably not needed.

For Fedora 19 I will make an effort to remove as many as possible.

sesearch -T -s unconfined_t -c process -C | grep -v initrc_t | wc -l 38

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBstpwACgkQrlYvE4MpobPs6ACeNQaEpa5S1nLuzGRLqXkuSaeZ yzMAoLW6N/YwIOQRND09SLwy4iuhl/i9
=lsj4
-----END PGP SIGNATURE-----

#5 lore raw
In reply to Sven Vermeulen
Quoted 6 lines · Sven Vermeulen

In the XDG policy we use in Gentoo, we have xdg_cache_home_t, xdg_config_home_t, xdg_data_home_t and xdg_runtime_home_t (for /run/user/USER stuff). It also supports file transitions for applications that make specific locations therein (like ~/.config/chromium, ~/.config/epdfview, ...) as to isolate (confine) the applications more.

The $XDG_RUNTIME_DIR is indeed something we need to discus in my view

Fedora currently labels /run/user type user_tmp_t

This is probably the easiest solution but not the prettiest.

The /run/user/UID directory has various content that use to go into either $TMP or $HOME

It can be considered the pid dir for users.

Problem with Fedora's solution, i think, is that she just added a file context spec for and did not take care of the type transition. Instead relying on systemd to use setfscreate or reset the file context to what is specified.

In that light i do not really like that /run/user ( root owned ) as well as /run/user/UID (user owned) are labeled user_tmp_t.

I think i would rather prefer something similar to how we deal with user home dirs.

/home (home_root_t)
/home/USER (user_home_dir_t)

/run/user (home_root_t)
/run/user/UID (user_home_dir_t)

In the current gnome patch however i have totally neglected XDG_RUNTIME_DIR. Bear in mind that not every system has that variable set and that various programs and libraries fall back to either $TMP or $HOME(/\.cache)?

#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 36 lines · Dominick Grift
Quoted 5 lines · Sven Vermeulen

In the XDG policy we use in Gentoo, we have xdg_cache_home_t, xdg_config_home_t, xdg_data_home_t and xdg_runtime_home_t (for /run/user/USER stuff). It also supports file transitions for applications that make specific locations therein (like ~/.config/chromium, ~/.config/epdfview, ...) as to isolate (confine) the applications more.

The $XDG_RUNTIME_DIR is indeed something we need to discus in my view

Fedora currently labels /run/user type user_tmp_t

This is probably the easiest solution but not the prettiest.

The /run/user/UID directory has various content that use to go into either $TMP or $HOME

It can be considered the pid dir for users.

Problem with Fedora's solution, i think, is that she just added a file context spec for and did not take care of the type transition. Instead relying on systemd to use setfscreate or reset the file context to what is specified.

In that light i do not really like that /run/user ( root owned ) as well as /run/user/UID (user owned) are labeled user_tmp_t.

I think i would rather prefer something similar to how we deal with user home dirs.

/home (home_root_t) /home/USER (user_home_dir_t)

/run/user (home_root_t) /run/user/UID (user_home_dir_t)

Quoted 9 lines

In the current gnome patch however i have totally neglected XDG_RUNTIME_DIR. Bear in mind that not every system has that variable set and that various programs and libraries fall back to either $TMP or $HOME(/\.cache)?

_______________________________________________ refpolicy mailing list refpolicy at oss.tresys.com http://oss.tresys.com/mailman/listinfo/refpolicy

That is fine, and something we can try out in Fedora 19. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBtouQACgkQrlYvE4MpobP5NQCg0Y+HozBVrdJUutYC75M+xq0S ydwAoItB+ikzRMx9KSsqfvJDVPPgyBWR
=qHwT
-----END PGP SIGNATURE-----

#7 lore raw
Quoted 1 line · Daniel J Walsh

That is fine, and something we can try out in Fedora 19.

I think we should should extend the userdomain policy module to reflect the freedesktop changes

That means deal appropriately with /run/user/UID, $HOME/.cache $HOME/.config and $HOME/.local/share in the userdomain policy module

#8 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 4 lines · Dominick Grift

On Thu, 2012-10-04 at 10:53 -0400, Daniel J Walsh wrote:

Quoted 8 lines
Quoted 1 line

That is fine, and something we can try out in Fedora 19.

I think we should should extend the userdomain policy module to reflect the freedesktop changes

That means deal appropriately with /run/user/UID, $HOME/.cache $HOME/.config and $HOME/.local/share in the userdomain policy module

I am fine with this.

Is it enought to just add an equivalence from /run/user -> /home

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBtxSEACgkQrlYvE4MpobO0AQCgw/QQJoo72tP+DBA0JpJO7PL8 16cAoL/WdijXdW7c39xJ/0lYgXrRMhs1
=IBsU
-----END PGP SIGNATURE-----

#9 lore raw
Quoted 5 lines

Is it enought to just add an equivalence from /run/user -> /home

The have changed from /run/user/USER to /run/user/UID so i do not think genhomedircon will work (?).

#10 lore raw
Quoted 8 lines · Dominick Grift
Quoted 4 lines

Is it enought to just add an equivalence from /run/user -> /home

The have changed from /run/user/USER to /run/user/UID so i do not think genhomedircon will work (?).

But anyway , i guess we could do that. I haven't really thought about that. What do you think would be best?

#11 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Dominick Grift
Quoted 5 lines · Dominick Grift
Quoted 4 lines

Is it enought to just add an equivalence from /run/user -> /home

Quoted 9 lines
Quoted 3 lines

The have changed from /run/user/USER to /run/user/UID so i do not think genhomedircon will work (?).

But anyway , i guess we could do that. I haven't really thought about that. What do you think would be best?

Well also the content in this directory does not match correctly for the file context.

/run/user/3267/dconf/ versus /home/dwalsh/.config/dconf?

Kerberos keyring is there now also there which used to be labeled user_tmp_t.

Gkeyringd_tmp_t content is there which also used to be in /tmp.

X11-display seems to be moving here also.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBt3cgACgkQrlYvE4MpobOQbwCfSRNWqvG8kswUq1b/AmnmK0wa 1/wAnR5cnIDYU/SunckKVVdMLBHjE5dW
=WstD
-----END PGP SIGNATURE-----

#12 lore raw
Quoted 5 lines · Daniel J Walsh
Quoted 1 line

Well also the content in this directory does not match correctly for the file context.

Quoted 8 lines

/run/user/3267/dconf/ versus /home/dwalsh/.config/dconf?

Kerberos keyring is there now also there which used to be labeled user_tmp_t.

Gkeyringd_tmp_t content is there which also used to be in /tmp.

X11-display seems to be moving here also.

.orc and gvfs matches with $HOME.

Nonetheless we should consider things like UBAC, MLS, poly-instantiation etc.

I know Redhat does not enable UBAC by default but i am pretty sure she would want this technology to be supported at least in a minimal way (or let me put it this way: i dont think she would want ubac enablement to totally break selinux in redhat distros) to give customers the freedom to enable it if they so desire.

UBAC requires that /run/user/UID has the proper selinux identity set, else users will not be able to create content in that dir (currently it is system_u).

But that aside, upstream will have to deal with that and to diverge from, or ignore upstream would be counter productive for all parties involved in the long run.

I think that the current labeling may not be good enough

#13 lore raw
Quoted 32 lines · Dominick Grift
Quoted 5 lines · Daniel J Walsh
Quoted 1 line

Well also the content in this directory does not match correctly for the file context.

Quoted 8 lines

/run/user/3267/dconf/ versus /home/dwalsh/.config/dconf?

Kerberos keyring is there now also there which used to be labeled user_tmp_t.

Gkeyringd_tmp_t content is there which also used to be in /tmp.

X11-display seems to be moving here also.

.orc and gvfs matches with $HOME.

Nonetheless we should consider things like UBAC, MLS, poly-instantiation etc.

I know Redhat does not enable UBAC by default but i am pretty sure she would want this technology to be supported at least in a minimal way (or let me put it this way: i dont think she would want ubac enablement to totally break selinux in redhat distros) to give customers the freedom to enable it if they so desire.

UBAC requires that /run/user/UID has the proper selinux identity set, else users will not be able to create content in that dir (currently it is system_u).

Quoted 6 lines

But that aside, upstream will have to deal with that and to diverge from, or ignore upstream would be counter productive for all parties involved in the long run.

I think that the current labeling may not be good enough

The above comment of me was on second thought probably exaggeration.

system_u is ubac exempt and user_tmp_t is or can be easily made to supported poly instantiation.

i guess it could work unless i am overlooking something

Quoted 1 line
#14 lore raw
Quoted 42 lines · Dominick Grift
Quoted 32 lines · Dominick Grift
Quoted 5 lines · Daniel J Walsh
Quoted 1 line

Well also the content in this directory does not match correctly for the file context.

Quoted 8 lines

/run/user/3267/dconf/ versus /home/dwalsh/.config/dconf?

Kerberos keyring is there now also there which used to be labeled user_tmp_t.

Gkeyringd_tmp_t content is there which also used to be in /tmp.

X11-display seems to be moving here also.

.orc and gvfs matches with $HOME.

Nonetheless we should consider things like UBAC, MLS, poly-instantiation etc.

I know Redhat does not enable UBAC by default but i am pretty sure she would want this technology to be supported at least in a minimal way (or let me put it this way: i dont think she would want ubac enablement to totally break selinux in redhat distros) to give customers the freedom to enable it if they so desire.

UBAC requires that /run/user/UID has the proper selinux identity set, else users will not be able to create content in that dir (currently it is system_u).

Quoted 6 lines

But that aside, upstream will have to deal with that and to diverge from, or ignore upstream would be counter productive for all parties involved in the long run.

I think that the current labeling may not be good enough

Quoted 6 lines

The above comment of me was on second thought probably exaggeration.

system_u is ubac exempt and user_tmp_t is or can be easily made to supported poly instantiation.

i guess it could work unless i am overlooking something

My suspicion is that in the long run genhomedircon would need to be enhanced to support a UID substitution like it has a USER substitution. That would yield the most flexibility. Otherwise, in the mean time, labeling /run/user/ as user_tmp_t would probably work.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#15 lore raw
In reply to Dominick Grift
Quoted 11 lines · Dominick Grift
Quoted 1 line · Daniel J Walsh

That is fine, and something we can try out in Fedora 19.

I think we should should extend the userdomain policy module to reflect the freedesktop changes

That means deal appropriately with /run/user/UID, $HOME/.cache $HOME/.config and $HOME/.local/share in the userdomain policy module

My understanding is that freedesktop is oriented towards X desktops, so it would seem that enhancing xserver_role() would be more appropriate.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#16 lore raw
Quoted 7 lines · Christopher J. PeBenito
Quoted 6 lines · Dominick Grift
Quoted 1 line · Daniel J Walsh

That is fine, and something we can try out in Fedora 19.

Quoted 8 lines
Quoted 5 lines

I think we should should extend the userdomain policy module to reflect the freedesktop changes

That means deal appropriately with /run/user/UID, $HOME/.cache $HOME/.config and $HOME/.local/share in the userdomain policy module

My understanding is that freedesktop is oriented towards X desktops, so it would seem that enhancing xserver_role() would be more appropriate.

More (or less) specifically "free desktops"

The problem is that for example the XDG runtime dir, is always created, whether you have xserver installed or not.

So then you will depend on the xserver policy for proper labeling

That is assuming that we implement a user_runtime_t. Which is another thing we need to consider:

What to label /run/user and /run/user/UID? ( fedora has /run/user(/.*)? user_tmp_t )

#17 lore raw
Quoted 24 lines · Dominick Grift
Quoted 7 lines · Christopher J. PeBenito
Quoted 6 lines · Dominick Grift
Quoted 1 line · Daniel J Walsh

That is fine, and something we can try out in Fedora 19.

Quoted 8 lines
Quoted 5 lines

I think we should should extend the userdomain policy module to reflect the freedesktop changes

That means deal appropriately with /run/user/UID, $HOME/.cache $HOME/.config and $HOME/.local/share in the userdomain policy module

My understanding is that freedesktop is oriented towards X desktops, so it would seem that enhancing xserver_role() would be more appropriate.

More (or less) specifically "free desktops"

The problem is that for example the XDG runtime dir, is always created, whether you have xserver installed or not.

Quoted 7 lines

So then you will depend on the xserver policy for proper labeling

That is assuming that we implement a user_runtime_t. Which is another thing we need to consider:

What to label /run/user and /run/user/UID? ( fedora has /run/user(/.*)? user_tmp_t )

user_tmp_t, as I said in my other email in this thread.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com