Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cloud_init create dhclient var files #1800

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

5umm3r15
Copy link
Contributor

Resolves: rhbz#2225418

@5umm3r15
Copy link
Contributor Author

Waiting for the test results

@5umm3r15 5umm3r15 marked this pull request as ready for review August 9, 2023 11:14
@5umm3r15
Copy link
Contributor Author

5umm3r15 commented Aug 9, 2023

Tests passed, ready for the review @zpytela

policy/modules/contrib/cloudform.te Outdated Show resolved Hide resolved
policy/modules/system/init.te Outdated Show resolved Hide resolved
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
@zpytela
Copy link
Contributor

zpytela commented Aug 11, 2023

LGTM

@zpytela zpytela merged commit cbd3b21 into fedora-selinux:rawhide Aug 11, 2023
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants