Пример #1
0
static void __exit lsm_file_exit(void)
{
    if(unregister_security(&lsm_test_security_ops)){
        printk("unregister error................\n");
        return ;
    }

    printk("module exit.......\n");
}
Пример #2
0
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");
}
Пример #3
0
static void __exit tuxguardian_exit (void)
{

  /* remove ourselves from the security framework */
  if (unregister_security (&tuxguardian_security_ops)) {
    printk (KERN_INFO "Failure unregistering TuxGuardian\n");
  }
  else
    printk (KERN_INFO "\nTuxGuardian module removed\n");


}
Пример #4
0
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");
}
Пример #5
0
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");
	}
}
Пример #6
0
static void __exit task_exit(void) {
    if (unregister_security(&task_ops)) {
        printk("unregister error..\n");
    }
}