Re: [PARPORT] How parport can perform inp/outp ?

From: Tim Waugh (twaugh@redhat.com)
Date: Wed Mar 08 2000 - 06:48:19 EST

  • Next message: Erik Inge Bolsų: "[PARPORT] New queueing code"

    On Wed, 8 Mar 2000, DAANEN Vincent wrote:

    > I'm trying to write my own modules to access to a parallel device I
    > did. I look in parport source but can't find any reference to ioperm
    > whereas I found lots of references to inp, outp. Does using parport
    > needs root permissions? If not, why can parport access without ioperm
    > nor iopl ?

    The parport code is in-kernel. It's nothing like a normal user process,
    really.

    Tim.
    */

    > Supposing I create a device /dev/mydevice and loaded mydevice.o
    > module, does a simply chmod 666 /dev/mydevice will give me permissions
    > to read and write from external world via the parallel port ?

    Unless your driver does specific checks for uid==0, yes.

    Tim.
    */

    -- 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 : Wed Mar 08 2000 - 06:47:16 EST