mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
494ab951b4
commit
17c8983805
1 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue