Messages in this thread |  | | From | Andreas Dilger <> | | Subject | Re: syslog insmod please! | | Date | Thu, 5 Apr 2001 22:42:04 -0600 (MDT) |
| |
Ion writes: > Andrew Daviel <andrew@andrew.triumf.ca> wrote: > > Is there a good reason why insmod should not call syslog() to log > > any module that gets installed ? > > Simple: you'll have quite a bit of a problem if you are trying to insmod > the module with support for AF_UNIX sockets. :-)
Why do it from user space? Simply add a printk() to sys_init_module() or similar. Granted, this will only help until the lusers install a patched sysklog before installing a backdoor module, but so would the user-space solution. At least the kernel message will stay in kernel memory until it is flushed out with more messages (which itself might be detectable).
Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert - 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/
|  |