HomeFreeBSD

In mac_get_fd(), remove unconditional acquisition of Giant around copying
rS145160Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

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

Details

Provenance
rwatsonAuthored on
Parents
rS145159: MF5STABLE 1.21.2.5:
Branches
Unknown
Tags
Unknown

Event Timeline