mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-04 15:13:58 +01:00
HBSD: Log TPE violations
Signed-off-by: Shawn Webb <shawn.webb@hardenedbsd.org> MFC-to: 13-STABLE
This commit is contained in:
parent
f3398a365a
commit
a53ba9ea87
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user