Initialise pr_enforce_statfs from the "default" sysctl value and
not from the compile time constant. The sysctl value is seeded from the compile time constant. MFC after: 2 weeks
This commit is contained in:
parent
6470c31911
commit
af10bf055f
@ -1331,7 +1331,7 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags)
|
|||||||
|
|
||||||
pr->pr_securelevel = ppr->pr_securelevel;
|
pr->pr_securelevel = ppr->pr_securelevel;
|
||||||
pr->pr_allow = JAIL_DEFAULT_ALLOW & ppr->pr_allow;
|
pr->pr_allow = JAIL_DEFAULT_ALLOW & ppr->pr_allow;
|
||||||
pr->pr_enforce_statfs = JAIL_DEFAULT_ENFORCE_STATFS;
|
pr->pr_enforce_statfs = jail_default_enforce_statfs;
|
||||||
pr->pr_devfs_rsnum = ppr->pr_devfs_rsnum;
|
pr->pr_devfs_rsnum = ppr->pr_devfs_rsnum;
|
||||||
|
|
||||||
pr->pr_osreldate = osreldt ? osreldt : ppr->pr_osreldate;
|
pr->pr_osreldate = osreldt ? osreldt : ppr->pr_osreldate;
|
||||||
|
Loading…
Reference in New Issue
Block a user