From 92f40d6304fc5318ac4ca4056e481ad58132e9b9 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 2 Aug 2022 11:04:25 +0000 Subject: [PATCH] some ports bootstraps, and go internals, need a bit more time to adapt to the padded syscalls going away. --- sys/kern/kern_pledge.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index a9517c18841..d3bbe227cf6 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.290 2022/07/18 18:02:27 jca Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.291 2022/08/02 11:04:25 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -175,6 +175,18 @@ const uint64_t pledge_syscalls[SYS_MAXSYSCALL] = { [SYS_lseek] = PLEDGE_STDIO, [SYS_fpathconf] = PLEDGE_STDIO, +#if 1 + [SYS_pad_mquery] = PLEDGE_STDIO, + [SYS_pad_mmap] = PLEDGE_STDIO, + [SYS_pad_pread] = PLEDGE_STDIO, + [SYS_pad_preadv] = PLEDGE_STDIO, + [SYS_pad_pwrite] = PLEDGE_STDIO, + [SYS_pad_pwritev] = PLEDGE_STDIO, + [SYS_pad_ftruncate] = PLEDGE_STDIO, + [SYS_pad_lseek] = PLEDGE_STDIO, + [SYS_pad_truncate] = PLEDGE_WPATH, +#endif + /* * Address selection required a network pledge ("inet", * "unix", "dns". -- 2.20.1