diff options
author | Kees Cook <keescook@chromium.org> | 2022-02-10 03:32:24 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-09-08 02:37:27 +0300 |
commit | ba38961a069b0d8d03b53218a6c29d737577d448 (patch) | |
tree | 6a3785f5b5b67135754d15eeb151bd7ac9c732ea /arch/um/os-Linux/user_syms.c | |
parent | 325bf6d84bad3fc641b94fad6e69c70e960fdf2e (diff) | |
download | linux-ba38961a069b0d8d03b53218a6c29d737577d448.tar.xz |
um: Enable FORTIFY_SOURCE
Enable FORTIFY_SOURCE so running Kunit tests can test fortified
functions.
Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: David Gow <davidgow@google.com>
Link: https://lore.kernel.org/r/20220210003224.773957-1-keescook@chromium.org
Diffstat (limited to 'arch/um/os-Linux/user_syms.c')
-rw-r--r-- | arch/um/os-Linux/user_syms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/os-Linux/user_syms.c b/arch/um/os-Linux/user_syms.c index cb667c9225ab..fd575ecbcaec 100644 --- a/arch/um/os-Linux/user_syms.c +++ b/arch/um/os-Linux/user_syms.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#define __NO_FORTIFY #include <linux/types.h> #include <linux/module.h> |