[Devel] [RFC 32/54] sysctl: fix CONFIG_VE=n build
Eva Kurchatova
eva.kurchatova at virtuozzo.com
Wed Apr 29 22:58:32 MSK 2026
Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>
---
kernel/sysctl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index ac4cb49e4b7e..42a7979bc14c 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1973,7 +1973,11 @@ static struct ctl_table kern_table[] = {
#if defined(CONFIG_MMU)
{
.procname = "randomize_va_space",
+#ifdef CONFIG_VE
.data = &ve0._randomize_va_space,
+#else
+ .data = &randomize_va_space,
+#endif
.maxlen = sizeof(int),
.mode = 0644 | S_ISVTX,
.proc_handler = proc_dointvec_virtual,
--
2.54.0
More information about the Devel
mailing list