summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/ibcs2_other.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-23 23:59:38 +0000
committerjhb <jhb@FreeBSD.org>2001-01-23 23:59:38 +0000
commit80649f2bc14466af487fac64c40a88ede7c20efc (patch)
tree781ea883b6ed60cc23e615d8c1d3f2f82b901dd5 /sys/i386/ibcs2/ibcs2_other.c
parentf5fbc62142d116619713e03561896c38676e6f5c (diff)
downloadFreeBSD-src-80649f2bc14466af487fac64c40a88ede7c20efc.zip
FreeBSD-src-80649f2bc14466af487fac64c40a88ede7c20efc.tar.gz
Proc locking.
Diffstat (limited to 'sys/i386/ibcs2/ibcs2_other.c')
-rw-r--r--sys/i386/ibcs2/ibcs2_other.c2
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 */
OpenPOWER on IntegriCloud