mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
The game is playable without the need to access any files therefore we can
effectively disable all fs access by dropping "rpath wpath cpath" from pledge(2) right at the beginning of the program. "looks right" tb@
This commit is contained in:
parent
c13ada2b54
commit
e6afc4b502
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: main.c,v 1.17 2016/01/07 16:00:33 tb Exp $ */
|
||||
/* $OpenBSD: main.c,v 1.18 2018/08/09 17:51:22 mestre Exp $ */
|
||||
/* $NetBSD: main.c,v 1.4 1995/04/22 10:59:10 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -121,7 +121,7 @@ main(int argc, char **argv)
|
||||
int ac;
|
||||
char **av;
|
||||
|
||||
if (pledge("stdio rpath wpath cpath", NULL) == -1)
|
||||
if (pledge("stdio", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
av = argv;
|
||||
|
Loading…
Reference in New Issue
Block a user