diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-17 17:17:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-17 17:17:25 +0000 |
commit | c7dda6db9efb20fcaf38b8e716466e1ce23094f5 (patch) | |
tree | e2dcbd78096fc0acdd473a0d72721a1886dcc9ab /bin/rm/rm.c | |
parent | 23c8d7a41c7b4a051aaf0ccf1ff0df82cf45b09c (diff) |
Missing "getpw" pledges, these were unnoticed because nobody expects
a user_from_uid(3) call...
Diffstat (limited to 'bin/rm/rm.c')
-rw-r--r-- | bin/rm/rm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 7770c6c90d7..5deeb6d0e7f 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rm.c,v 1.34 2015/10/13 04:30:53 daniel Exp $ */ +/* $OpenBSD: rm.c,v 1.35 2015/11/17 17:17:24 deraadt Exp $ */ /* $NetBSD: rm.c,v 1.19 1995/09/07 06:48:50 jtc Exp $ */ /*- @@ -103,10 +103,10 @@ main(int argc, char *argv[]) argv += optind; if (Pflag) { - if (pledge("stdio rpath wpath cpath", NULL) == -1) + if (pledge("stdio rpath wpath cpath getpw", NULL) == -1) err(1, "pledge"); } else { - if (pledge("stdio rpath cpath", NULL) == -1) + if (pledge("stdio rpath cpath getpw", NULL) == -1) err(1, "pledge"); } |