From: Casey Schaufler <casey@schaufler-ca.com>
To: russell@coker.com.au, Eamon Walsh <ewalsh@tycho.nsa.gov>
Cc: SELinux List <selinux@tycho.nsa.gov>,
"Christopher J. PeBenito" <cpebenito@tresys.com>,
Daniel J Walsh <dwalsh@redhat.com>
Subject: Re: What domain should the X server run in
Date: Fri, 26 Oct 2007 08:43:48 -0700 (PDT) [thread overview]
Message-ID: <440116.95399.qm@web36605.mail.mud.yahoo.com> (raw)
In-Reply-To: <200710262252.31838.russell@coker.com.au>
--- Russell Coker <russell@coker.com.au> wrote:
> On Friday 26 October 2007 03:27, Eamon Walsh <ewalsh@tycho.nsa.gov> wrote:
> > Is the X server part of the user's session or not?
>
> It probably would be best to have the X server run in a domain specific to
> the
> user. Even without the domain-type issues if we want to use labelled
> networking to control access to X servers (let's not assume there is a strict
>
> 1:1 mapping of X servers to user sessions) in a MLS/MCS environment then
> having an X server instance per user makes sense.
>
> > If it is, then it should always run as user_xserver_t, and the display
> > managers should be "fixed" to label the X server with the user's context
> > at login time.
> >
> > It if isn't, then it should always run in the same domain, and
> > startx/xinit should be "fixed" to transition into this context.
> >
> > From my perspective I would favor the latter option for now since it's
> > easier to write policy for. The user's individual windows can be
> > labeled with a per-user type, maintaining separation.
>
> Why would either option be easier for policy writing? Getting both to work
> (as has currently been done) is tricky - and we have had repeated breakage
> along the way. For ease of policy writing we would support exactly one of
> the options.
>
> I think that having the display manager start a new X server for each login
> will give the best result.
That certainly has advantages, including making the object reuse
argument worlds simpler. In the Unix world it has been done both ways.
Some instances treated the X server as a user application.
Trix4.0.5epl, B1 evaluated, did it this way. Others made the X server a
policy enforcing mechanism, and ran it as a system process.
The important thing is that you have to decide if the X server is a
policy enforcing entity or if it is not. Once you've made that choice
it's pretty clear what you need to do. And who's going to get upset.
Casey Schaufler
casey@schaufler-ca.com
--
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.
next prev parent reply other threads:[~2007-10-26 15:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-25 17:27 What domain should the X server run in Eamon Walsh
2007-10-25 18:50 ` Christopher J. PeBenito
2007-10-25 19:57 ` Eamon Walsh
2007-10-26 12:52 ` Russell Coker
2007-10-26 15:43 ` Casey Schaufler [this message]
2007-10-26 16:56 ` Russell Coker
2007-10-26 18:15 ` Casey Schaufler
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=440116.95399.qm@web36605.mail.mud.yahoo.com \
--to=casey@schaufler-ca.com \
--cc=cpebenito@tresys.com \
--cc=dwalsh@redhat.com \
--cc=ewalsh@tycho.nsa.gov \
--cc=russell@coker.com.au \
--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.