summaryrefslogtreecommitdiff
path: root/sys/kern/kern_pledge.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_pledge.c')
-rw-r--r--sys/kern/kern_pledge.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 00ed0b3be67..60b4b1ef7ac 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.243 2018/09/13 07:49:33 mestre Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.244 2018/11/06 07:49:38 otto Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -971,6 +971,9 @@ pledge_sysctl(struct proc *p, int miblen, int *mib, void *new)
if (miblen == 2 && /* vm.loadavg / getloadavg(3) */
mib[0] == CTL_VM && mib[1] == VM_LOADAVG)
return (0);
+ if (miblen == 2 && /* vm.malloc_conf */
+ mib[0] == CTL_VM && mib[1] == VM_MALLOC_CONF)
+ return (0);
#ifdef CPU_SSE
if (miblen == 2 && /* i386 libm tests for SSE */
mib[0] == CTL_MACHDEP && mib[1] == CPU_SSE)