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