If you use the user-mode of parapin, you can drop root privileges as
soon as you call pin_init_user(). (suid-root is only needed long
enough to gain access to the hardware by calling ioperm()). If you do
this near the beginning the program will probably be relatively safe.
Regards,
Jer
Jan Prikryl writes:
>I have already thought about using your code in case the ppdev
>way fails (which it seems to). I just hoped I would get along without
>actually forcing our users (who are unfortunatelly rather
>unexperienced with linux) to compile non-standard kernel modules; and
>I would like to avoid making the program setuid.
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Thu Jul 27 2000 - 02:35:38 EDT