path: root/security/tomoyo
diff options
authorDavid Howells <>2018-11-01 23:07:23 +0000
committerDavid Howells <>2018-12-20 16:32:56 +0000
commite262e32d6bde0f77fb0c95d977482fc872c51996 (patch)
treee97542fe8392bb3c31459ac3163b0c7111ae34c6 /security/tomoyo
parent26cb5a328c6b2bda9e859307ce4cfc60df3a2c28 (diff)
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 <> Signed-off-by: Al Viro <> Reviewed-by: David Howells <>
Diffstat (limited to 'security/tomoyo')
1 files changed, 1 insertions, 0 deletions
diff --git a/security/tomoyo/mount.c b/security/tomoyo/mount.c
index 807fd91dbb54..7dc7f59b7dde 100644
--- a/security/tomoyo/mount.c
+++ b/security/tomoyo/mount.c
@@ -6,6 +6,7 @@
#include <linux/slab.h>
+#include <uapi/linux/mount.h>
#include "common.h"
/* String table for special mount operations. */