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

Discrepancy between user/group IDs #43

Open
steverecio opened this issue Feb 18, 2024 · 1 comment
Open

Discrepancy between user/group IDs #43

steverecio opened this issue Feb 18, 2024 · 1 comment

Comments

@steverecio
Copy link

There is a discrepancy between the UID and GID for the clamav user and group between the debian and alpine images:

https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.3/debian/Dockerfile#L123
https://github.com/Cisco-Talos/clamav-docker/blob/main/clamav/1.3/alpine/Dockerfile#L114

In the debian image, the clamav user id and group id are both guaranteed to be 1000 whereas the alpine image specifies the user id as 100 and does not specify the group id. This leads to inconsistent behavior when switching between the different images. The alpine image should be ideally made to match the debian image so that permissions can be accurately set.

@micahsnyder
Copy link
Collaborator

The debian image has been altered some from the alpine image in order to support starting it as a non-root user. I believe this is why they differ in this case.

I don't think there would be any problem changing the alpine image to match, with uid and gid set to 1000. It's possible it would break some expectation for existing users. But ... probably would be okay.

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

No branches or pull requests

2 participants