blob: ada65aeac6713aff67eebc532cad03516ba4cdc1 [file] [log] [blame]
Steven Moreland65981752022-02-10 00:32:44 +00001# platform should have ownership of network attachpoints for BPF
2neverallow {
3 bpfdomain
4 -bpfloader
5 -netd
6 -netutils_wrapper
7 -network_stack
8 -system_server
9} self:global_capability_class_set { net_admin net_raw };
10
11# any domain which uses bpf is a bpfdomain
12neverallow { domain -bpfdomain } *:bpf *;
13
Stephane Leeb30e8882022-03-21 17:31:14 -070014allow bpfdomain fs_bpf:dir search;
Maciej Żenczykowskid5098f92022-07-18 03:34:30 -070015
16# genfscon doesn't seem to trigger during symlink creation,
17# and thus any created symlinks end up as 'fs_bpf:lnk_type',
18# however this feels like a kernel bug / missing feature,
19# so let's allow all bpffs_type's instead,
20# this will keep things working even if this is fixed.
21allow bpfdomain bpffs_type:lnk_file read;