Re: why the skb->lsm_security is NULL inskb_free_security after skb_alloc_security ???

From: Yuan ChunYang (cyyuanml@private)
Date: Wed Sep 24 2003 - 02:12:45 PDT

  • Next message: Yuan ChunYang: "Re: about security_skb_alloc??"

    In this afternoon, i find this statement in alloc_skb function:
    " memset(skb, 0, offsetof(struct sk_buff, truesize));"
    
    After " security_skb_alloc "  function, the skb->lsm_security is set to
    0.
    
    Maybe i am wrong. But if it happen, it's NOT necessary to allocate
    sk_buff security struct .
    
    Can someone tell me what's the reason?
    



    This archive was generated by hypermail 2b30 : Wed Sep 24 2003 - 02:13:16 PDT