Fix exec from setuid/setgid binaries
commit90a83564dcb0a2cbd396793eaa0ce66b694f014f
authorSimon Schubert <corecode@dragonflybsd.org>
Tue, 29 Sep 2009 18:42:01 +0000 (29 20:42 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Wed, 30 Sep 2009 01:51:53 +0000 (30 03:51 +0200)
treeaa9ccee518e0f81c61b88ddefb2e5761d083a874
parent5960672f9abffd8483515e3cc5b8e7fd3eeadc75
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