From: David Howells <dhowells@redhat.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: dhowells@redhat.com, Al Viro <viro@zeniv.linux.org.uk>,
coda@cs.cmu.edu, linux-afs@vger.kernel.org,
linux-cifs@vger.kernel.org, "open list:NFS, SUNRPC,
AND..." <linux-nfs@vger.kernel.org>,
linux-btrfs <linux-btrfs@vger.kernel.org>,
Linux FS Devel <linux-fsdevel@vger.kernel.org>,
"torvalds@linux-foundation.org" <torvalds@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH] vfs: syscalls: Add create_automount() and remove_automount()
Date: Wed, 19 Feb 2020 15:08:08 +0000 [thread overview]
Message-ID: <227117.1582124888@warthog.procyon.org.uk> (raw)
In-Reply-To: <CAMuHMdV+H0p3qFV=gDz0dssXVhzd+L_eEn6s0jzrU5M79_50HQ@mail.gmail.com>
Oops... I've just realised that the function names in the subject line don't
match those in the patch.
Geert Uytterhoeven <geert@linux-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
next prev parent reply other threads:[~2020-02-19 15:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-19 14:35 [RFC PATCH] vfs: syscalls: Add create_automount() and remove_automount() David Howells
2020-02-19 14:43 ` Geert Uytterhoeven
2020-02-19 15:08 ` David Howells [this message]
2020-02-19 17:00 ` Linus Torvalds
2020-02-19 17:55 ` David Howells
2020-02-19 18:55 ` Linus Torvalds
2020-02-19 19:07 ` Linus Torvalds
2020-02-19 19:26 ` Linus Torvalds
2020-02-19 19:58 ` David Howells
2020-02-19 20:12 ` Linus Torvalds
2020-02-19 21:39 ` David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=227117.1582124888@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=coda@cs.cmu.edu \
--cc=geert@linux-m68k.org \
--cc=linux-afs@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox