Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 207421 | Differences between
and this patch

Collapse All | Expand All

(-)src/rlocate-module/rlocate.c.orig (-1 / +4 lines)
Lines 1042-1051 Link Here
1042
no_exclude_dir_arg:
1042
no_exclude_dir_arg:
1043
        kfree(path_buffer); 
1043
        kfree(path_buffer); 
1044
no_path_buffer:
1044
no_path_buffer:
1045
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,24)
1045
        if ( mod_register ) 
1046
        if ( mod_register ) 
1046
                mod_unreg_security(DEVICE_NAME, &rlocate_security_ops);
1047
                mod_unreg_security(DEVICE_NAME, &rlocate_security_ops);
1047
        else
1048
        else
1048
                unregister_security(&rlocate_security_ops);
1049
                unregister_security(&rlocate_security_ops);
1050
#endif
1049
no_lsm:
1051
no_lsm:
1050
        rlocate_dev_unregister();
1052
        rlocate_dev_unregister();
1051
out:
1053
out:
Lines 1063-1068 Link Here
1063
        free_page( (unsigned long)STARTING_PATH_ARG);
1065
        free_page( (unsigned long)STARTING_PATH_ARG);
1064
        free_page( (unsigned long)EXCLUDE_DIR_ARG);
1066
        free_page( (unsigned long)EXCLUDE_DIR_ARG);
1065
        kfree(path_buffer); 
1067
        kfree(path_buffer); 
1068
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,24)
1066
        if ( mod_register ) {
1069
        if ( mod_register ) {
1067
		if (mod_unreg_security(DEVICE_NAME, &rlocate_security_ops)) 
1070
		if (mod_unreg_security(DEVICE_NAME, &rlocate_security_ops)) 
1068
                        printk(KERN_INFO "rlocate: failed to unregister "
1071
                        printk(KERN_INFO "rlocate: failed to unregister "
Lines 1071-1077 Link Here
1071
	} else if (unregister_security(&rlocate_security_ops)) 
1074
	} else if (unregister_security(&rlocate_security_ops)) 
1072
                        printk(KERN_INFO "rlocate: failed to unregister "
1075
                        printk(KERN_INFO "rlocate: failed to unregister "
1073
					 "rlocate security module.\n");
1076
					 "rlocate security module.\n");
1074
        
1077
#endif  
1075
        rlocate_dev_unregister();
1078
        rlocate_dev_unregister();
1076
  	printk(KERN_INFO "rlocate: unloaded\n");
1079
  	printk(KERN_INFO "rlocate: unloaded\n");
1077
}
1080
}

Return to bug 207421