[Y-devel] comment: security
JP Dinger jpd at dsb.tudelft.nl
Wed Feb 25 21:16:07 GMT 2004
On Wed, Feb 25, 2004 at 04:49:08PM +0100, Rupert Mazzucco wrote:
> - Security: Here's a simple solution: Disallow tcp connections
> altogether, ie only PF_LOCAL sockets, and use the "unix credentials"
> feature of this socket type to accept only connections by processes
> that have the same UID as the Y server.
>
> Advantages: Shifts the whole security issue out of the Y server domain,
> which means transfer responsability to somebody else, which is always
> nice and allows focus on the real issues.
Maybe a bit too simplistic, as network connections are higly useful
now and then. Then again, for the time being it'll do.
> Applications need to find a
> means to connect to the machine before they can connect to the Y server.
This'll complicate the actual use of remote connections. Which may or may
not be a good thing. I kinda like the idea of a redirecting application
though. OTOH it might be more desirable to have it in a module somewhere
near the server than in an external program.
> Authentication will be handled by this "transport layer". This could be
> portforwarding ssh or something OpenSSL-based, ie robust widespread
> solutions already exist. No need to reinvent the wheel. As an added
> bonus, we get strong encryption if desired.
There are a few libraries that do this kind of stuff, indeed.
> Disadvantage: Portability problems. The mechanism exists only for Linux
> (see man 7 unix, example in Secure-Programs-HOWTO 3.4.) But the manpage
> says a similar mechanism exists in "BSD derivates" (can't check that), so
> maybe it would be worthwhile after all. (We are talking about three
> or four lines of code!)
FreeBSD 5.* promises funky acls on almost everything, I heard. ICBW of
course. As to the checking, feel free to dig around in the manpages cgi
on the freebsd.org website, it features a lot more than just the freebsd
manpages for a bunch of versions.
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved