diff options
author | deraadt <deraadt@openbsd.org> | 2015-10-13 15:12:53 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2015-10-13 15:12:53 +0000 |
commit | 322cc83bfc2a014b73a5cabf3766b8b93608fec2 (patch) | |
tree | 8e5cc6259ce724ff8c4bde0215437e5e58a3499c /usr.sbin/netgroup_mkdb | |
parent | pledge "stdio rpath wpath cpath proc exec". creates files throughout (diff) | |
download | wireguard-openbsd-322cc83bfc2a014b73a5cabf3766b8b93608fec2.tar.xz wireguard-openbsd-322cc83bfc2a014b73a5cabf3766b8b93608fec2.zip |
pledge "stdio rpath wpath cpath", full path handling to satisfy dbopen()
Diffstat (limited to 'usr.sbin/netgroup_mkdb')
-rw-r--r-- | usr.sbin/netgroup_mkdb/netgroup_mkdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c index f370acabd0c..adfb4d95f5c 100644 --- a/usr.sbin/netgroup_mkdb/netgroup_mkdb.c +++ b/usr.sbin/netgroup_mkdb/netgroup_mkdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netgroup_mkdb.c,v 1.19 2015/09/10 18:59:34 deraadt Exp $ */ +/* $OpenBSD: netgroup_mkdb.c,v 1.20 2015/10/13 15:12:53 deraadt Exp $ */ /* * Copyright (c) 1994 Christos Zoulas @@ -96,6 +96,8 @@ main(int argc, char *argv[]) DB *db, *ndb, *hdb, *udb; int ch; + if (pledge("stdio rpath wpath cpath", NULL) == -1) + err(1, "pledge"); while ((ch = getopt(argc, argv, "do:")) != -1) switch (ch) { |