[fpc-devel] Linux kernel behaviour change regarding keyboard

Marco van de Voort marcov at stack.nl
Thu Jul 19 00:01:28 CEST 2007


> Op Wed, 18 Jul 2007, schreef Michael Van Canneyt:
> > Under the assumption a setuid root program is the only possible option:
> > 
> > The safest - and in my opinion only correct - way is to write a small setuid 
> > root program which sets the proper TTY stuff, and then executes the IDE as 
> > the normal user.
> > 
> > The program can easily be audited, as it'll be maybe 50 lines of code...
> 
> If the user switches VT, the keyboard needs to be unpatched. So this 
> approach won't fully work. However, a solution that can work is to make 
> the keyboard unit execute a setuid root helper to which it communicates 
> through a pipe.

This would introduce quite some linux specific code on a lot of already
complicated points to the IDE.



More information about the fpc-devel mailing list