Interface MacCLibrary
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 TypeMethodDescriptionvoidsandbox_free_error(MemorySegment errstr) Releases the error string buffer allocated bysandbox_initon failure.intsandbox_init(String profile, long flags, MemorySegment errorbuf) Initializes the macOS Seatbelt sandbox with the given profile file path and flags.
-
Method Details
-
sandbox_init
Initializes the macOS Seatbelt sandbox with the given profile file path and flags. On failure, writes a pointer to an error string intoerrorbuf.- See Also:
-
sandbox_free_error
Releases the error string buffer allocated bysandbox_initon failure.- See Also:
-