]> git.ipfire.org Git - thirdparty/linux.git/commit - init/do_mounts_initrd.c
vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled
authorDavid Howells <dhowells@redhat.com>
Thu, 1 Nov 2018 23:07:23 +0000 (23:07 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 20 Dec 2018 16:32:56 +0000 (16:32 +0000)
commite262e32d6bde0f77fb0c95d977482fc872c51996
treee97542fe8392bb3c31459ac3163b0c7111ae34c6
parent26cb5a328c6b2bda9e859307ce4cfc60df3a2c28
vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled

Only the mount namespace code that implements mount(2) should be using the
MS_* flags.  Suppress them inside the kernel unless uapi/linux/mount.h is
included.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: David Howells <dhowells@redhat.com>
18 files changed:
arch/arc/kernel/setup.c
arch/arm/kernel/atags_parse.c
arch/sh/kernel/setup.c
arch/sparc/kernel/setup_32.c
arch/sparc/kernel/setup_64.c
arch/x86/kernel/setup.c
drivers/base/devtmpfs.c
fs/namespace.c
fs/pnode.c
fs/super.c
include/uapi/linux/fs.h
include/uapi/linux/mount.h [new file with mode: 0644]
init/do_mounts.c
init/do_mounts_initrd.c
security/apparmor/lsm.c
security/apparmor/mount.c
security/selinux/hooks.c
security/tomoyo/mount.c