Re: [PATCH][RFC] Remove kmod_set_label hook

From: Stephen D. Smalley (sdsat_private)
Date: Thu Mar 27 2003 - 11:43:05 PST

  • Next message: Chris Wright: "Re: [PATCH][RFC] Remove kmod_set_label hook"

    > What happens with the simple change:
    > 
    > ===== hooks.c 1.84 vs edited =====
    > --- 1.84/security/selinux/hooks.c	Wed Mar 26 10:38:19 2003
    > +++ edited/hooks.c	Thu Mar 27 10:25:14 2003
    > @@ -2411,7 +2411,7 @@
    >  
    >  	tsec = p->security;
    >  	tsec->osid = tsec->sid;
    > -	tsec->sid = SECINITSID_INIT; 
    > +	tsec->sid = SECINITSID_KERN; 
    >  	return;
    >  }
    
    It doesn't compile ;).  But amending the above to SECINITSID_KERNEL
    is fine.
    
    --
    Stephen Smalley, NSA
    
    
    _______________________________________________
    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 Mar 27 2003 - 11:36:07 PST