Allow user processes to completely empty out their LDT, now that user

processes run from segment selectors that live in the GDT.  Doing this
used to be equivalent to committing suicide, but now this is a NOP.
This commit is contained in:
Peter Wemm 2005-04-14 03:16:58 +00:00
parent c050415d18
commit 4740f5439a

View File

@ -529,7 +529,7 @@ i386_set_ldt(td, uap, descs)
uap->start = NLDT;
uap->num = MAX_LD - NLDT;
}
if (uap->start <= LUDATA_SEL || uap->num <= 0)
if (uap->num <= 0)
return (EINVAL);
mtx_lock_spin(&sched_lock);
pldt = mdp->md_ldt;