Open jhoelzel opened 8 months ago
Cilium runs as {"level":"s0","type":"spc_t"}
module cilium_selinux 1.2;
require {
type usr_t;
type container_t;
class dir { add_name remove_name write };
class file { create unlink write };
# class process transition;
}
# Define the new type
type container_t_cilium, container_domain;
typeattribute container_t_cilium container_t;
# Allow container_t_cilium to transition from container_t
#allow container_t container_t_cilium:process transition;
#============= container_t_cilium ==============
# Inherit container_t permissions
roleattribute container_t_cilium container_t;
# Specify additional permissions for container_t_cilium
allow container_t_cilium usr_t:dir { add_name remove_name write };
allow container_t_cilium usr_t:file { create unlink write };
but i still had no luck i would still receive the same log entries as above so for now the general solution it is
as with #50 its the same problem for cilium.
Fix so far:
as usual not happy and needs to be improved but works for now ;)