-/* $OpenBSD: kvm_mkdb.c,v 1.22 2015/10/13 15:43:19 deraadt Exp $ */
+/* $OpenBSD: kvm_mkdb.c,v 1.23 2015/10/13 15:55:44 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
warn("can't set rlimit data size");
}
- /* getpwnam() and fchown() later */
- if (pledge("stdio rpath wpath cpath getpw fattr proc", NULL) == -1)
- err(1, "pledge");
-
strlcpy(dbdir, _PATH_VARDB, sizeof(dbdir));
while ((ch = getopt(argc, argv, "vo:")) != -1)
switch (ch) {
}
/* rename() later */
- if (pledge("stdio cpath", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
err(1, "pledge");
if (create_knlist(nlistpath, fd, db) != 0) {