Re: about security_skb_alloc??

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

  • Next message: Yuan ChunYang: "Attention: sk_buff security struct can NOT be allocated in security_skb_alloc hooks!"

    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:35 PDT