diff options
author | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-04-27 10:24:51 +0000 |
---|---|---|
committer | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-04-27 10:24:51 +0000 |
commit | c71becc6a14824460e47ca111fe8d8ee0552334b (patch) | |
tree | a844393ce2077289f02270a5dec2b42fc9335b19 | |
parent | ffe525d3fde541f3074b988c907f2d1ec81cfdd0 (diff) |
Remove pledge(2)'s that are called before chroot(2) since in the near future
this will be forbidden. The remaining pledge(2) calls after chroot(2) are still
kept.
OK semarie@ "it is time now"
-rw-r--r-- | libexec/spamd/spamd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index 05892befcab..90f3dc424e6 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.140 2016/04/10 03:04:21 tedu Exp $ */ +/* $OpenBSD: spamd.c,v 1.141 2016/04/27 10:24:50 mestre Exp $ */ /* * Copyright (c) 2015 Henning Brauer <henning@openbsd.org> @@ -1374,9 +1374,6 @@ main(int argc, char *argv[]) if (!greylist) { maxblack = maxcon; - - if (pledge("stdio rpath inet proc id", NULL) == -1) - err(1, "pledge"); } else if (maxblack > maxcon) usage(); |