Author: bz
Date: Wed Jun 17 13:15:54 2015
New Revision: 284514
URL: https://svnweb.freebsd.org/changeset/base/284514

Log:
  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

Modified:
  head/sys/kern/kern_jail.c

Modified: head/sys/kern/kern_jail.c
==============================================================================
--- head/sys/kern/kern_jail.c   Wed Jun 17 12:28:13 2015        (r284513)
+++ head/sys/kern/kern_jail.c   Wed Jun 17 13:15:54 2015        (r284514)
@@ -1331,7 +1331,7 @@ kern_jail_set(struct thread *td, struct 
 
                pr->pr_securelevel = ppr->pr_securelevel;
                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_osreldate = osreldt ? osreldt : ppr->pr_osreldate;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to