]> granicus.if.org Git - sudo/commit
For PERM_ROOT when using setreuid(), only set the euid to 0 prior
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Feb 2012 18:29:19 +0000 (13:29 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Feb 2012 18:29:19 +0000 (13:29 -0500)
commit656807823d0915a33dcd85109b822a65bf6bb480
treed9f98671befebd1be81f3862d064b13a0fb04aba
parent8c1d8a7b156aa6b3139f1851d2303a7c99a653de
For PERM_ROOT when using setreuid(), only set the euid to 0 prior
to the call to setuid(0) if the current euid is non-zero.  This
effectively restores the state of things prior to rev 7bfeb629fccb.
Fixes a problem on AIX where LDR_PRELOAD was not being honored for
the command being executed.
plugins/sudoers/set_perms.c