Bug#573490: Check kernel config during drbd8 builds
On Fri, Mar 12, 2010 at 04:52:46AM +0000, Ben Hutchings wrote:
> This patch adds the config script to the package (as done in unstable)
> and ensures that it runs at build time. Given this, you can adjust the
> config script or the code to report a fatal error if it detects the
> insecure connector API.
Thanks Ben, that works great.
My suggestion would then be to add a #warning message if built against
old headers, but allow it to complete anyway. My reasoning is that
we provide prebuilt binaries on lenny, and we can guarantee that those
binaries get fixed (by only signing good builds).
The only people building the modules directly are likely running some
self-maintained kernel. This kernel may or may not be keeping up with
security patches - that we can't control - but we can avoid a
regression in functionality. The drbd build is also currently free of
warnings, so this one should stick out.
Attached is a combined patch that implements this.