some ports bootstraps, and go internals, need a bit more time to adapt
authorderaadt <deraadt@openbsd.org>
Tue, 2 Aug 2022 11:04:25 +0000 (11:04 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 2 Aug 2022 11:04:25 +0000 (11:04 +0000)
to the padded syscalls going away.

sys/kern/kern_pledge.c

index a9517c1..d3bbe22 100644 (file)
@@ -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".