From 94a889089bdd40fc48b5264dde296f3907479af1 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Sun, 14 Jan 2018 17:55:40 +0000 Subject: [PATCH] Use the thread's ucred struct when fetching jid or jailname. Reported by: mjg X-MFC with: r327888 --- sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c index e5cc5b721943..4ab8623824e7 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c @@ -3664,14 +3664,14 @@ dtrace_dif_variable(dtrace_mstate_t *mstate, dtrace_state_t *state, uint64_t v, return (0); return (dtrace_dif_varstr( - (uintptr_t)curthread->t_procp->p_ucred->cr_prison->pr_name, + (uintptr_t)curthread->td_ucred->cr_prison->pr_name, state, mstate)); case DIF_VAR_JID: if (!dtrace_priv_kernel(state)) return (0); - return ((uint64_t)curthread->t_procp->p_ucred->cr_prison->pr_id); + return ((uint64_t)curthread->td_ucred->cr_prison->pr_id); #else return (0); #endif