This partially lifts a restriction imposed by rS191639 ("Prevent a superuser inside a jail from modifying the dedicated root cpuset of that jail") that's perhaps beneficial after rS192895 ("Add hierarchical jails."). Jails still cannot modify their own cpuset, but they can modify child jails' roots to further restrict them or widen them back to the modifying jails' own mask.
As a side effect of this, the system root may once again widen the mask of jails as long as they're still using a subset of the parent jails' mask. This was previously prevented by the fact that cpuset_getroot of a root set will return that root, rather than the root's parent -- cpuset_modify uses cpuset_getroot since it was introduced in rS327895, previously it was just validating against set->cs_parent which allowed the system root to widen jail masks.
I think the implementation's nearly trivial and accurate for the description, but I'd like a sanity check that this is a reasonable thing to do and within the spirit of hierarchical jails.