diff options
Diffstat (limited to 'sys/kern/kern_exec.c')
| -rw-r--r-- | sys/kern/kern_exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 67def009e54d..5f6d2be22d08 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -43,6 +43,7 @@ #include <sys/pioctl.h> #include <sys/malloc.h> #include <sys/namei.h> +#include <sys/resourcevar.h> #include <sys/sysent.h> #include <sys/shm.h> #include <sys/sysctl.h> @@ -294,7 +295,7 @@ interpret: */ p->p_ucred = crcopy(p->p_ucred); if (attr.va_mode & VSUID) - p->p_ucred->cr_uid = attr.va_uid; + change_euid(p, attr.va_uid); if (attr.va_mode & VSGID) p->p_ucred->cr_gid = attr.va_gid; setsugid(p); |
