artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e80dbe
)
pledge "stdio rpath wpath cpath fattr proc exec"
author
deraadt
<deraadt@openbsd.org>
Fri, 16 Oct 2015 22:54:15 +0000
(22:54 +0000)
committer
deraadt
<deraadt@openbsd.org>
Fri, 16 Oct 2015 22:54:15 +0000
(22:54 +0000)
usr.sbin/vipw/vipw.c
patch
|
blob
|
history
diff --git
a/usr.sbin/vipw/vipw.c
b/usr.sbin/vipw/vipw.c
index
b6700a5
..
3838b9a
100644
(file)
--- a/
usr.sbin/vipw/vipw.c
+++ b/
usr.sbin/vipw/vipw.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vipw.c,v 1.1
7 2014/05/07 21:20:06 schwarze Exp $
*/
+/* $OpenBSD: vipw.c,v 1.1
8 2015/10/16 22:54:15 deraadt Exp $
*/
/*
* Copyright (c) 1987, 1993, 1994
@@
-64,6
+64,9
@@
main(int argc, char *argv[])
if (argc != 0)
usage();
+ if (pledge("stdio rpath wpath cpath fattr proc exec", NULL) == -1)
+ err(1, "pledge");
+
pw_init();
tfd = pw_lock(0);
if (tfd < 0)