-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
SELinux blocking despite no mounts and proper ownership #1788
Comments
Do you have a link to the dockerfile? Looks like the only image there is quay.io/fodoj/mattermost:5.20.1 - is that correct? |
How are you running this image to reproduce the error? It appears to be attempting to connect to a database. Can you provide a minimal k8s manifest that uses this image to reproduce the issue? |
Also - it looks like there are a bunch of volumes defined for that image - are you sure that the permissions on files in those volumes are all correct? I don't think I've seen the specific error message you're getting. |
Hopefully an upstream mattermost image can be used, sounds like it is a combination of the USER and VOLUME directive, like here: https://github.com/mattermost/mattermost-server/blob/master/build/Dockerfile#L31-L47 |
Test with RKE first (beta release has enhanced selinux support). |
Using RKE2, I am not able to reproduce the issue at all. Because of this, I believe that it is working correctly in RKE2, however I am hesitant to say it with 100% certainty since the reproduction steps aren't clearly defined for me. Using the information from this issue and the linked issue, however, it does not happen. Also, installing from mattermost's documentation also appears to be working correctly. |
@rancher-max spaced on K3s install from commitid functionality. Since you can install K3s using the install script from commitid, you can essentially test from master. Thus, you can move forward and test this in K3s too. Assigned the issue back to you. |
Validated in K3S master commit id:
|
Follow up of #1666
Version:
1.18.2
Describe the bug
I got it with my custom image - quay.io/repository/fodoj/mattermost - you can try to re-produce it, it's a publicly available image (just a packaging around Mattermost). But I can also try to provide a more concrete test case, once I have more time to do so.
The issue I have is this:
There is a user, mattermost, part of the group - mattermost.
There is a file inside the image which is owned by mattermost:mattermost and has rw permissions for owner. Despite this permissions and the user inside the container being mattermost, I get permission denied error, which can be only SELinux related from the first glance.
The text was updated successfully, but these errors were encountered: