linux-IllusionX/fs/autofs
Ian Kent d4d79b8195 autofs: fix directory and symlink access
Depending on how it is configured the autofs user space daemon can leave
in use mounts mounted at exit and re-connect to them at start up.  But for
this to work best the state of the autofs file system needs to be left
intact over the restart.

Also, at system shutdown, mounts in an autofs file system might be
umounted exposing a mount point trigger for which subsequent access can
lead to a hang.  So recent versions of automount(8) now does its best to
set autofs file system mounts catatonic at shutdown.

When autofs file system mounts are catatonic it's currently possible to
create and remove directories and symlinks which can be a problem at
restart, as described above.

So return EACCES in the directory, symlink and unlink methods if the
autofs file system is catatonic.

Link: http://lkml.kernel.org/r/152902119090.4144.9561910674530214291.stgit@pluto.themaw.net
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-08-22 10:52:49 -07:00
..
autofs_i.h autofs: fix autofs_sbi() does not check super block type 2018-08-22 10:52:43 -07:00
dev-ioctl.c autofs: fix slab out of bounds read in getname_kernel() 2018-07-14 11:11:09 -07:00
expire.c autofs: copy autofs4 to autofs 2018-06-07 17:34:39 -07:00
init.c autofs: rename 'autofs' module back to 'autofs4' 2018-07-05 11:35:04 -07:00
inode.c autofs: fix autofs_sbi() does not check super block type 2018-08-22 10:52:43 -07:00
Kconfig autofs: Fix typo s/thenew new/the new/ in AUTOFS4_FS description 2018-06-12 12:31:19 -07:00
Makefile autofs: rename 'autofs' module back to 'autofs4' 2018-07-05 11:35:04 -07:00
root.c autofs: fix directory and symlink access 2018-08-22 10:52:49 -07:00
symlink.c autofs: copy autofs4 to autofs 2018-06-07 17:34:39 -07:00
waitq.c autofs: small cleanup in autofs_getpath() 2018-06-07 17:34:40 -07:00