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

incusd/project: Allow managed volumes under "allow" #708

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

stgraber
Copy link
Member

There are currently three valid values for restricted.devices.disk.

block will block everything, managed allows only managed volumes and allow allows not only managed volumes but also other types like shared host paths.

When under allow, restricted.devices.disk.paths can be used to limit the host paths that can be passed into the instance.

But that particular restriction should only apply to unmanaged volumes.

Closes #706

There are currently three valid values for `restricted.devices.disk`.

`block` will block everything, `managed` allows only managed volumes and
`allow` allows not only managed volumes but also other types like shared
host paths.

When under `allow`, `restricted.devices.disk.paths` can be used to limit
the host paths that can be passed into the instance.

But that particular restriction should only apply to unmanaged volumes.

Closes lxc#706

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@MatthewGentoo
Copy link

Wow, thanks for the speedy patch!

I've rebuilt incus 0.7 with this patch cherry-picked and it appears to solve the issue. I have restricted.devices.disk set to allow, restricted.devices.disk.paths set to some paths on my host, and managed volumes can also be attached without error.

@hallyn hallyn merged commit 0d3c5a6 into lxc:main Mar 30, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Unable to add custom volume to restricted.devices.disk.paths
3 participants