|
From: Miklos S. <mi...@sz...> - 2012-10-16 15:01:37
|
Stefan Schönleitner <dev...@gm...> writes: > Hi ! > > I looked at some more code and discovered, that there is the ioctl > *unrestricted* mode that can be used for this. > > I still have to write some test code to try everything out, but is it > possible to use restricted *and* unrestricted mode in CUSE code ? No, there's no possibility to use both modes at the same time. If you are emulating an existing char device which uses weird ioctls then the only way to do that is using unrestricted mode. If you are making up new ioctls than you should always use well formed ioctls and go with restricted mode. Please never ever create new ioctls that are not well formed, and before creating a new ioctl you should consider using plain read/write or getxattr/setxattr to achieve the same functionality. Thanks, Miklos |