From: deraadt Date: Tue, 2 Aug 2022 11:04:25 +0000 (+0000) Subject: some ports bootstraps, and go internals, need a bit more time to adapt X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=92f40d6304fc5318ac4ca4056e481ad58132e9b9;p=openbsd some ports bootstraps, and go internals, need a bit more time to adapt to the padded syscalls going away. --- 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".