diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-10-24 19:23:49 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-10-24 19:23:49 +0000 |
commit | 5dd67ff510023826c0e499bc371085c1b189086f (patch) | |
tree | 4f2fec1f4d077d5904464c67eafd103f865d3a19 /usr.bin/doas/doas.c | |
parent | ee41f0376cddd53d219092c6372bf1a691e3ac08 (diff) |
setusercontext() may still need "getpw" pledge rights; unbreaks doas on yp
accounts after 1.43; found the hard way by matthieu@
Diffstat (limited to 'usr.bin/doas/doas.c')
-rw-r--r-- | usr.bin/doas/doas.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c index 3e6d4bbe8b0..9ba5d0b2915 100644 --- a/usr.bin/doas/doas.c +++ b/usr.bin/doas/doas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: doas.c,v 1.44 2015/10/22 12:43:26 tedu Exp $ */ +/* $OpenBSD: doas.c,v 1.45 2015/10/24 19:23:48 miod Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -421,9 +421,6 @@ main(int argc, char **argv, char **envp) if (!pw) errx(1, "no passwd entry for target"); - if (pledge("stdio rpath id exec", NULL) == -1) - err(1, "pledge"); - if (setusercontext(NULL, pw, target, LOGIN_SETGROUP | LOGIN_SETPRIORITY | LOGIN_SETRESOURCES | LOGIN_SETUMASK | LOGIN_SETUSER) != 0) |