[fpc-devel] Linux kernel behaviour change regardingkeyboard
XHajT03 at mbox.vol.cz
Thu Jul 19 12:16:03 CEST 2007
Marco van de Voort wrote:
>> Op Wed, 18 Jul 2007, schreef Michael Van Canneyt:
>> > Under the assumption a setuid root program is the only possible
>> > The safest - and in my opinion only correct - way is to write a small
>> > 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
>> 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.
I'm not so sure - refreshing the keyboard and video status after coming
back from a spawned program or shell should be provided as a standard
functionality within InitKeyboard and InitVideo calls, shouldn't it?
More information about the fpc-devel