From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] For restricted_xwindows_user, the gnome_role_template depends on the wm_role_template, which depends on the dbus_role_template
Date: Mon, 23 Sep 2013 15:10:47 -0400 [thread overview]
Message-ID: <52409237.7080000@tresys.com> (raw)
In-Reply-To: <1379663939.16771.66.camel@d30>
On Fri 20 Sep 2013 03:58:59 AM EDT, Dominick Grift wrote:
> On Fri, 2013-09-20 at 09:49 +0200, Dominick Grift wrote:
>> Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
>
> This is kind of nasty but this is basically needed for restricted
> xwindows users (Fedora probably only targeted to xguest) in an MLS
> environment.
>
> The problem here is that we, and fedora, currently run gnome-shell in
> the window manager domain for restricted xwindows users (xguest).
>
> To be honest, i don't believe this is sufficient anyways. Although it
> might just be enough for xguest
>
> We should probably have thought about this much earlier
So if that's the case, shouldn't it instead be changed to the below?
optional_policy(`
gnome_role_template($1, $1_r, $1_t)
wm_role_template($1, $1_r, $1_t)
')
If I understand you correctly, if you have wm and no gnome, it breaks.
>> diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if
>> index b4a691d..8cd6269 100644
>> --- a/policy/modules/system/userdomain.if
>> +++ b/policy/modules/system/userdomain.if
>> @@ -942,11 +942,11 @@
>> ')
>>
>> optional_policy(`
>> - gnome_role_template($1, $1_r, $1_t)
>> - ')
>> -
>> - optional_policy(`
>> wm_role_template($1, $1_r, $1_t)
>> +
>> + optional_policy(`
>> + gnome_role_template($1, $1_r, $1_t)
>> + ')
>> ')
>> ')
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
next prev parent reply other threads:[~2013-09-23 19:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-20 7:49 [refpolicy] [PATCH] For restricted_xwindows_user, the gnome_role_template depends on the wm_role_template, which depends on the dbus_role_template Dominick Grift
2013-09-20 7:58 ` Dominick Grift
2013-09-23 19:10 ` Christopher J. PeBenito [this message]
2013-09-24 12:51 ` Dominick Grift
2013-09-24 13:14 ` Dominick 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=52409237.7080000@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.