mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
ktrace: Fix an inverted privilege check
Approved by: so Security: FreeBSD-24:06.ktrace Security: CVE-2024-6760 Fixes:1762f674cc("ktrace: pack all ktrace parameters into allocated structure ktr_io_params") (cherry picked from commit166b7573b5)
This commit is contained in:
parent
feaaac5e15
commit
8b400c8488
1 changed files with 1 additions and 1 deletions
|
|
@ -593,7 +593,7 @@ ktrprocexec(struct proc *p)
|
|||
PROC_LOCK_ASSERT(p, MA_OWNED);
|
||||
|
||||
kiop = p->p_ktrioparms;
|
||||
if (kiop == NULL || priv_check_cred(kiop->cr, PRIV_DEBUG_DIFFCRED))
|
||||
if (kiop == NULL || priv_check_cred(kiop->cr, PRIV_DEBUG_DIFFCRED) == 0)
|
||||
return (NULL);
|
||||
|
||||
mtx_lock(&ktrace_mtx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue