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

Feature to ignore chowns of /dev #839

Open
EddieX64 opened this issue Sep 25, 2024 · 0 comments
Open

Feature to ignore chowns of /dev #839

EddieX64 opened this issue Sep 25, 2024 · 0 comments

Comments

@EddieX64
Copy link

EddieX64 commented Sep 25, 2024

Hello,

The problem arise when something inside the sysbox container is trying to chown devices in /dev. For instance, when i use the following Dockerfile

FROM registry.suse.com/suse/sle15:15.5
RUN zypper update -y

If SUSE base image is not latest version and contain outdated version of permissions package, zypper package manager will update it and permissions package will try to execute chown root:root on all devices in /dev that are not owned by root:

/dev/full
/dev/kmsg
/dev/null
/dev/random
/dev/tty
/dev/urandom
/dev/zero

This leads docker build to fail with an error exit code. Of course this can be avoided by using latest SUSE base image where permissions package is already updated, but it's not always possible. I read the sysbox docs and found some useful feature to ignore chown of /sys: https://github.com/nestybox/sysbox/blob/master/docs/user-guide/configuration.md#ignoring-chowns-of-sysfs
My question: is it possible to add the same feature for chowns of /dev?

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

1 participant