-
Notifications
You must be signed in to change notification settings - Fork 79
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
AppArmor permission issues on Debian #1865
Comments
I'm not sure if we can directly fix this, but we might be able to add a hint about the issue and a way to resolve it otherwise. |
A clarified error message would help. I spent too much time fussing with chown and switching between system and user mode before I found a hint to the actual issue |
This feels more like an Ubuntu bug, where it should create the relevant policy when creating a new storage pool (it afaik already generates them for virtual machines). Getting a "good" error message would involve scraping We already work around in our tests for this issue:
For which there are existing bug reports: https://stackoverflow.com/questions/63767647/virt-aa-helper-doesnt-add-path-for-storage-pool-in-apparmor-generated-rules |
Looking at our tests further, we only do this on
|
So having a better message would be great; here's a start, which lifts from the above. Note that this is just a rough draft, showing that we should have a title, description that explains the problem and provides some kind of suggestion of what to do, and probably a link to the issue on a site+bug that's not going away anytime soon. (Launchpad and/or libvirt on GitLab are both probably fine.) This is meant as a starting point as to what the issue should probably be like. Feel free to even throw it all away and suggest something better, if you have a strong opinion on what to do. AppArmor may prevent access to $DISKAppArmor on $AFFECTED_HOST_OS may prevent access to $DISK when starting VM. Either use "block" formatted disks or add access to AppArmor. Upstream issue: (The launchpad link should have the external icon and should actually be a link, instead of some raw HTML text.) I guess we could use an expandable inline alert. If we do have links, they should be inside the description (so they're not visible by default, only when expanding). There are probably two places where we could show this: Either at the top at the top of the storage. It would be possible to have some kind of error message in the contextual menu, but the bug is blocking all the storage (not necessarily individual disks), so it makes sense to have it in one place, I think. |
Originally posted by @Betonhaus in #680 (comment)
The text was updated successfully, but these errors were encountered: