summaryrefslogtreecommitdiff
path: root/sys/compat/freebsd32/freebsd32_misc.c
diff options
context:
space:
mode:
authorJamie Gritton <jamie@FreeBSD.org>2018-08-16 18:40:16 +0000
committerJamie Gritton <jamie@FreeBSD.org>2018-08-16 18:40:16 +0000
commit284001a222ae071c063920aa1c1b6477f168002d (patch)
tree10ee709c397d09f7bbe58bae03f7543dbe01998b /sys/compat/freebsd32/freebsd32_misc.c
parenta8e44f4da0e8b8892688d88a8faea5abfff2219e (diff)
downloadsrc-test2-284001a222ae071c063920aa1c1b6477f168002d.tar.gz
src-test2-284001a222ae071c063920aa1c1b6477f168002d.zip
Notes
Diffstat (limited to 'sys/compat/freebsd32/freebsd32_misc.c')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 070a9bcd8a76..66a4835c273b 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -2289,8 +2289,10 @@ freebsd32_sysctl(struct thread *td, struct freebsd32_sysctl_args *uap)
return (0);
}
+#ifdef COMPAT_FREEBSD11
int
-freebsd32_jail(struct thread *td, struct freebsd32_jail_args *uap)
+freebsd11_freebsd32_jail(struct thread *td,
+ struct freebsd11_freebsd32_jail_args *uap)
{
uint32_t version;
int error;
@@ -2347,8 +2349,9 @@ freebsd32_jail(struct thread *td, struct freebsd32_jail_args *uap)
/* Sci-Fi jails are not supported, sorry. */
return (EINVAL);
}
- return (kern_jail(td, &j));
+ return (freebsd11_kern_jail(td, &j));
}
+#endif /* COMPAT_FREEBSD11 */
int
freebsd32_jail_set(struct thread *td, struct freebsd32_jail_set_args *uap)