HBSD: Log TPE violations

Signed-off-by:	Shawn Webb <shawn.webb@hardenedbsd.org>
MFC-to:		13-STABLE
This commit is contained in:
Shawn Webb 2022-06-10 15:11:31 -04:00
parent f3398a365a
commit a53ba9ea87

View File

@ -550,6 +550,10 @@ interpret:
#ifdef PAX #ifdef PAX
error = pax_enforce_tpe(td, imgp->vp, imgp->execpath); error = pax_enforce_tpe(td, imgp->vp, imgp->execpath);
if (error) { if (error) {
pax_log_internal(td->td_proc,
PAX_LOG_P_COMM | PAX_LOG_NO_P_PAX,
"uid=%u,gid=%u: TPE violation",
td->td_ucred->cr_uid, td->td_ucred->cr_gid);
goto exec_fail_dealloc; goto exec_fail_dealloc;
} }
#endif #endif