mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled
(cherry picked from commit 6b0cf2a237)
This commit is contained in:
parent
6adfee18ef
commit
00cf2f3092
1 changed files with 7 additions and 1 deletions
|
|
@ -88,8 +88,14 @@ static void NDVALIDATE_impl(struct nameidata *, int);
|
|||
ndp->ni_cnd.cn_flags |= ISRESTARTED; \
|
||||
} while (0)
|
||||
|
||||
#ifdef KTRACE
|
||||
#define NIKTRCAPFAIL(path) ktrcapfail(CAPFAIL_NAMEI, (path))
|
||||
#else
|
||||
#define NIKTRCAPFAIL(path)
|
||||
#endif
|
||||
|
||||
#define NI_CAP_VIOLATION(ndp, path) do { \
|
||||
ktrcapfail(CAPFAIL_NAMEI, (path)); \
|
||||
NIKTRCAPFAIL(path); \
|
||||
(ndp)->ni_lcf &= ~NI_LCF_KTR_FLAGS; \
|
||||
} while (0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue