MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_macos_adhoc_sign

Function cbm_macos_adhoc_sign

src/cli/cli.c:6949–6957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6947
6948#ifdef __APPLE__
6949static int cbm_macos_adhoc_sign(const char *binary_path) {
6950 /* Remove quarantine xattr (best effort — may not exist) */
6951 const char *xattr_argv[] = {"/usr/bin/xattr", "-d", "com.apple.quarantine", binary_path, NULL};
6952 (void)cbm_exec_no_shell(xattr_argv);
6953
6954 /* Ad-hoc sign (required for arm64, harmless for x86_64) */
6955 const char *sign_argv[] = {"/usr/bin/codesign", "--sign", "-", "--force", binary_path, NULL};
6956 return cbm_exec_no_shell(sign_argv);
6957}
6958#endif
6959
6960#ifdef CBM_CLI_ENABLE_TEST_API

Callers 2

cbm_cmd_installFunction · 0.85

Calls 1

cbm_exec_no_shellFunction · 0.85

Tested by

no test coverage detected