[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m163pdb8qx.fsf@frodo.ebiederm.org>
Date: Wed, 03 Sep 2008 07:32:22 -0700
From: ebiederm@...ssion.com (Eric W. Biederman)
To: Tejun Heo <tj@...nel.org>
Cc: Miklos Szeredi <miklos@...redi.hu>, serue@...ibm.com,
greg@...ah.com, fuse-devel@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/7] FUSE: implement ioctl support
Tejun Heo <tj@...nel.org> writes:
> Hello,
>
> Miklos Szeredi wrote:
>>> So why not just only support well defined ioctls and serialize them
>>> in the kernel and allow the receiving process to deserialize them?
>>
>> I'd like the idea of limiting to well behaved ioctls, but Tejun
>> doesn't...
>
> I'm not dead against it. I'm just a bit more inclined to my
> implementation (naturally), which means if you're dead against the
> current implementation, supporting only the proper ones definitely is
> an option, but comparing the pros and cons, I'm not quite convinced
> yet.
I really think that if an ioctl is passing through the kernel we
should know how to parse and understand it's options. Otherwise
we won't have the option of doing backwards compatibility when something
changes, like we can with the 32->64bit ioctls.
That seems to imply that you need a stub in the kernel to handle
really weird ioctls.
The upside is that because you know what the inputs and outputs are
and where the inputs and output are you can support that ioctl well
into the future, and you can do it with an unprivileged file
system server.
Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists