diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2003-07-18 05:23:29 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-07-18 05:23:29 -0700 |
| commit | dc33faea52587f59b5b295d6db04e5e5699d272a (patch) | |
| tree | d1e909bc8f81df3a204f672c8932135afc421234 /kernel | |
| parent | 5a4aab3225109899adeb5560ce4ec81c7b19f150 (diff) | |
[PATCH] Make rmmod -f taint kernel.
Somehow, the code which taints the kernel when rmmod -f is used got
lost. Restore it.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index e40c1ec25fd6..3c0117a663b0 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -610,7 +610,10 @@ static void free_module(struct module *mod); #ifdef CONFIG_MODULE_FORCE_UNLOAD static inline int try_force(unsigned int flags) { - return (flags & O_TRUNC); + int ret = (flags & O_TRUNC); + if (ret) + tainted |= TAINT_FORCED_MODULE; + return ret; } #else static inline int try_force(unsigned int flags) |
