From 244b2c5ca8b14627e4a17755e5922221e121c771 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 09 Oct 2024 06:15:07 +0000
Subject: [PATCH] change system file
---
kernel/security/min_addr.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/kernel/security/min_addr.c b/kernel/security/min_addr.c
index 37eb525..88c9a6a 100644
--- a/kernel/security/min_addr.c
+++ b/kernel/security/min_addr.c
@@ -6,8 +6,6 @@
/* 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 */
@@ -32,7 +30,7 @@
* calls update_mmap_min_addr() so non MAP_FIXED hints get rounded properly
*/
int mmap_min_addr_handler(struct ctl_table *table, int write,
- void __user *buffer, size_t *lenp, loff_t *ppos)
+ void *buffer, size_t *lenp, loff_t *ppos)
{
int ret;
--
Gitblit v1.6.2