From: deraadt Date: Tue, 13 Oct 2015 15:14:26 +0000 (+0000) Subject: pledge "stdio rpath wpath cpath fattr"; fattr due to locking code borrowed X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=db21a05d840d2b7c2e2ea056b52815d7c431d831;p=openbsd pledge "stdio rpath wpath cpath fattr"; fattr due to locking code borrowed from mail.local --- diff --git a/libexec/lockspool/lockspool.c b/libexec/lockspool/lockspool.c index 67cc7eb45e7..12505936be7 100644 --- a/libexec/lockspool/lockspool.c +++ b/libexec/lockspool/lockspool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lockspool.c,v 1.16 2009/10/27 23:59:31 deraadt Exp $ */ +/* $OpenBSD: lockspool.c,v 1.17 2015/10/13 15:14:26 deraadt Exp $ */ /* * Copyright (c) 1998 Theo de Raadt @@ -34,6 +34,8 @@ #include #include #include +#include + #include "mail.local.h" void unhold(int); @@ -50,6 +52,9 @@ main(int argc, char *argv[]) char *from, c; int holdfd; + if (pledge("stdio rpath wpath cpath fattr", NULL) == -1) + err(1, "pledge"); + openlog(__progname, LOG_PERROR, LOG_MAIL); if (argc != 1 && argc != 2)