summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Stumpf <pascal@cvs.openbsd.org>2015-11-16 17:41:46 +0000
committerPascal Stumpf <pascal@cvs.openbsd.org>2015-11-16 17:41:46 +0000
commit81c504a1cce80f46da360944a565f673b018fbfa (patch)
tree1b444b7313dfa2a064ca8633c0b0df52fe623dba
parentbb1056f6e504d155f14e90fcef0ffe03b3d75cb4 (diff)
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,