Then we have a problem. The modinfo and modstring sections are not
loaded into kernel space, they are processed by insmod then discarded.
Solution: /proc/sys/kernel/tainted. Set to 0 on boot, set to 1 by
insmod when it finds a non-GPL module, printed by panic, extracted by
ksymoops. Any load of a proprietary module taints the kernel, even if
it is later removed. The kernel code for that sysctl only allows taint
to be set, not to be cleared.
Not perfect, really malicious users can hack the kernel. Or they can
simply edit the taint flag in the oops report. But it will catch 90%+
of the problem case.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/