artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b86fce8
)
After spawning, the parent can pledge "stdio rpath wpath cpath"
author
deraadt
<deraadt@openbsd.org>
Thu, 15 Oct 2015 23:06:46 +0000
(23:06 +0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 15 Oct 2015 23:06:46 +0000
(23:06 +0000)
from rob pierce
usr.bin/sdiff/sdiff.c
patch
|
blob
|
history
diff --git
a/usr.bin/sdiff/sdiff.c
b/usr.bin/sdiff/sdiff.c
index
a4eca11
..
07eb5c3
100644
(file)
--- a/
usr.bin/sdiff/sdiff.c
+++ b/
usr.bin/sdiff/sdiff.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sdiff.c,v 1.3
3 2015/10/10 19:03:08
deraadt Exp $ */
+/* $OpenBSD: sdiff.c,v 1.3
4 2015/10/15 23:06:46
deraadt Exp $ */
/*
* Written by Raymond Lai <ray@cyth.net>.
@@
-314,6
+314,9
@@
main(int argc, char **argv)
err(2, "could not fork");
}
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ err(1, "pledge");
+
/* parent */
/* We don't write to the pipe. */
close(fd[1]);