void tpe_exit(void) { if(!secondary) unregister_security(&tpe_security_ops); else mod_unreg_security(TPE_MODULE_NAME, &tpe_security_ops); tpe_unregister_procfs(); tpe_deinit_conf(); TPE_INFO("Unregistered from the kernel"); }
static void __exit realtime_exit(void) { /* remove ourselves from the security framework */ if (secondary) { if (mod_unreg_security(MY_NAME, &capability_ops)) printk(KERN_INFO RT_ERR "Failure unregistering " "capabilities with primary module.\n"); } else if (unregister_security(&capability_ops)) { printk(KERN_INFO RT_ERR "Failure unregistering capabilities with the kernel\n"); } printk(KERN_INFO "Realtime Capability LSM exiting\n"); }
static void __exit capability_exit (void) { /* remove ourselves from the security framework */ if (secondary) { if (mod_unreg_security (MY_NAME, &capability_ops)) printk (KERN_INFO "Failure unregistering capabilities " "with primary module.\n"); return; } if (unregister_security (&capability_ops)) { printk (KERN_INFO "Failure unregistering capabilities with the kernel\n"); } }