cvs commit: src/sys/security/mac mac_net.c

Robert Watson rwatson at FreeBSD.org
Mon May 3 16:37:49 PDT 2004


rwatson     2004/05/03 16:37:48 PDT

  FreeBSD src repository

  Modified files:
    sys/security/mac     mac_net.c 
  Log:
  If the mbuf pointer passed to mac_mbuf_to_label() is NULL, or the tag
  lookup for the label tag fails, return NULL rather than something close
  to NULL.  This scenario occurs if mbuf header labeling is optional and
  a policy requiring labeling is loaded, resulting in some mbufs having
  labels and others not.  Previously, 0x14 would be returned because the
  NULL from m_tag_find() was not treated specially.
  
  Obtained from:  TrustedBSD Project
  Sponsored by:   DARPA, McAfee Research
  
  Revision  Changes    Path
  1.115     +4 -1      src/sys/security/mac/mac_net.c


More information about the cvs-src mailing list