Skip to contentSkip to conversation

XWindows, trust, EROS

DISCUSSION Brian May 3 participants 3 messages Nov 6, 2003 SELinux security module

lore
Share & tools
lore

Brian May

author
#0 lore raw

Hello,

For some reason I thought EROS was dead, but the mailing lists seem to be strong...

Anyway, here is a discussion on X-Windows, trusted windows, untrusted windows, etc, which may/may not have implications here for people interested in using SE-Linux to limit access to "dangerous" X-Windows operations.

http://www.eros-os.org/pipermail/eros-arch/2003-November/003849.html

(Note: I haven't read this thread in detail myself yet).

(Note2: I apologize if this is already common knowledge or totally irrelevant...)

Signature · 6 lines
Brian May <[email protected]>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw

Thank you for mentioning EROS. Speaking for myself, unfortunately I don't see a connection between EROS and SE-X. The problem we face is how to communicate the Xclient's security context to the Xserver in a trustworthy manner, so that the Xserver can determine what access, if any, to grant the Xclient. Based on the reference you cited, it appears that EROS actively integrates the client in the security process. This is anathema to the classic compartmentalized, "need to know" paradigm SELinux embraces (the obvious exception, of course, being security-aware apps).

Additionally, because of its design EROS appears to require more "baggage" than the straightforward, minimally-intrusive X security extension that Eamon correctly advocated for SELinux.

When dealing with local Xclients (eg, the client and server are running in the same box), the problem for SELinux is trivial because everything can be done without the Xclient's knowledge nor involvement. Ergo, because there's no client involvement, there is nothing exposed that a malicious (whether explicitly or via an exploited buffer-overflow vulnerability) client could exploit to leverage further access into the OS.

Remote Xclients introduce a problem in that to enforce the existing compartmentalized model a secure channel is needed for the client SELinux kernel to convey the Xclient's security context to the Xserver's SELinux kernel or equivalent (and from whom the XServer obtains it), and in such a way that the Xclient has no exploitable facility by which to spoof the Xserver.

The definition of a "secure channel" here is pretty open-ended, and could range from a default policy setting, to a separate encrypted TCP stream, labeled networking, IP encapsulation / tunneling, and/or to a separate physical network. It could also combine one or more of these elements, along with others not yet envisioned. It's still very much a moving target, and is something I'm working to identify so that I can post the results here and ask for a consensus on which approach should be adopted.

Furthermore, the solution is not necessarily limited to only X, and so I'm resisting the temptation to make it X-centric.

Bill

Quoted 10 lines · Brian May

Hello,

For some reason I thought EROS was dead, but the mailing lists seem to be strong...

Anyway, here is a discussion on X-Windows, trusted windows, untrusted windows, etc, which may/may not have implications here for people interested in using SE-Linux to limit access to "dangerous" X-Windows operations.

Quoted 6 lines

http://www.eros-os.org/pipermail/eros-arch/2003-November/003849.html

(Note: I haven't read this thread in detail myself yet).

(Note2: I apologize if this is already common knowledge or totally irrelevant...)

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
In reply to Brian May

There seem to be two schools of thought on how to manage client objects inside a trusted X server.

One is to simply apply the same restrictions to all X clients, which seems to be the approach taken in the EROS post. (The concept of giving a key to each client which they can then give to other clients allowing window sharing is new to me, though. Interesting).

The other approach is to have separate policy for each X client application. This what we eventually want for SELinux. With this approach the X server has to know which process is doing what.

I don't think it would be too hard to add kernel functionality to UNIX domain sockets to find out the PID of the process talking to you. This would solve the problem for local clients. For remote clients, however, labeled networking will be needed as Bill describes (unless you assign a default, restrictive policy to all remote clients).

--Eamon

Quoted 10 lines · Brian May

Hello,

For some reason I thought EROS was dead, but the mailing lists seem to be strong...

Anyway, here is a discussion on X-Windows, trusted windows, untrusted windows, etc, which may/may not have implications here for people interested in using SE-Linux to limit access to "dangerous" X-Windows operations.

Quoted 6 lines

http://www.eros-os.org/pipermail/eros-arch/2003-November/003849.html

(Note: I haven't read this thread in detail myself yet).

(Note2: I apologize if this is already common knowledge or totally irrelevant...)

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.