diff options
author | 2015-11-16 21:20:40 +0000 | |
---|---|---|
committer | 2015-11-16 21:20:40 +0000 | |
commit | f89c4c0c129144faef8c2cb0f5a047850eeb65e4 (patch) | |
tree | f3cc216555472af3b095c94c050d8a19fcc01d7a | |
parent | Allow TIOCEXT in pledge "tty" (diff) | |
download | wireguard-openbsd-f89c4c0c129144faef8c2cb0f5a047850eeb65e4.tar.xz wireguard-openbsd-f89c4c0c129144faef8c2cb0f5a047850eeb65e4.zip |
pledge "stdio rpath wpath cpath tmppath fattr tty flock proc exec"
-rw-r--r-- | usr.bin/mail/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/mail/main.c b/usr.bin/mail/main.c index 4d4c2f529d5..e7f7ff3a18a 100644 --- a/usr.bin/mail/main.c +++ b/usr.bin/mail/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.31 2015/02/08 23:40:34 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.32 2015/11/16 21:20:40 deraadt Exp $ */ /* $NetBSD: main.c,v 1.7 1997/05/13 06:15:57 mikel Exp $ */ /* @@ -56,6 +56,10 @@ main(int argc, char **argv) char *rc; extern const char version[]; + if (pledge("stdio rpath wpath cpath tmppath fattr tty flock proc exec", + NULL) == -1) + err(1, "pledge"); + /* * Set up a reasonable environment. * Figure out whether we are being run interactively, |