Skip to content

Fix mount-attribute side-channel risks - #824

Open
KevinAtTriOpSys wants to merge 1 commit into
containers:mainfrom
KevinAtTriOpSys:fix/mount-attributes-order-execution
Open

KevinAtTriOpSys wants to merge 1 commit into
containers:mainfrom
KevinAtTriOpSys:fix/mount-attributes-order-execution

Conversation

@KevinAtTriOpSys

Copy link
Copy Markdown

There is a possible issue: The mount is first created, and the attributes are set afterwards. We should check the mount, and apply the attributes to the correct folder without following a non-mounted folder/symlink.

I did have one problem developing this, the laptop that I'm using does not have SELinux so I was unable to run all unit-tests. I also didn't want to change the broader design without consulting you first, so I limit myself to changing just the logic in bind-mount.c

There is a possible issue: The mount is first created, and the attributes are set afterwards. We should check the mount, and apply the attributes to the correct folder without following a symlink.
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.

1 participant