| From: |
| Greg KH <greg@kroah.com> |
| To: |
| linux-security-module@wirex.com |
| Subject: |
| [RFC] No more module_* hooks |
| Date: |
| Thu, 26 Sep 2002 16:41:36 -0700 |
Hi,
In looking at the hooks that we have, that no one uses, module_* were an
easy target. So here's a series of patches that removes them. If no
one complains, I'll commit these to the main tree.
Well, DTE did use the module_delete hook, but that's not the way to
prevent yourself from ever being unloaded. Just do a MOD_DEC_USE_COUNT;
in your init_module() function, and then you can't be unloaded.
Comments?
thanks,
greg k-h
include/linux/security.h | 24 ------------------------
kernel/module.c | 26 --------------------------
security/capability.c | 19 -------------------
security/dte/dte.c | 22 ----------------------
security/dummy.c | 19 -------------------
security/lids/lids_lsm.c | 19 -------------------
security/owlsm.c | 19 -------------------
security/selinux/hooks.c | 24 ------------------------
8 files changed, 172 deletions(-)
-----
ChangeSet@1.510, 2002-09-26 16:35:04-07:00, greg@kroah.com
put kernel/module.c back to the way it was before we touched it.
kernel/module.c | 3 ---
1 files changed, 3 deletions(-)
------
ChangeSet@1.509, 2002-09-26 16:33:07-07:00, greg@kroah.com
removed module_delete hook, as no one used it.
include/linux/security.h | 14 --------------
kernel/module.c | 14 --------------
security/capability.c | 7 -------
security/dte/dte.c | 10 ----------
security/dummy.c | 7 -------
security/lids/lids_lsm.c | 7 -------
security/owlsm.c | 7 -------
security/selinux/hooks.c | 10 ----------
8 files changed, 76 deletions(-)
------
ChangeSet@1.508, 2002-09-26 16:26:42-07:00, greg@kroah.com
removed module_initialize hook, as no one uses it.
include/linux/security.h | 4 ----
kernel/module.c | 4 ----
security/capability.c | 6 ------
security/dte/dte.c | 6 ------
security/dummy.c | 6 ------
security/lids/lids_lsm.c | 6 ------
security/owlsm.c | 6 ------
security/selinux/hooks.c | 7 -------
8 files changed, 45 deletions(-)
------
ChangeSet@1.507, 2002-09-26 16:20:38-07:00, greg@kroah.com
removed module_create hook, as no one was using it.
include/linux/security.h | 6 ------
kernel/module.c | 5 -----
security/capability.c | 6 ------
security/dte/dte.c | 6 ------
security/dummy.c | 6 ------
security/lids/lids_lsm.c | 6 ------
security/owlsm.c | 6 ------
security/selinux/hooks.c | 7 -------
8 files changed, 48 deletions(-)
------
_______________________________________________
linux-security-module mailing list
linux-security-module@wirex.com
http://mail.wirex.com/mailman/listinfo/linux-security-module