public interface MacCLibrary
FFM binding for the macOS sandbox API.

Both symbols are resolved from the system/default lookup (no dylib to load).

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases the error string buffer allocated by sandbox_init on failure.
    int
    sandbox_init(String profile, long flags, MemorySegment errorbuf)
    Initializes the macOS Seatbelt sandbox with the given profile file path and flags.
  • Method Details

    • sandbox_init

      int sandbox_init(String profile, long flags, MemorySegment errorbuf)
      Initializes the macOS Seatbelt sandbox with the given profile file path and flags. On failure, writes a pointer to an error string into errorbuf.
      See Also:
    • sandbox_free_error

      void sandbox_free_error(MemorySegment errstr)
      Releases the error string buffer allocated by sandbox_init on failure.
      See Also: