-
Notifications
You must be signed in to change notification settings - Fork 22
"systemctl start openshift" on Fedora 24 cause a lot of avc denied with start failure #181
Comments
I wonder if a policy update fixed this issue, which is why the AVC's say they are allowed in current policy. I would have figured these rules were always allowed though. Strange. |
@alezzandro Thank you for trying it on fedora24, (even support for fedora is not in the scope for this project) but I think we can work it more to make it available for fedora channel. @rhatdan So you mean that issue which @alezzandro faced should be already part of allowed rules? |
Yes I believe so. |
I've also tried it on a fresh Fedora 24 vagrant machine, The issue is the same (look at file attached below) with a lot of 'AVC avc: denied { transition }' |
@alezzandro Thanks. @rhatdan would it be more appropriate to open a bug from SELiunx side as you said it should be part of allowed rules? |
How do you have /usr mounted? Do you have it mounted with nosuid? |
No /usr mounted:
|
…systemd service file. More info @ projectatomic#181
@alezzandro Can you please create a PR on that so I will add it to adb-utils next release? |
Hi there,
I've managed to get a working adb-utils scripts on Fedora 23 without any modification, just installing the rpm for centos7.
Anyway after upgrading to F24 the "systemctl start openshift" command keeps failing while SELinux complains about a:
avc: denied { transition } for pid=**** comm="sh" path="/usr/bin/docker" ...
(I've just tried the latest 2.0.1 version and it fails too)
If I try to troubleshoot the issue SELinux says that the current policies' set already includes the wanted policy (this seems too strange):
I've managed to get it working again by removing all the occurences of bash interpreter: /usr/bin/sh, probabibly new releases of SELinux complain on the usage of bash interpreter invoked directly instead that through the one specified on the first line of the scripts.
This is the original file:
This the one I edited:
I don't know if the Fedora support is in scope for this project, anyway I think this issue may break the scripts in next RHEL releases, so if you agree I can create a pull request and submit the fix.
Thanks,
Best Regards.
The text was updated successfully, but these errors were encountered: