summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-08-02 11:04:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-08-02 11:04:26 +0000
commite525880fe48bba107f7a0cc0fa35148a9a5ce95d (patch)
tree5c2cfe28e12700596d0605970f7b439c0e3990d2 /sys/kern
parent66a93a9aa93d9eef240ee30226468f10151e6f07 (diff)
some ports bootstraps, and go internals, need a bit more time to adapt
to the padded syscalls going away.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_pledge.c14
1 files changed, 13 insertions, 1 deletions
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 <nicm@openbsd.org>
@@ -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".