]> git.baikalelectronics.ru Git - kernel.git/commit
autofs: use inode permission method for write access
authorIan Kent <raven@themaw.net>
Fri, 8 Jul 2022 01:43:01 +0000 (09:43 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:31:42 +0000 (17:31 -0700)
commitcf4273b342c01c17b5a360dd919178ce0f28b33b
tree643456b5dd2f667795666be4f50ca0032f7045b8
parentbe5566302fd724c38a28a41e6071273fe956e3a0
autofs: use inode permission method for write access

Patch series "autofs: misc patches".

This series contains several patches that resulted mostly from comments
made by Al Viro (quite a long time ago now).

This patch (of 5):

Eliminate some code duplication from mkdir/rmdir/symlink/unlink methods by
using the inode operation .permission().

Link: https://lkml.kernel.org/r/165724445154.30914.10970894936827635879.stgit@donald.themaw.net
Link: https://lkml.kernel.org/r/165724458096.30914.13499431569758625806.stgit@donald.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/autofs/root.c