Always set the hard
status flag on launch.
SDK
- macOS 10.6+
Framework
- Security
Declaration
static var forceHard: Sec Code Signature Flags { get }
Discussion
The k
flag indicates that the code prefers to be denied access to a resource if gaining such access would cause its invalidation. Once the hard bit is set, it cannot be cleared. Therefore, setting this option flag guarantees that the code will always have the k
flag set.