James Carlson wrote:
Chris Quenelle writes:
The ELF symbols are different for global vs static symbols.
Yep.
If you have a
list of known tunables, you should be able to audit this automatically by
having the build scan the symbols after you compile.
Sadly, no. Most things designed for use in /etc/system are ad-hoc.
There's certainly no general list. (Outside of the 'ip' module, where
we do some build time auditing for a different reason.)
It's just a bit of arcana that designers and code reviewers sometimes
need to know about, like the difference between .data and .bss. :-/
Of course, a declaration of
#define EXTERN_TUNABLE /* Do not make static */
in a kernel header might help prevent this:
EXTERN_TUNABLE int foo;
- Bart
--
Bart Smaalders Solaris Kernel Performance
[email protected] http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
networking-discuss mailing list
[email protected]