diff options
author | David Howells <dhowells@redhat.com> | 2018-11-01 19:07:23 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-12-20 11:32:56 -0500 |
commit | e262e32d6bde0f77fb0c95d977482fc872c51996 (patch) | |
tree | e97542fe8392bb3c31459ac3163b0c7111ae34c6 /security/selinux/hooks.c | |
parent | 26cb5a328c6b2bda9e859307ce4cfc60df3a2c28 (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 <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 7ce683259357..f695438d985c 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -88,6 +88,7 @@ | |||
88 | #include <linux/msg.h> | 88 | #include <linux/msg.h> |
89 | #include <linux/shm.h> | 89 | #include <linux/shm.h> |
90 | #include <linux/bpf.h> | 90 | #include <linux/bpf.h> |
91 | #include <uapi/linux/mount.h> | ||
91 | 92 | ||
92 | #include "avc.h" | 93 | #include "avc.h" |
93 | #include "objsec.h" | 94 | #include "objsec.h" |