All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eamon Walsh <ewalsh@tycho.nsa.gov>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: [PATCH] refpolicy: experimental X policy -v2
Date: Wed, 21 Mar 2007 20:29:39 -0400	[thread overview]
Message-ID: <4601CDF3.7040905@tycho.nsa.gov> (raw)
In-Reply-To: <1174510410.19924.23.camel@sgc.columbia.tresys.com>

Christopher J. PeBenito wrote:
> On Wed, 2007-03-21 at 15:58 -0400, Eamon Walsh wrote:
>> Look at the example of the /dev/mem access denial.  This issue was 
>> reported to me even though it's an X server issue, not an X application 
>> issue.  If I were in charge of managing X application policy on some 
>> installation, I wouldn't want the kernel policy for the X server jumbled 
>> in with it.
>>
>> Just like how we're separating userspace object manager Flask 
>> definitions from the kernel ones.  In fact, I had originally created an 
>> entire separate directory "userspace" to use instead of services/. 
>> Reconsidered that, but still like the idea of separate modules.
> 
> I'm not saying that all the X object class rules are supposed to go in
> xserver, just the common ones.  Consider dbus, it has a template that
> other modules use for being client to a dbus, but the rules for sending
> dbus messages to other domains follows the same refpolicy conventions as
> kernel object classes, and thus are put in the relevant interface, eg
> hal_dbus_send().  I think the distinction between server and
> applications here is clear, and also I think its an analogue to the X
> server (there is a system dbus and also user dbuses).

OK, this makes sense.

>> Maybe gdm should restart the X server after the user has logged in, or 
>> the xserver should change its own context.  Both programs already have 
>> SELinux patches, adding this functionality could be done.
> 
> Yes, though I don't know the pros and cons, other than the latter option
> would be a dyntransition.

The fast user switching support in rawhide runs multiple xservers on 
virtual consoles; having them all be xdm_xserver_t is problematic.

Other ideas: have the display manager always running on the first 
virtual console, and launch the user servers on other consoles.  Or 
maybe we should go back to a text-based login only running X through startx.


-- 
Eamon Walsh <ewalsh@tycho.nsa.gov>
National Security Agency

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2007-03-22  0:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-25 23:10 [PATCH] refpolicy: experimental X policy Eamon Walsh
2007-02-02 16:53 ` Ted X Toth
2007-02-13 20:26 ` Xavier Toth
2007-02-13 23:28   ` [PATCH] refpolicy: experimental X policy -v2 Eamon Walsh
2007-02-27 18:53     ` Christopher J. PeBenito
2007-03-20 22:27       ` Eamon Walsh
2007-03-20 22:58         ` Xavier Toth
2007-03-21 16:54         ` Christopher J. PeBenito
2007-03-21 19:58           ` Eamon Walsh
2007-03-21 20:53             ` Christopher J. PeBenito
2007-03-22  0:29               ` Eamon Walsh [this message]
2007-03-22 10:53                 ` Russell Coker

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=4601CDF3.7040905@tycho.nsa.gov \
    --to=ewalsh@tycho.nsa.gov \
    --cc=cpebenito@tresys.com \
    --cc=selinux@tycho.nsa.gov \
    /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.