|
793 | 793 | type kernel_t, bin_t, kernel_generic_helper_t, iscsid_t, iscsid_exec_t, var_run_t,
|
794 | 794 | init_t, unlabeled_t, systemd_logind_t, systemd_hostnamed_t, container_t,
|
795 | 795 | cert_t, container_var_lib_t, etc_t, usr_t, container_file_t, container_log_t,
|
796 |
| - container_share_t, container_runtime_exec_t, container_runtime_t, var_log_t, proc_t, io_uring_t, fuse_device_t, http_port_t; |
| 796 | + container_share_t, container_runtime_exec_t, container_runtime_t, var_log_t, proc_t, io_uring_t, fuse_device_t, http_port_t, |
| 797 | + container_var_run_t; |
797 | 798 | class key { read view };
|
798 | 799 | class file { open read execute execute_no_trans create link lock rename write append setattr unlink getattr watch };
|
799 | 800 | class sock_file { watch write create unlink };
|
|
805 | 806 | class filesystem associate;
|
806 | 807 | class bpf map_create;
|
807 | 808 | class io_uring sqpoll;
|
808 |
| - class anon_inode create; |
| 809 | + class anon_inode { create map read write }; |
809 | 810 | class tcp_socket name_connect;
|
810 | 811 | class chr_file { open read write };
|
811 | 812 | }
|
|
850 | 851 | allow container_t container_file_t:file { open read write append getattr setattr };
|
851 | 852 | allow container_t container_file_t:sock_file watch;
|
852 | 853 | allow container_t container_log_t:file { open read write append getattr setattr };
|
| 854 | + allow container_t container_log_t:dir read; |
853 | 855 | allow container_t container_share_t:dir { read write add_name remove_name };
|
854 | 856 | allow container_t container_share_t:file { read write create unlink };
|
855 | 857 | allow container_t container_runtime_exec_t:file { read execute execute_no_trans open };
|
|
864 | 866 | allow container_t var_log_t:file unlink;
|
865 | 867 | allow container_t proc_t:filesystem associate;
|
866 | 868 | allow container_t self:bpf map_create;
|
867 |
| - allow container_t io_uring_t:anon_inode create; |
868 | 869 | allow container_t self:io_uring sqpoll;
|
869 |
| - allow container_t io_uring_t:anon_inode { create }; |
| 870 | + allow container_t io_uring_t:anon_inode { create map read write }; |
| 871 | + allow container_t container_var_run_t:dir { add_name remove_name write }; |
| 872 | + allow container_t container_var_run_t:file { create open read rename unlink write }; |
870 | 873 |
|
871 | 874 | # Create the k3s registries file if needed
|
872 | 875 | %{if var.k3s_registries != ""}
|
|
0 commit comments