From kde-devel Wed Jan 06 14:48:28 1999 From: Lars Doelle Date: Wed, 06 Jan 1999 14:48:28 +0000 To: kde-devel Subject: Re: Konsole - a security vs. portability problem X-MARC-Message: https://marc.info/?l=kde-devel&m=91563429924822 Stephan Kulow wrote: > Lars Doelle wrote: > > > > In the moment, konsole offers a security hole that allows local users to > > hijack/monitor the (root) sessions. The regular method to protect > > against this, is to do a chmod/chown on one of the devices within the > > emulation. Doing so would require konsole to be run root/suid, which > > raises more severe problems then it solves. Because i strongly dislike > > root/suid programs for many reasons, I've digged out an ioctl for Linux > > which does as desired, basically for the price of the solution not being > > portable to other UNIXes, eventually. > > > > Comments, anyone? > > > > Lars > > > > ------------------------------------------------------------------------ > > --- TEShell.C.ori Mon Dec 21 01:16:00 1998 > > +++ TEShell.C Sun Dec 27 17:18:35 1998 > > @@ -35,6 +35,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include "../../config.h" > > That doesn't even run on all Linux variants! I don't think this is a > solution. Naa, wouldn't be that bad. Don't know how the requiered define made it into asm-i386... Having had a look into the kernel sources before, i belief that this feature is available on every Linux port. > A security problem is a security problem even if you fix it for one > variant > of one Unix. Sure, but i do not like to ignore the local particularities nor did we evere decide to code for every UNIX. Knowing that konsole does well on at least FreeBSD, HPUX and Solaris, is a nice property, though. For Linux, this is best solution i know of. It really adresses all the issues. The problem is how to cope with other UNIXes. I'm especially concerned if this way is portable to FreeBSD. Please see another posting for problems and a possible way to cope with them in other UNIXes. > > Greetings, Stephan > > -- > As long as Linux remains a religion of freeware fanatics, > Microsoft have nothing to worry about. > By Michael Surkan, PC Week Online