From 848974e3249095ddee7f76eb424fb5ef2d670440 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 26 Jun 2022 06:11:49 +0000 Subject: [PATCH] allow HW_USERMEM64 in sysctl pledge chromium loads vulkan when going to chrome://gpu anv, the Intel vulkan driver in Mesa uses HW_USERMEM64 ok sthen@ 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 b269ba98805..4939a6e8bb2 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.281 2022/03/25 17:40:59 robert Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.282 2022/06/26 06:11:49 jsg Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -977,6 +977,7 @@ pledge_sysctl(struct proc *p, int miblen, int *mib, void *new) case HW_PHYSMEM64: /* hw.physmem */ case HW_NCPU: /* hw.ncpu */ case HW_NCPUONLINE: /* hw.ncpuonline */ + case HW_USERMEM64: /* hw.usermem */ return (0); } break; -- 2.20.1