diff options
Diffstat (limited to 'sys/i386/ibcs2/ibcs2_other.c')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_other.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/ibcs2/ibcs2_other.c b/sys/i386/ibcs2/ibcs2_other.c index 3578b3a..23b9743 100644 --- a/sys/i386/ibcs2/ibcs2_other.c +++ b/sys/i386/ibcs2/ibcs2_other.c @@ -48,7 +48,9 @@ ibcs2_secure(struct proc *p, struct ibcs2_secure_args *uap) switch (uap->cmd) { case IBCS2_SECURE_GETLUID: /* get login uid */ + PROC_LOCK(p); p->p_retval[0] = p->p_ucred->cr_uid; + PROC_UNLOCK(p); return 0; case IBCS2_SECURE_SETLUID: /* set login uid */ |