Contents

OnDiskCodeRequirement

A lightweight code requirement that you use to evaluate a code file on disk.

Declaration

struct OnDiskCodeRequirement

Overview

OnDiskCodeRequirement objects can only be built using constraints that conform to the OnDiskConstraint protocol. Specifically OnDiskCodeRequirement objects will be matched against a SecStaticCodeRef. A SecStaticCodeRef may reference any of the following:

  • The main executable of a bundle

  • A specific file on disk

  • The region of a Mach-O pertaining to a specific architecture (e.g. x86_64, arm64, arm64e).

Topics

Initializers

Instance Methods

Type Methods

See Also

Checking code requirements for code files on disk