main.swift
13 lines 457 B
Raw
sha256:1ccd31d41a3e3c90917cc0b460edeafcc615c6e74fa2ed104b2f6673ab0ec0b8 Merge feat/companion-phase-7-distribution: production macOS… Human 27 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:1ccd31d41a3e3c90917cc0b460edeafcc615c6e74fa2ed104b2f6673ab0ec0b8 Merge feat/companion-phase-7-distribution: production macOS… Human 27 days ago