main.swift
13 lines 457 B
Raw
sha256:bd1eb24434d281fe65142038c1bf217493421f5a86880c22dff7e6037d2d4700 feat(companion): add production macOS distribution path Human minor ⚠ breaking 24 days ago
1 import Foundation
2 import KnowtationSecurity
3
4 do {
5 _ = try CustodyCapability.request(mode: .cli)
6 FileHandle.standardError.write(Data("unsigned caller unexpectedly received custody capability\n".utf8))
7 exit(1)
8 } catch RuntimeLaunchError.capabilityUnavailable(let reason) where reason == "caller_denied" {
9 exit(0)
10 } catch {
11 FileHandle.standardError.write(Data("caller probe failed for an unexpected reason: \(error)\n".utf8))
12 exit(2)
13 }
File History 1 commit
sha256:bd1eb24434d281fe65142038c1bf217493421f5a86880c22dff7e6037d2d4700 feat(companion): add production macOS distribution path Human minor ⚠ 24 days ago