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 idmapped mount layer on intercepted mounts #12484

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

mihalicyn
Copy link
Member

@mihalicyn mihalicyn commented Oct 30, 2023

Ported from lxc/incus#197

This PR fixes an issue of mount syscall interception when security.syscalls.intercept.mount.shift is true and we mount block-device based filesystem inside the container (with a new superblock, not bindmount). Without this PR only bindmount case works properly in combination with enabled security.syscalls.intercept.mount.shift.

Signed-off-by: Stéphane Graber <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]>
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
@mihalicyn mihalicyn requested a review from tomponline as a code owner October 30, 2023 15:38
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tomponline tomponline merged commit d1cbd81 into canonical:main Oct 31, 2023
25 checks passed
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

Successfully merging this pull request may close these issues.

4 participants