blob: b5f5a30139c88a1093682a9282de468b56e960b7 [file] [log] [blame]
Mark Rowe0fe8997a2024-09-30 21:02:131// 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
10extern "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
21int 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_