Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_ktrace.c
Show First 20 Lines • Show All 1,355 Lines • ▼ Show 20 Lines | #endif | ||||
mtx_lock(&ktrace_mtx); | mtx_lock(&ktrace_mtx); | ||||
if (p->p_ktrioparms != NULL && p->p_ktrioparms->vp == vp) | if (p->p_ktrioparms != NULL && p->p_ktrioparms->vp == vp) | ||||
kiop1 = ktr_freeproc(p); | kiop1 = ktr_freeproc(p); | ||||
kiop = ktr_io_params_rele(kiop); | kiop = ktr_io_params_rele(kiop); | ||||
mtx_unlock(&ktrace_mtx); | mtx_unlock(&ktrace_mtx); | ||||
PROC_UNLOCK(p); | PROC_UNLOCK(p); | ||||
ktr_io_params_free(kiop1); | ktr_io_params_free(kiop1); | ||||
ktr_io_params_free(kiop); | ktr_io_params_free(kiop); | ||||
vrele(vp); | |||||
} | } | ||||
/* | /* | ||||
* Return true if caller has permission to set the ktracing state | * Return true if caller has permission to set the ktracing state | ||||
* of target. Essentially, the target can't possess any | * of target. Essentially, the target can't possess any | ||||
* more permissions than the caller. KTRFAC_ROOT signifies that | * more permissions than the caller. KTRFAC_ROOT signifies that | ||||
* root previously set the tracing status on the target process, and | * root previously set the tracing status on the target process, and | ||||
* so, only root may further change it. | * so, only root may further change it. | ||||
Show All 17 Lines |