Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow cloud_init create dhclient var files and init_t manage net_conf_t
Add macro to allow domain read, write, create and delete network config pipes. Allow init_t rw net_conf_t fifo files. Cloud init listens on the FIFO file /run/cloud-init/hook-hotplug-cmd, which is created during a udev network Addresses the following denials: type=AVC msg=audit(07/28/2023 09:10:59.598:306) : avc: denied { add_name } for pid=1 comm=systemd name=hook-hotplug-cmd scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=dir permissive=1 ---- type=AVC msg=audit(07/28/2023 09:10:59.598:307) : avc: denied { create } for pid=1 comm=systemd name=hook-hotplug-cmd scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=fifo_file permissive=1 ---- type=AVC msg=audit(07/28/2023 09:10:59.598:308) : avc: denied { read write } for pid=1 comm=systemd name=hook-hotplug-cmd dev="tmpfs" ino=1069 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=fifo_file permissive=1 ---- type=AVC msg=audit(07/28/2023 09:10:59.598:309) : avc: denied { open } for pid=1 comm=systemd path=/run/cloud-init/hook-hotplug-cmd dev="tmpfs" ino=1069 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=fifo_file permissive=1 Resolves: rhbz#2225418
- Loading branch information