after dbopen(3) occurs then all operations are on fds which don't need
rpath/wpath and therefore spamdb(8) only needs stdio at all times after the DB
was already open(2)ed
great input from semarie@ OK deraadt@
-/* $OpenBSD: spamdb.c,v 1.34 2017/10/29 19:11:34 millert Exp $ */
+/* $OpenBSD: spamdb.c,v 1.35 2018/07/26 19:32:52 mestre Exp $ */
/*
* Copyright (c) 2004 Bob Beck. All rights reserved.
action ? "writing" : "reading");
}
- if (action == 0) {
- if (pledge("stdio rpath", NULL) == -1)
- err(1, "pledge");
- } else {
- if (pledge("stdio rpath wpath", NULL) == -1)
- err(1, "pledge");
- }
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
switch (action) {
case 0: