]> git.armaanb.net Git - opendoas.git/commit
open pam sessions with right user and remove setusercontext shim
authorDuncaen <mail@duncano.de>
Wed, 8 Jun 2016 15:50:28 +0000 (17:50 +0200)
committerDuncaen <mail@duncano.de>
Wed, 8 Jun 2016 16:03:37 +0000 (18:03 +0200)
commit4f7ed3854a4db241401f5b84cbb6246a06a17561
tree864203ca4de3c77bc217d67ee61a9361db0af141
parent21c6e427af5275a1879cd027b5534e63528e1349
open pam sessions with right user and remove setusercontext shim

before this change the sessions were opened as the user running doas.
Now it sets its uid to root and then opens a pam session for the target
user.
The setusercontext shim was removed, because pam handles all this and
its easier to just call setresuid and setresgid instead.
configure
doas.c
doas_pam.c
includes.h
libopenbsd/openbsd.h
libopenbsd/setusercontext.c [deleted file]
pam.d__doas__linux