Export the new osreldate and osrelease jail parms in jail_get(2).

This commit is contained in:
ian 2015-02-28 17:32:31 +00:00
parent 1ec902f1cf
commit 57c4ae8cb3

View File

@ -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;