diff options
author | attilio <attilio@FreeBSD.org> | 2010-07-21 10:14:04 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2010-07-21 10:14:04 +0000 |
commit | 800d46f6e4936589dbbae5ddea8fe956c0cc7500 (patch) | |
tree | 0a9a31bf0827db5fb21a925b364cf599fb8b5026 /sys/kern | |
parent | 929048ea54eba87c64b7d0906b1849f071f3bee6 (diff) | |
download | FreeBSD-src-800d46f6e4936589dbbae5ddea8fe956c0cc7500.zip FreeBSD-src-800d46f6e4936589dbbae5ddea8fe956c0cc7500.tar.gz |
Probabilly defaulting to KTR_GEN is not the right decision when KTR_MASK
is not defined at all because KTR_GEN is still a valid class and some
traces may fit in. Default to 0, instead, and block any tracing.
As long as this is a POLA violation (some thirdy-part code, even if
that may be a questionable choice, could be rely on that feature) a
MFC possibility might be carefully evaluated.
Sponsored by: Sandvine Incorporated
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_ktr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_ktr.c b/sys/kern/kern_ktr.c index 9586ae6..2fc2acc 100644 --- a/sys/kern/kern_ktr.c +++ b/sys/kern/kern_ktr.c @@ -65,7 +65,7 @@ __FBSDID("$FreeBSD$"); #endif #ifndef KTR_MASK -#define KTR_MASK (KTR_GEN) +#define KTR_MASK (0) #endif #ifndef KTR_CPUMASK |