From 81d71f69e5b9384dd69f9186c18e4dff12aff540 Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 8 Nov 2022 19:17:58 +0000 Subject: [PATCH] allow the KERN_AUTOCONF_SERIAL sysctl in pledge'd processes ok deraadt@ --- sys/kern/kern_pledge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index 86a7780e82d..e78f941cb77 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.296 2022/10/07 14:59:39 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.297 2022/11/08 19:17:58 robert Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -964,6 +964,7 @@ pledge_sysctl(struct proc *p, int miblen, int *mib, void *new) case KERN_NGROUPS: /* kern.ngroups */ case KERN_SYSVSHM: /* kern.sysvshm */ case KERN_POSIX1: /* kern.posix1version */ + case KERN_AUTOCONF_SERIAL: /* kern.autoconf_serial */ return (0); } break; -- 2.20.1