Re: fcntl(2) and other file systems like XFS

From: Jamie Lokier (lfs@tantalophile.demon.co.uk)
Date: Thu Mar 16 2000 - 09:31:46 EST


David S. Miller wrote:
> From: Jim Mostek <mostek@sgi.com>
> Date: Wed, 15 Mar 2000 13:12:32 -0600 (CST)
>
> OK. I guess we will use the ioctl interface. Seems ugly, but it
> works. We will need to deal with the issue of apps invoking ioctls
> (thinking they are using a device) and potentially hitting these
> file operations.
>
> Unless they try to pass an EXT2/XFS/etc. ioctl cmd they will
> get ENOTTY, I don't think there is any issue.

It's unlikely but possible. Think what happens when someone types
`framegrab < /tmp/video0' instead of `framegrab < /dev/video0'.

It does ext2 ioctls on a file in /tmp.

Ioctl numbers between different drivers aren't unique, unfortunately.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:18 EST