summaryrefslogtreecommitdiff
path: root/include/linux/seccomp.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2015-06-16 01:29:16 +0300
committerKees Cook <keescook@chromium.org>2015-07-15 21:52:54 +0300
commit221272f97ca528048a577a3ff23d7774286ca5fd (patch)
tree78c221163aa09492b6cc2c90943734e5fcc1b9ba /include/linux/seccomp.h
parent13c4a90119d28cfcb6b5bdd820c233b86c2b0237 (diff)
downloadlinux-221272f97ca528048a577a3ff23d7774286ca5fd.tar.xz
seccomp: swap hard-coded zeros to defined name
For clarity, if CONFIG_SECCOMP isn't defined, seccomp_mode() is returning "disabled". This makes that more clear, along with another 0-use, and results in no operational change. Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/seccomp.h')
-rw-r--r--include/linux/seccomp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index a19ddacdac30..f4265039a94c 100644
--- a/include/linux/seccomp.h
+++ b/include/linux/seccomp.h
@@ -78,7 +78,7 @@ static inline long prctl_set_seccomp(unsigned long arg2, char __user *arg3)
static inline int seccomp_mode(struct seccomp *s)
{
- return 0;
+ return SECCOMP_MODE_DISABLED;
}
#endif /* CONFIG_SECCOMP */