From mboxrd@z Thu Jan 1 00:00:00 1970 From: hareeshg@codeaurora.org (Hareesh Gundu) Date: Tue, 5 Dec 2017 16:28:57 +0530 Subject: [PATCH] security: Export few symbols referred by other modules Message-ID: <1512471537-23865-1-git-send-email-hareeshg@codeaurora.org> To: linux-security-module@vger.kernel.org List-Id: linux-security-module.vger.kernel.org Export mmap_min_addr and security_mmap_addr() to allow kernel modules to use them. Signed-off-by: Hareesh Gundu --- security/min_addr.c | 1 + security/security.c | 1 + 2 files changed, 2 insertions(+) diff --git a/security/min_addr.c b/security/min_addr.c index 94d2b0c..4653711 100644 --- a/security/min_addr.c +++ b/security/min_addr.c @@ -6,6 +6,7 @@ /* amount of vm to protect from userspace access by both DAC and the LSM*/ unsigned long mmap_min_addr; +EXPORT_SYMBOL(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 */ diff --git a/security/security.c b/security/security.c index 1cd8526..27874a3 100644 --- a/security/security.c +++ b/security/security.c @@ -931,6 +931,7 @@ int security_mmap_addr(unsigned long addr) { return call_int_hook(mmap_addr, 0, addr); } +EXPORT_SYMBOL(security_mmap_addr); int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html