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

Systemd needs to access container_file_t for side-cars #52

Merged
merged 2 commits into from Dec 17, 2019

Conversation

cjeanner
Copy link
Collaborator

@cjeanner cjeanner commented Dec 17, 2019

Neutron "side-cars" containers are now managed by Systemd instead of
in-container wrappers.
Basically, Systemd is instructed to check a certain location and take
action upon file creation|change|deletion. Since this "flag" is managed
from within neutron container(s), Systemd must be allowed to go in
there.

Related: https://bugs.launchpad.net/tripleo/+bug/1853652

Copy link

@raukadah raukadah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try that :-)

Neutron "side-cars" containers are now managed by Systemd instead of
in-container wrappers.
Basically, Systemd is instructed to check a certain location and take
action upon file creation|change|deletion. Since this "flag" is managed
from within neutron container(s), Systemd must be allowed to go in
there.

Related: https://bugs.launchpad.net/tripleo/+bug/1853652
Copy link
Collaborator

@jpichon jpichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small additional changes is required as the test file is currently a no-op:

https://github.com/redhat-openstack/openstack-selinux/blob/master/Makefile#L73-L74

Test files are installed in two steps at the moment to preserve the correct mode. Unfortunately only test files starting with bz are copied over so we'll want to add something for lp.

Looks like that could be fixed with 2 changes:

  • ${INSTALL} -m 0644 tests/bz* tests/lp* ${LOCALDIR}/tests on the Makefile
  • Changing TEST_FILES to also list lp* in tests/check_all (TEST_FILES=$(/bin/ls -1 bz* lp*))

Hope that makes sense. Thank you!

@cjeanner
Copy link
Collaborator Author

Change added as a new commit in order to be keep the "one change one commit" idea.

Copy link
Collaborator

@jpichon jpichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!! Thanks

@jpichon jpichon merged commit a4f6185 into redhat-openstack:master Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants