aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_jail.c
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2011-01-26 20:03:58 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2011-01-26 20:03:58 +0000
commita5c1afadeb95a73516e9a16ed296e05b713d75cc (patch)
tree11e55f54986e1fd2a80fd707f1d646272a4b9266 /sys/kern/kern_jail.c
parent507c72969d0e965b1e4566192ce3686e83529ebe (diff)
downloadsrc-a5c1afadeb95a73516e9a16ed296e05b713d75cc.tar.gz
src-a5c1afadeb95a73516e9a16ed296e05b713d75cc.zip
Notes
Diffstat (limited to 'sys/kern/kern_jail.c')
-rw-r--r--sys/kern/kern_jail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index 093165b963b5..335cd31e8e1d 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -745,7 +745,7 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags)
}
#ifdef COMPAT_FREEBSD32
- if (td->td_proc->p_sysent->sv_flags & SV_ILP32) {
+ if (SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
uint32_t hid32;
error = vfs_copyopt(opts, "host.hostid", &hid32, sizeof(hid32));
@@ -1972,7 +1972,7 @@ kern_jail_get(struct thread *td, struct uio *optuio, int flags)
if (error != 0 && error != ENOENT)
goto done_deref;
#ifdef COMPAT_FREEBSD32
- if (td->td_proc->p_sysent->sv_flags & SV_ILP32) {
+ if (SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
uint32_t hid32 = pr->pr_hostid;
error = vfs_setopt(opts, "host.hostid", &hid32, sizeof(hid32));