HBSD: Silence PaX SEGVGUARD stat errors

These errors are best displayed in boot verbose mode.

Signed-off-by: Shawn Webb <swebb@blackhawknest.com>
OPNsense-github-issue:	#36
This commit is contained in:
Shawn Webb 2020-05-14 05:12:42 -04:00 committed by Franco Fichtner
parent 494ab951b4
commit 17c8983805

View file

@ -375,8 +375,11 @@ pax_segvguard_add(struct thread *td, struct vnode *vn, sbintime_t sbt)
error = VOP_GETATTR(vn, &vap, td->td_ucred);
if (error != 0) {
pax_log_segvguard(td->td_proc, PAX_LOG_DEFAULT,
"%s:%d stat error. Bailing.", __func__, __LINE__);
if (bootverbose) {
pax_log_segvguard(td->td_proc, PAX_LOG_DEFAULT,
"%s:%d stat error. Bailing.", __func__,
__LINE__);
}
return (NULL);
}