Export the new osreldate and osrelease jail parms in jail_get(2).
This commit is contained in:
parent
691a22f94e
commit
a1a4c1b0d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279395
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user