From e941a5081c2056a5b8c99c41bfc36c227569b17e Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Tue, 15 Oct 2019 16:38:32 -0700 Subject: [PATCH] ANDROID: GKI: security: Add mmap export symbols for modules Bug: 141876853 Test: compile Change-Id: I6a5f5c2b71f3450a86c9ab20239df51519abf649 Signed-off-by: Will McVicker (cherry picked from commit 3758a400cf70e5389267bd27b0bb86761b6c3241) --- security/min_addr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/min_addr.c b/security/min_addr.c index 94d2b0cf0e7b..37eb525ac172 100644 --- a/security/min_addr.c +++ b/security/min_addr.c @@ -6,6 +6,8 @@ /* amount of vm to protect from userspace access by both DAC and the LSM*/ unsigned long mmap_min_addr; +EXPORT_SYMBOL_GPL(mmap_min_addr); + /* amount of vm to protect from userspace using CAP_SYS_RAWIO (DAC) */ unsigned long dac_mmap_min_addr = CONFIG_DEFAULT_MMAP_MIN_ADDR; /* amount of vm to protect from userspace using the LSM = CONFIG_LSM_MMAP_MIN_ADDR */