cvs commit: src/sys/kern kern_mac.c

Robert Watson rwatson at FreeBSD.org
Sat Apr 16 11:33:13 PDT 2005


rwatson     2005-04-16 18:33:13 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_mac.c 
  Log:
  In mac_get_fd(), remove unconditional acquisition of Giant around copying
  of the socket label to thread-local storage, and replace it with
  conditional acquisition based on debug.mpsafenet.  Acquire the socket
  lock around the copy operation.
  
  In mac_set_fd(), replace the unconditional acquisition of Giant with
  the conditional acquisition of Giant based on debug.mpsafenet.  The socket
  lock is acquired in mac_socket_label_set() so doesn't have to be
  acquired here.
  
  Obtained from:  TrustedBSD Project
  Sponsored by:   SPAWAR, SPARTA
  
  Revision  Changes    Path
  1.116     +7 -9      src/sys/kern/kern_mac.c


More information about the cvs-src mailing list