[Y-devel] comment: security

Rupert Mazzucco maz at ap.univie.ac.at
Wed Feb 25 15:49:08 GMT 2004


Hi everybody,

I just finished reading Marks nice thesis and would like to comment
on some points.  Before I do that, let me congratulate you all on the
effort.  This project is addressing a lot of annoying problems I always
had as user of X, and I really hope it will succeed in creating a
replacement.  I'll try to contribute a bit, although I probably don't
qualify as a Real Programmer.  Ok, on to the comments:

- 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.  Applications need to find a
means to connect to the machine before they can connect to the Y server.
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.

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!)

Ok, that was only one comment.  But it's already long, so I'll put
the others in separate mails.

Regards,
Rupert




More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved