summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpascal <pascal@openbsd.org>2015-11-16 17:41:45 +0000
committerpascal <pascal@openbsd.org>2015-11-16 17:41:45 +0000
commitbe1415e8336e1a523cc788f137fd115af1045fcb (patch)
treed76cce9faa40c9ddb85540f3a2ddd0b3deb24dba
parentfix log messages, from jan stary (diff)
downloadwireguard-openbsd-be1415e8336e1a523cc788f137fd115af1045fcb.tar.xz
wireguard-openbsd-be1415e8336e1a523cc788f137fd115af1045fcb.zip
brk/sbrk's use case is way too narrow to be a default stdio pledge.
Since this only affects base gcc and the ports most in need of PCHs are compiled with ports compilers anyway, let's see what happens if we break it. discussed with and ok deraadt@
-rw-r--r--sys/kern/kern_pledge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 44a8f90d0cf..dcc264362c2 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.109 2015/11/14 22:23:22 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.110 2015/11/16 17:41:45 pascal Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -114,7 +114,6 @@ const u_int pledge_syscalls[SYS_MAXSYSCALL] = {
[SYS_mprotect] = PLEDGE_STDIO,
[SYS_mquery] = PLEDGE_STDIO,
[SYS_munmap] = PLEDGE_STDIO,
- [SYS_break] = PLEDGE_STDIO,
[SYS_umask] = PLEDGE_STDIO,