Hi Herbert, while we're on tcrypt ... I use this patch to prevent successful loading of tcrypt. It does all its work, then returns -EAGAIN and is removed from the kernel. It saves me one "rmmod tcrypt" that I otherwise keep forgetting to issue ;-)
I found it convenient. Take it or drop it. Michal
Intentionaly return -EAGAIN from module_init() to ensure it doesn't stay loaded in the kernel. The module does all its work from init() and doesn't offer any runtime functionality => we don't need it in the memory, do we? Signed-off-by: Michal Ludvig <[EMAIL PROTECTED]> Index: linux/crypto/tcrypt.c =================================================================== --- linux.orig/crypto/tcrypt.c +++ linux/crypto/tcrypt.c @@ -1113,7 +1113,14 @@ static int __init init(void) kfree(xbuf); kfree(tvmem); - return 0; + + /* We intentionaly return -EAGAIN to prevent keeping + * the module. It does all its work from init() + * and doesn't offer any runtime functionality + * => we don't need it in the memory, do we? + * -- mludvig + */ + return -EAGAIN; } /*
