Date: Sat, 28 Feb 2015 17:32:32 +0000 (UTC) From: Ian Lepore <ian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279395 - head/sys/kern Message-ID: <201502281732.t1SHWWDv086175@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ian Date: Sat Feb 28 17:32:31 2015 New Revision: 279395 URL: https://svnweb.freebsd.org/changeset/base/279395 Log: Export the new osreldate and osrelease jail parms in jail_get(2). Modified: head/sys/kern/kern_jail.c Modified: head/sys/kern/kern_jail.c ============================================================================== --- head/sys/kern/kern_jail.c Sat Feb 28 15:21:06 2015 (r279394) +++ head/sys/kern/kern_jail.c Sat Feb 28 17:32:31 2015 (r279395) @@ -2180,6 +2180,12 @@ kern_jail_get(struct thread *td, struct 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; /* Get the module parameters. */ mtx_unlock(&pr->pr_mtx);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502281732.t1SHWWDv086175>