[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <227117.1582124888@warthog.procyon.org.uk>
Date: Wed, 19 Feb 2020 15:08:08 +0000
From: David Howells <dhowells@...hat.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: dhowells@...hat.com, Al Viro <viro@...iv.linux.org.uk>,
coda@...cmu.edu, linux-afs@...r.kernel.org,
linux-cifs@...r.kernel.org,
"open list:NFS, SUNRPC, AND..." <linux-nfs@...r.kernel.org>,
linux-btrfs <linux-btrfs@...r.kernel.org>,
Linux FS Devel <linux-fsdevel@...r.kernel.org>,
"torvalds@...ux-foundation.org" <torvalds@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH] vfs: syscalls: Add create_automount() and remove_automount()
Oops... I've just realised that the function names in the subject line don't
match those in the patch.
Geert Uytterhoeven <geert@...ux-m68k.org> wrote:
> The above nicely explains what the patch does.
> However, unless I'm missing something, this fails to explain the "why"
> (except for the vague "[...] is something that AFS needs ...".
I'm not allowed to implement pioctl() for Linux, so I have to find some other
'structured' (to quote Linus) way to implement the extra functions for the
in-kernel AFS client.
OpenAFS and maybe Coda, for example, create a magic file, I think, and then
ioctl is done on that - ie. direct pioctl emulation. All the path lookup and
security is done inside the filesystem.
Another way to do this, at least for these two operations, would be to issue
an ioctl on the parent directory. This requires you to be able to open said
directory in order to perform the ioctl on it - which requires you to have
read permission, something not required to alter a directory. This also
pushes the path lookup and security into the filesystem
So I'm proposing this way. It's something that can be used by other
filesystems too, if they support it. Coda and OpenAFS, for example, might be
able to make use of it as they want to be able to do the same sort of things.
David
Powered by blists - more mailing lists