summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-11-01 20:16:03 +0000
committerrwatson <rwatson@FreeBSD.org>2001-11-01 20:16:03 +0000
commit49a98043879675541ed4fda938748b3b157c8479 (patch)
tree4a40520d601cce85f889e824cd537a21b14250fd
parent112eea5338398ec52ed8832a8e98e299a28c2868 (diff)
downloadFreeBSD-src-49a98043879675541ed4fda938748b3b157c8479.zip
FreeBSD-src-49a98043879675541ed4fda938748b3b157c8479.tar.gz
o Permit osf1-emulated programs to modify uid/gid under jail by
switching suser() to suser_xxx() and adding PRISON_ROOT flag.
-rw-r--r--sys/alpha/osf1/osf1_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/alpha/osf1/osf1_misc.c b/sys/alpha/osf1/osf1_misc.c
index f266685..54cb3fb 100644
--- a/sys/alpha/osf1/osf1_misc.c
+++ b/sys/alpha/osf1/osf1_misc.c
@@ -1065,7 +1065,7 @@ osf1_setuid(td, uap)
uid = SCARG(uap, uid);
oldcred = p->p_ucred;
- if ((error = suser(p)) != 0 &&
+ if ((error = suser_xxx(p->p_ucred, NULL, PRISON_ROOT)) != 0 &&
uid != oldcred->cr_ruid && uid != oldcred->cr_svuid)
return (error);
@@ -1111,7 +1111,7 @@ osf1_setgid(td, uap)
gid = SCARG(uap, gid);
oldcred = p->p_ucred;
- if (((error = suser(p)) != 0 ) &&
+ if (((error = suser(p->p_ucred, NULL, PRISON_ROOT)) != 0 ) &&
gid != oldcred->cr_rgid && gid != oldcred->cr_svgid)
return (error);
OpenPOWER on IntegriCloud