summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2015-03-25 20:57:54 +0000
committerian <ian@FreeBSD.org>2015-03-25 20:57:54 +0000
commit17ca262c02e86a8249998b8b6f269c54d2cc0393 (patch)
tree3d7f5bb95a341c4bd3b3cb5a0b72e24c35e06d6e /sys/kern/init_main.c
parent024d3d32c2e26de3eb9d5db776dbab29ad79618e (diff)
downloadFreeBSD-src-17ca262c02e86a8249998b8b6f269c54d2cc0393.zip
FreeBSD-src-17ca262c02e86a8249998b8b6f269c54d2cc0393.tar.gz
MFC r279361, r279395, r279396:
Allow the kern.osrelease and kern.osreldate sysctl values to be set in a jail's creation parameters. This allows the kernel version to be reliably spoofed within the jail whether examined directly with sysctl or indirectly with the uname -r and -K options. Export the new osreldate and osrelease jail parms in jail_get(2). Fix line wrap.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 16235bc..1c5f77c 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -493,7 +493,7 @@ proc0_init(void *dummy __unused)
td->td_flags = TDF_INMEM;
td->td_pflags = TDP_KTHREAD;
td->td_cpuset = cpuset_thread0();
- prison0.pr_cpuset = cpuset_ref(td->td_cpuset);
+ prison0_init();
p->p_peers = 0;
p->p_leader = p;
p->p_reaper = p;
OpenPOWER on IntegriCloud