linux/fs
Ian Kent 2cfb882e34 autofs: mount point create should honour passed in mode
commit 1e6306652b upstream.

The autofs file system mkdir inode operation blindly sets the created
directory mode to S_IFDIR | 0555, ingoring the passed in mode, which can
cause selinux dac_override denials.

But the function also checks if the caller is the daemon (as no-one else
should be able to do anything here) so there's no point in not honouring
the passed in mode, allowing the daemon to set appropriate mode when
required.

Link: http://lkml.kernel.org/r/152361593601.8051.14014139124905996173.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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-10-21 08:45:34 +01:00
..
9p mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub 2018-10-03 04:09:51 +01:00
adfs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
affs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
afs AFS: Correctly assemble the client UUID 2014-07-29 10:14:36 -07:00
autofs4 autofs: mount point create should honour passed in mode 2018-10-21 08:45:34 +01:00
befs fs/befs: kernel-doc fixes 2014-06-06 16:08:09 -07:00
bfs write_iter variants of {__,}generic_file_aio_write() 2014-05-06 17:38:00 -04:00
btrfs btrfs: Fix possible softlock on single core machines 2018-10-21 08:45:14 +01:00
cachefiles FS-Cache: Add missing initialization of ret in cachefiles_write_page() 2015-12-18 16:06:16 +00:00
ceph ceph: always update atime/mtime/ctime for new inode 2018-10-21 08:45:26 +01:00
cifs cifs: do not allow creating sockets except with SMB1 posix exensions 2018-10-21 08:45:33 +01:00
coda coda: fix 'kernel memory exposure attempt' in fsync 2018-02-13 18:42:15 +00:00
configfs configfs: Fix race between create_link and configfs_rmdir 2017-09-15 18:30:09 +01:00
cramfs Major changes for 3.14 include support for the newly added ZERO_RANGE 2014-04-04 15:39:39 -07:00
debugfs dentry name snapshots 2017-08-26 02:14:48 +01:00
devpts pty: make sure super_block is still valid in final /dev/tty close 2016-02-25 10:34:48 +00:00
dlm dlm: avoid double-free on error path in dlm_device_{register,unregister} 2017-11-26 13:50:16 +00:00
ecryptfs eCryptfs: use after free in ecryptfs_release_messaging() 2018-02-13 18:42:16 +00:00
efivarfs efi: Make efivarfs entries immutable by default 2016-03-24 10:01:20 +00:00
efs fs/efs: convert printk(KERN_DEBUG to pr_debug 2014-06-04 16:54:21 -07:00
exofs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
exportfs move d_rcu from overlapping d_child to overlapping d_alias 2015-01-15 10:44:58 +00:00
ext2 ext2: preserve i_mode if ext2_set_acl() fails 2017-10-12 15:28:07 +01:00
ext3 ext3: preserve i_mode if ext2_set_acl() fails 2017-10-12 15:28:07 +01:00
ext4 ext4: force revalidation of directory pointer after seekdir(2) 2018-10-21 08:45:09 +01:00
f2fs mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub 2018-10-03 04:09:51 +01:00
fat fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
freevxfs Major changes for 3.14 include support for the newly added ZERO_RANGE 2014-04-04 15:39:39 -07:00
fscache FS-Cache: fix dereference of NULL user_key_payload 2018-01-01 20:51:52 +00:00
fuse mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub 2018-10-03 04:09:51 +01:00
gfs2 mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub 2018-10-03 04:09:51 +01:00
hfs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
hfsplus hfsplus: fix NULL dereference in hfsplus_lookup() 2018-09-25 23:47:32 +01:00
hostfs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
hpfs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
hppfs clean up scary strncpy(dst, src, strlen(src)) uses 2013-07-03 16:07:41 -07:00
hugetlbfs hugetlbfs: fix bug in pgoff overflow checking 2018-10-21 08:45:16 +01:00
isofs isofs: fix timestamps beyond 2027 2018-02-13 18:42:13 +00:00
jbd fs/jbd/revoke.c: replace shift loop by ilog2 2014-05-21 10:26:13 +02:00
jbd2 ext4: set h_journal if there is a failure starting a reserved handle 2018-10-21 08:45:30 +01:00
jffs2 jffs2_kill_sb(): deal with failed allocations 2018-10-21 08:45:25 +01:00
jfs jfs: Fix inconsistency between memory allocation and ea_buf->max_size 2018-09-25 23:47:25 +01:00
kernfs kernfs: fix regression in kernfs_fop_write caused by wrong type 2018-06-16 22:21:56 +01:00
lockd lockd: create NSM handles per net namespace 2015-12-13 17:48:43 +00:00
logfs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
minix fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
ncpfs staging: ncpfs: memory corruption in ncp_read_kernel() 2018-06-16 22:21:33 +01:00
nfs mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub 2018-10-03 04:09:51 +01:00
nfs_common nfs_common: Update the translation between nfsv3 acls linux posix acls 2013-02-13 06:15:14 -08:00
nfsd nfsd: auth: Fix gid sorting when rootsquash enabled 2018-03-03 15:51:59 +00:00
nilfs2 mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub 2018-10-03 04:09:51 +01:00
nls nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
notify fanotify: fix logic of events on child 2018-10-21 08:45:19 +01:00
ntfs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
ocfs2 ocfs2/dlm: wait for dlm recovery done when migrating all lock resources 2018-10-21 08:45:16 +01:00
omfs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
openpromfs fs: push sync_filesystem() down to the file system's remount_fs() 2014-03-13 10:14:33 -04:00
proc fs/proc/proc_sysctl.c: fix potential page fault while unregistering sysctl table 2018-10-21 08:45:21 +01:00
pstore pstore/ram: Use memcpy_fromio() to save old buffer 2017-02-23 03:53:59 +00:00
qnx4 fs: push sync_filesystem() down to the file system's remount_fs() 2014-03-13 10:14:33 -04:00
qnx6 fs: push sync_filesystem() down to the file system's remount_fs() 2014-03-13 10:14:33 -04:00
quota quota: Check for register_shrinker() failure. 2018-03-03 15:51:39 +00:00
ramfs fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
reiserfs fs/reiserfs/journal.c: add missing resierfs_warning() arg 2018-10-21 08:45:21 +01:00
romfs switch simple generic_file_aio_read() users to ->read_iter() 2014-05-06 17:37:55 -04:00
squashfs fs/squashfs/squashfs.h: replace pr_warning by pr_warn 2014-06-04 16:53:52 -07:00
sysfs vfs: Commit to never having exectuables on proc and sysfs. 2017-04-04 22:21:56 +01:00
sysv fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
ubifs ubifs: Check ubifs_wbuf_sync() return code 2018-10-21 08:45:12 +01:00
udf udf: Fix deadlock between writeback and udf_setsize() 2017-10-12 15:27:49 +01:00
ufs excessive checks in ufs_write_failed() and ufs_evict_inode() 2017-09-15 18:30:08 +01:00
xfs mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub 2018-10-03 04:09:51 +01:00
aio.c fs/aio: Use RCU accessors for kioctx_table->table[] 2018-06-16 22:22:40 +01:00
anon_inodes.c vfs: Allocate anon_inode_inode in anon_inode_init() 2014-03-27 09:52:54 -07:00
attr.c fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
bad_inode.c [readdir] ->readdir() is gone 2013-06-29 12:57:04 +04:00
binfmt_aout.c dump_skip(): dump_seek() replacement taking coredump_params 2013-11-09 00:16:26 -05:00
binfmt_elf.c binfmt_elf: Don't clobber passed executable's file header 2015-12-13 17:49:24 +00:00
binfmt_elf_fdpic.c elf_fdpic: fix unused variable warning 2018-02-13 18:42:07 +00:00
binfmt_em86.c file->f_op is never NULL... 2013-10-24 23:34:54 -04:00
binfmt_flat.c fs/binfmt_flat.c: make old_reloc() static 2014-06-04 16:54:21 -07:00
binfmt_misc.c binfmt_misc: add missing 'break' statement 2014-04-03 16:21:16 -07:00
binfmt_script.c exec: do not leave bprm->interp on stack 2012-12-20 17:40:19 -08:00
binfmt_som.c get rid of pt_regs argument of ->load_binary() 2012-11-28 21:53:38 -05:00
block_dev.c fs/mpage.c: fix mpage_writepage() for pages with buffers 2018-01-01 20:51:53 +00:00
buffer.c block_invalidatepage(): only release page if the full page was invalidated 2018-10-21 08:45:16 +01:00
char_dev.c Merge branch 'for-3.13/core' of git://git.kernel.dk/linux-block 2013-11-14 12:08:14 +09:00
compat.c fs: namespace: suppress 'may be used uninitialized' warnings 2017-04-04 22:21:52 +01:00
compat_binfmt_elf.c binfmt_elf: add ELF_HWCAP2 to compat auxv entries 2014-03-04 08:05:21 +00:00
compat_ioctl.c fs/compat: convert to COMPAT_SYSCALL_DEFINE with changing parameter types 2014-03-06 16:30:44 +01:00
coredump.c coredump: fix unfreezable coredumping task 2017-02-23 03:54:32 +00:00
dcache.c lock_parent() needs to recheck if dentry got __dentry_kill'ed under it 2018-06-16 22:22:24 +01:00
dcookies.c fs/compat: fix lookup_dcookie() parameter handling 2014-01-29 16:22:40 -08:00
direct-io.c direct-io: Prevent NULL pointer access in submit_page_section 2018-01-01 20:51:50 +00:00
drop_caches.c fs: convert use of typedef ctl_table to struct ctl_table 2014-06-06 16:08:16 -07:00
eventfd.c eventfd_ctx_fdget(): use fdget() instead of fget() 2014-01-25 03:13:04 -05:00
eventpoll.c epoll: fix race between ep_poll_callback(POLLFREE) and ep_free()/ep_remove() 2017-11-11 13:33:36 +00:00
exec.c exec: Limit arg stack to at most 75% of _STK_LIM 2018-10-03 04:10:08 +01:00
fcntl.c fcntl: Don't use ambiguous SIG_POLL si_codes 2017-11-26 13:50:14 +00:00
fhandle.c fs/coredump: prevent fsuid=0 dumps into user-controlled directories 2016-05-01 00:06:04 +02:00
file.c fs/file.c: don't open-code kvfree() 2014-05-06 17:31:10 -04:00
file_table.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-06-12 10:30:18 -07:00
filesystems.c sys_sysfs: Add CONFIG_SYSFS_SYSCALL 2014-04-03 16:21:05 -07:00
fs-writeback.c writeback: fix a subtle race condition in I_DIRTY clearing 2015-01-05 13:48:34 +00:00
fs_struct.c seqcount: Add lockdep functionality to seqcount/seqlock structures 2013-11-06 12:40:26 +01:00
inode.c rmap: drop support of non-linear mappings 2018-10-03 04:09:51 +01:00
internal.h fs: namespace: suppress 'may be used uninitialized' warnings 2017-04-04 22:21:52 +01:00
ioctl.c file->f_op is never NULL... 2013-10-24 23:34:54 -04:00
Kconfig kernfs: add CONFIG_KERNFS 2014-02-07 16:08:57 -08:00
Kconfig.binfmt fs: make binfmt support for #! scripts modular and removable 2013-04-30 17:04:04 -07:00
libfs.c fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
locks.c locks: fix unlock when fcntl_setlk races with a close 2016-02-02 19:09:20 +00:00
Makefile block: move ioprio.c from fs/ to block/ 2014-05-19 11:02:18 -06:00
mbcache.c fs/mbcache: replace __builtin_log2() with ilog2() 2014-06-25 22:08:29 -04:00
mount.h mnt: Add a per mount namespace limit on the number of mounts 2017-02-26 20:01:48 +00:00
mpage.c fs/mpage.c: fix mpage_writepage() for pages with buffers 2018-01-01 20:51:53 +00:00
namei.c fs: Teach path_connected to handle nfs filesystems with multiple roots. 2018-06-16 22:22:41 +01:00
namespace.c Don't leak MNT_INTERNAL away from internal mounts 2018-10-21 08:45:33 +01:00
no-block.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
open.c vfs: Commit to never having exectuables on proc and sysfs. 2017-04-04 22:21:56 +01:00
pipe.c pipe: read buffer limits atomically 2018-06-16 22:22:10 +01:00
pnode.c mnt: Add a per mount namespace limit on the number of mounts 2017-02-26 20:01:48 +00:00
pnode.h mnt: Add a per mount namespace limit on the number of mounts 2017-02-26 20:01:48 +00:00
posix_acl.c tmpfs: clear S_ISGID when setting posix ACLs 2017-02-26 20:01:49 +00:00
proc_namespace.c vfs: show_vfsstat: do not ignore errors from show_devname method 2016-05-01 00:06:01 +02:00
read_write.c vfs: Return -ENXIO for negative SEEK_HOLE / SEEK_DATA offsets 2018-01-01 20:51:42 +00:00
readdir.c fanotify: create FAN_ACCESS event for readdir 2014-06-04 16:53:52 -07:00
select.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-11-13 15:34:18 +09:00
seq_file.c fs/seq_file: fix out-of-bounds read 2016-11-20 01:17:18 +00:00
signalfd.c signalfd: fix information leak in signalfd_copyinfo 2015-09-03 16:43:54 +01:00
splice.c vfs: fix uninitialized flags in splice_to_pipe() 2017-03-16 02:27:14 +00:00
stack.c fs: reduce the use of module.h wherever possible 2012-02-28 19:31:58 -05:00
stat.c ufs: restore maintaining ->i_blocks 2017-09-15 18:30:08 +01:00
statfs.c vfs: allow O_PATH file descriptors for fstatfs() 2013-10-12 13:12:31 -07:00
super.c fs/super.c: fix race between freeze_super() and thaw_super() 2017-02-23 03:54:13 +00:00
sync.c Revert "writeback: do not sync data dirtied after sync start" 2014-02-22 02:02:28 +01:00
timerfd.c timerfd: Protect the might cancel mechanism proper 2017-08-26 02:14:49 +01:00
utimes.c fs: Give dentry to inode_change_ok() instead of inode 2017-02-23 03:53:52 +00:00
xattr.c lsm: fix smack_inode_removexattr and xattr_getsecurity memleak 2018-01-01 20:51:48 +00:00