mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Straightforward pledge "stdio rpath wpath cpath" for adventure.
It is possible to make it finer grained, but try to keep it simple for now.
This commit is contained in:
parent
4aaa725d73
commit
a75265e181
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: main.c,v 1.20 2014/11/16 04:49:48 guenther Exp $ */
|
||||
/* $OpenBSD: main.c,v 1.21 2015/11/30 08:14:48 tb Exp $ */
|
||||
/* $NetBSD: main.c,v 1.5 1996/05/21 21:53:09 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
@ -52,6 +52,9 @@ main(int argc, char *argv[])
|
||||
int rval, ll;
|
||||
struct text *kk;
|
||||
|
||||
if (pledge("stdio rpath wpath cpath", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
init(); /* Initialize everything */
|
||||
signal(SIGINT, trapdel);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user