[RFC] No more module_* hooks

From: Greg KH (gregat_private)
Date: Thu Sep 26 2002 - 16:41:36 PDT

  • Next message: Greg KH: "Re: [RFC] No more module_* hooks"

    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(-)
    -----
    
    ChangeSetat_private, 2002-09-26 16:35:04-07:00, gregat_private
      put kernel/module.c back to the way it was before we touched it.
    
     kernel/module.c |    3 ---
     1 files changed, 3 deletions(-)
    ------
    
    ChangeSetat_private, 2002-09-26 16:33:07-07:00, gregat_private
      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(-)
    ------
    
    ChangeSetat_private, 2002-09-26 16:26:42-07:00, gregat_private
      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(-)
    ------
    
    ChangeSetat_private, 2002-09-26 16:20:38-07:00, gregat_private
      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-moduleat_private
    http://mail.wirex.com/mailman/listinfo/linux-security-module
    



    This archive was generated by hypermail 2b30 : Thu Sep 26 2002 - 16:44:40 PDT