diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 5a88d851f82f..356f524e7b05 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -2178,6 +2178,12 @@ kern_jail_get(struct thread *td, struct uio *optuio, int flags) goto done_deref; i = !i; error = vfs_setopt(opts, "nodying", &i, sizeof(i)); + if (error != 0 && error != ENOENT) + goto done_deref; + error = vfs_setopt(opts, "osreldate", &pr->pr_osreldate, sizeof(pr->pr_osreldate)); + if (error != 0 && error != ENOENT) + goto done_deref; + error = vfs_setopts(opts, "osrelease", pr->pr_osrelease); if (error != 0 && error != ENOENT) goto done_deref;