From c26df687f4871e042f5727781b17ca4dfefd2d60 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 16 Oct 2015 22:54:15 +0000 Subject: [PATCH] pledge "stdio rpath wpath cpath fattr proc exec" --- usr.sbin/vipw/vipw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/vipw/vipw.c b/usr.sbin/vipw/vipw.c index b6700a5a982..3838b9ab51d 100644 --- a/usr.sbin/vipw/vipw.c +++ b/usr.sbin/vipw/vipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vipw.c,v 1.17 2014/05/07 21:20:06 schwarze Exp $ */ +/* $OpenBSD: vipw.c,v 1.18 2015/10/16 22:54:15 deraadt Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -64,6 +64,9 @@ main(int argc, char *argv[]) if (argc != 0) usage(); + if (pledge("stdio rpath wpath cpath fattr proc exec", NULL) == -1) + err(1, "pledge"); + pw_init(); tfd = pw_lock(0); if (tfd < 0) -- 2.20.1