SeaBee
Loading...
Searching...
No Matches
bpf
include
shared_rust_types.h
1
// SPDX-License-Identifier: Apache-2.0
2
#ifndef SHARED_RUST_TYPES_H_
3
#define SHARED_RUST_TYPES_H_
9
#include "
constants.h
"
10
16
enum
SecurityLevel {
17
SECURITY_UNINIT = 0,
// uninitialized
18
SECURITY_ALLOW,
// allow an action
19
SECURITY_AUDIT,
// allow an action and audit it
20
SECURITY_BLOCK,
// deny action and audit it
21
};
22
31
struct
c_policy_config
{
32
unsigned
long
long
signal_allow_mask;
// 8
33
unsigned
char
signal_access;
// 1
34
unsigned
char
ptrace_access;
// 1
35
unsigned
char
file_write_access;
// 1
36
unsigned
char
map_access;
// 1
37
unsigned
char
protect_pins;
// 1
38
unsigned
char
padding_1;
// 3
39
unsigned
char
padding_2;
40
unsigned
char
padding_3;
41
};
42
43
#endif
constants.h
c_policy_config
c_policy_config contains security levels for protected objects and corresponds to a policy id.
Definition
shared_rust_types.h:31
Generated by
1.9.8