Skip to content

Commit

Permalink
Allow spc_t domains to set bpf rules on any domain
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Jul 16, 2021
1 parent 99b40c5 commit 4c51e97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.163.0)
policy_module(container, 2.164.0)

gen_require(`
class passwd rootok;
Expand Down Expand Up @@ -667,6 +667,9 @@ optional_policy(`
optional_policy(`
unconfined_domain_noaudit(spc_t)
domain_ptrace_all_domains(spc_t)
// This should eventually be in upstream policy.
// https://github.com/fedora-selinux/selinux-policy/pull/806
allow spc_t domain:bpf { map_create map_read map_write prog_load prog_run };
')

optional_policy(`
Expand Down

0 comments on commit 4c51e97

Please sign in to comment.