Date: Sun, 14 Jan 2018 17:55:40 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327972 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace Message-ID: <201801141755.w0EHteFp069429@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sun Jan 14 17:55:40 2018 New Revision: 327972 URL: https://svnweb.freebsd.org/changeset/base/327972 Log: Use the thread's ucred struct when fetching jid or jailname. Reported by: mjg X-MFC with: r327888 Modified: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Sun Jan 14 17:01:37 2018 (r327971) +++ head/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c Sun Jan 14 17:55:40 2018 (r327972) @@ -3664,14 +3664,14 @@ dtrace_dif_variable(dtrace_mstate_t *mstate, dtrace_st 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801141755.w0EHteFp069429>