Mark Rowe | 0fe8997a | 2024-09-30 21:02:13 | [diff] [blame] | 1 | // Copyright 2024 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef BASE_MAC_CODE_SIGNATURE_SPI_H_ |
| 6 | #define BASE_MAC_CODE_SIGNATURE_SPI_H_ |
| 7 | |
| 8 | #include <unistd.h> |
| 9 | |
| 10 | extern "C" { |
| 11 | |
| 12 | // From |
| 13 | // https://github.com/apple-oss-distributions/xnu/blob/main/bsd/sys/codesign.h |
| 14 | |
| 15 | #define CS_OPS_STATUS 0 /* return status */ |
| 16 | #define CS_OPS_TEAMID 14 /* get team id */ |
| 17 | #define CS_OPS_VALIDATION_CATEGORY 17 /* get process validation category */ |
| 18 | |
| 19 | #define CS_MAX_TEAMID_LEN 64 |
| 20 | |
| 21 | int csops(pid_t pid, unsigned int ops, void* useraddr, size_t usersize); |
| 22 | |
| 23 | } // extern "C" |
| 24 | |
| 25 | #endif // BASE_MAC_CODE_SIGNATURE_SPI_H_ |