Skip to content

Commit

Permalink
Allow syslogd_t to use tmpfs files created by container runtime
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Dec 13, 2022
1 parent 88f904d commit 735aaf4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.193.0)
policy_module(container, 2.194.0)

gen_require(`
class passwd rootok;
Expand Down Expand Up @@ -1377,3 +1377,12 @@ dev_rw_sysfs(container_device_plugin_init_t)
manage_dirs_pattern(container_device_plugin_init_t, kubernetes_file_t, kubernetes_file_t)
manage_files_pattern(container_device_plugin_init_t, kubernetes_file_t, kubernetes_file_t)
manage_lnk_files_pattern(container_device_plugin_init_t, kubernetes_file_t, kubernetes_file_t)

optional_policy(`
gen_require(`
type syslogd_t;
')

allow syslogd_t container_runtime_tmpfs_t:file { read write };
logging_send_syslog_msg(container_runtime_t)
')

0 comments on commit 735aaf4

Please sign in to comment.