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

fix: oci: use correct bind options for user /dev[/xxx] binds (release-4.0) #2345

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Nov 10, 2023

Description of the Pull Request (PR):

Cherry-pick #2328

When a user requests a bind of all of /dev, or a single /dev/xxx device, into the container it is because they wish to use a device.

Prior to this PR, OCI-mode was binding /dev sources into the container with nodev set as a flag. Therefore e.g. -B /dev/fuse did not result in a usable FUSE device in the container.

Modify the code so it behaves like native mode. A user request to bind all of /dev is treated in the same way as the full /dev mount with --no-compat. A user request to bind a single /dev/xxx entry is performed with logic and flags for dev entries specifically.

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

@dtrudg dtrudg added the bug Something isn't working label Nov 10, 2023
@dtrudg dtrudg added this to the SingularityCE 4.0.2 milestone Nov 10, 2023
@dtrudg dtrudg self-assigned this Nov 10, 2023
@dtrudg dtrudg marked this pull request as ready for review November 10, 2023 10:30
…-4.0)

Cherry-pick sylabs#2328

When a user requests a bind of all of `/dev`, or a single `/dev/xxx`
device, into the container it is because they wish to use a device.

Prior to this PR, OCI-mode was binding `/dev` sources into the
container with `nodev` set as a flag. Therefore e.g. `-B /dev/fuse`
did not result in a usable FUSE device in the container.

Modify the code so it behaves like native mode. A user request to bind
all of `/dev` is treated in the same way as the full `/dev` mount with
`--no-compat`. A user request to bind a single `/dev/xxx` entry is
performed with logic and flags for dev entries specifically.

Fixes sylabs#2326
@dtrudg dtrudg merged commit 47430ec into sylabs:release-4.0 Nov 10, 2023
1 check passed
@dtrudg dtrudg deleted the issue236 branch November 10, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants