Skip to content

Commit 5997aa5

Browse files
committed
Allow domains that trans to container_runtime_t bpf:prog_run
Fixes: #389 Signed-off-by: Daniel J Walsh <[email protected]>
1 parent 883a00a commit 5997aa5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

container.if

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface(`container_runtime_domtrans',`
1919
corecmd_search_bin($1)
2020
domtrans_pattern($1, container_runtime_exec_t, container_runtime_t)
2121
allow container_runtime_t $1:fifo_file setattr;
22+
allow $1 container_runtime_t:bpf prog_run;
2223
')
2324

2425
########################################

container.te

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(container, 2.240.0)
1+
policy_module(container, 2.241.0)
22

33
gen_require(`
44
class passwd rootok;
@@ -743,7 +743,7 @@ optional_policy(`
743743
allow unconfined_domain_type { container_var_lib_t container_ro_file_t }:file entrypoint;
744744
fs_fusefs_entrypoint(unconfined_domain_type)
745745

746-
domtrans_pattern(unconfined_domain_type, container_runtime_exec_t , container_runtime_t)
746+
container_runtime_domtrans(unconfined_domain_type)
747747
')
748748

749749
optional_policy(`
@@ -1335,6 +1335,7 @@ container_manage_share_files(init_t)
13351335
container_manage_share_dirs(init_t)
13361336
container_filetrans_named_content(init_t)
13371337
container_runtime_read_tmpfs_files(init_t)
1338+
allow init_t container_runtime_t:bpf prog_run;
13381339

13391340
gen_require(`
13401341
attribute device_node;

0 commit comments

Comments
 (0)