Skip to content

Commit

Permalink
Allow init_t domain to manager kubernetes_file_t
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed May 11, 2021
1 parent e1092cd commit da28288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions container.if
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,13 @@ interface(`container_exec_share_files',`
interface(`container_manage_config_files',`
gen_require(`
type container_config_t;
type kubernetes_file_t;
')

files_search_var_lib($1)
manage_files_pattern($1, container_config_t, container_config_t)
manage_dirs_pattern($1, kubernetes_file_t, kubernetes_file_t)
manage_files_pattern($1, kubernetes_file_t, kubernetes_file_t)
')

########################################
Expand Down
2 changes: 1 addition & 1 deletion container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.161.1)
policy_module(container, 2.162.0)
gen_require(`
class passwd rootok;
')
Expand Down

0 comments on commit da28288

Please sign in to comment.