mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
pledge "stdio rpath wpath cpath tty" for canfield
pledge "stdio rpath" for cfscores made possible by Ricardo Mestre's earlier work
This commit is contained in:
parent
efef3032b3
commit
9ba11e5c36
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: canfield.c,v 1.20 2015/11/26 13:28:22 tb Exp $ */
|
||||
/* $OpenBSD: canfield.c,v 1.21 2015/11/30 08:38:13 tb Exp $ */
|
||||
/* $NetBSD: canfield.c,v 1.7 1995/05/13 07:28:35 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@ -1736,6 +1736,9 @@ askquit(int dummy)
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
signal(SIGINT, askquit);
|
||||
signal(SIGHUP, cleanup);
|
||||
signal(SIGTERM, cleanup);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: cfscores.c,v 1.19 2015/11/26 13:28:22 tb Exp $ */
|
||||
/* $OpenBSD: cfscores.c,v 1.20 2015/11/30 08:38:13 tb Exp $ */
|
||||
/* $NetBSD: cfscores.c,v 1.3 1995/03/21 15:08:37 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -61,6 +61,9 @@ main(int argc, char *argv[])
|
||||
{
|
||||
char *home, *name;
|
||||
int ret;
|
||||
|
||||
if (pledge("stdio rpath", NULL) == -1)
|
||||
err(1, "pledge");
|
||||
|
||||
home = getenv("HOME");
|
||||
if (home == NULL || *home == '\0')
|
||||
|
Loading…
Reference in New Issue
Block a user