All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 3/3] Implement X Desktop Group
Date: Fri, 30 Nov 2012 09:35:21 -0500	[thread overview]
Message-ID: <50B8C429.3090901@tresys.com> (raw)
In-Reply-To: <1354198592.20999.5.camel@localhost>

On 11/29/12 09:16, grift wrote:
> On Thu, 2012-11-29 at 08:51 -0500, Christopher J. PeBenito wrote:
>> On 11/29/12 08:09, grift wrote:
>>> Are we ready to make a decision yet with regard to the two outstanding
>>> issues?
>>>
>>> - best type names? (my preference user_data_home_t, user_config_home_t,
>>> user_cache_home_t)
>>
>> replace user with xdg, e.g. xdg_config_home_t.
>>
>>> - should be label ~/.local/share with the xdg data home type or ~/.local
>>> ( my preference ~/.local/share)
>>>
>>> But i will go with whatever in the end
>>
>> Here's another option to consider:
>>
>> $HOME/.local  -d  gen_context(system_u:object_r:xdg_local_home_t,s0)
>> $HOME/.local/share(/.*)?    gen_context(system_u:object_r:xdg_data_home_t,s0)
>>
>> and then treat xdg_local_home_t similar to user_home_dir_t and filetrans everything under it.  Then the named filetrans for ~/.local/share will work right on top of any of the other random dirs that pop up under there.
> 
> I understand your reasoning but i am not confident about the type name
> "xdg_local_home_t" and i am also not confident that this type should be
> declared in the xserver policy module
> 
> how about we use local_home_t and declare it in the userdomain module?

I'm unclear why you disagree.  It seems to make sense that 1. this standard is defined by the X desktop group, so xdg doesn't seem so bad to have in the type name.  2. I don't think it makes sense in userdomain because this standard applies to X desktops, so if you don't have an xserver, theres no need for these definitions.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

  parent reply	other threads:[~2012-11-30 14:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-05 11:55 [refpolicy] [PATCH 0/3] Implement X Desktop Group and relevant dependencies Dominick Grift
2012-11-05 11:55 ` [refpolicy] [PATCH 1/3] Create a attribute user_home_content_type and assign it to all types that are classified userdom_user_home_content() Dominick Grift
2012-11-05 11:55 ` [refpolicy] [PATCH 2/3] These two attribute are unused Dominick Grift
2012-11-05 11:55 ` [refpolicy] [PATCH 3/3] Implement X Desktop Group Dominick Grift
2012-11-26 16:35   ` Christopher J. PeBenito
     [not found]     ` <1353950589.10744.5.camel@x220.mydomain.internal>
     [not found]       ` <50B4BDE4.4080703@tresys.com>
2012-11-27 13:27         ` Dominick Grift
2012-11-27 15:31     ` Sven Vermeulen
2012-11-29 13:09   ` grift
2012-11-29 13:51     ` Christopher J. PeBenito
2012-11-29 14:16       ` grift
2012-11-29 14:48         ` grift
2012-11-30 14:35         ` Christopher J. PeBenito [this message]
2012-11-30 17:01           ` grift
2012-11-30 20:06             ` Daniel J Walsh
2012-12-07  4:53               ` Christopher J. PeBenito
2012-12-11 12:35                 ` grift
2012-12-11 14:31                   ` Christopher J. PeBenito
2012-12-11 15:00                     ` grift

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50B8C429.3090901@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.