]> git.armaanb.net Git - opendoas.git/commitdiff
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)
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.


No differences found