diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-28 20:17:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-28 20:17:32 +0000 |
commit | d31dcdb2d2aa09b7ed8e0b6659a49e4ed75a3091 (patch) | |
tree | 137c524a5f88ddd9058eb8d08cc0b083660d7bcb /usr.bin | |
parent | fe321675b65ff8cd9d215af4417b7c1b934784d3 (diff) |
pledge
ok millert
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/at/at.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c index e9c8528415d..c4ed2460f1e 100644 --- a/usr.bin/at/at.c +++ b/usr.bin/at/at.c @@ -1,4 +1,4 @@ -/* $OpenBSD: at.c,v 1.65 2015/08/20 22:32:41 deraadt Exp $ */ +/* $OpenBSD: at.c,v 1.66 2015/10/28 20:17:31 deraadt Exp $ */ /* * at.c : Put file into atrun queue @@ -930,6 +930,10 @@ main(int argc, char **argv) int cflag = 0; int nflag = 0; + if (pledge("stdio rpath wpath cpath fattr getpw unix flock id", + NULL) == -1) + perr("pledge"); + if (argc < 1) usage(); |