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

This commit is contained in:
Ian Lepore 2015-02-28 17:32:31 +00:00
parent 691a22f94e
commit a1a4c1b0d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279395

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;