Fix exec from setuid/setgid binaries
commitd8251b4ea0451fdc6f36b91859b71673f67933ba
authorSimon Schubert <corecode@dragonflybsd.org>
Tue, 29 Sep 2009 18:42:01 +0000 (29 20:42 +0200)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 30 Sep 2009 15:40:09 +0000 (30 08:40 -0700)
treea23a8dfff256e93579362d7a1bb023e3fe92766c
parent4edc74d5710bc9ed9d5d03a3c50039a08ca3ca1d
Fix exec from setuid/setgid binaries

In the context of exec, we have to use the effective uid/gid to check
whether the process has permissions to exec, not the ruid/rgid.
sys/kern/kern_exec.c