Re: Stacking - anyone care how to report module id's?

From: Greg KH (gregat_private)
Date: Fri Aug 23 2002 - 14:25:22 PDT

  • Next message: David Wheeler: "Re: Stacking - anyone care how to report module id's?"

    On Fri, Aug 23, 2002 at 02:09:02PM -0700, Greg KH wrote:
    > stacker_sys_security (unsigned int id, unsigned int call, unsigned long *args)
    > {
    > 	struct list_head *list;
    > 	struct stacked_modules *module;
    > 	int retval = -ENOSYS;
    > 
    > 	lock_the_list();
    > 	list_for_each(list, &security_module_list) {
    > 		module = container_of (list, struct stacked_modules, module);
    > 		retval = module->ops->sys_security (id, call, args)
    > 		if (retval != -ENOSYS)
    > 			goto exit;
    > 		}
    > 	unlock_the_list();
    > 
    > exit:
    > 	return retval;
    > }
    
    Oops, you need to move the "exit:" label in the above function to be
    before the "unlock_the_list();" line to work properly.
    
    Sorry about that.
    
    greg k-h
    _______________________________________________
    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 : Fri Aug 23 2002 - 14:32:43 PDT