0

I am running ubuntu 18.04.

First off, how can libvirt access /var/lib/libvirt/images when root is the owner and group? Is there another of security letting libvirt access root files in only some directories?

The new pool in on an external drive, same permissions as the default images folder. Via virt-manager I can create images, but it tells me it does not have search permissions. I cannot access the image after creating it.

EDIT: Ok, i figured in out. When mounting the disk from the desktop, it adds the following mount options: (rw,nosuid,nodev,relatime,uhelper=udisks2)

I am guessing its the nosuid tag. When mounting with "defaults" in fstab, it mounts with (rw,relatime) and it works fine.

migrated from serverfault.com Dec 13 '18 at 14:26

This question came from our site for system and network administrators.

  • You do know you can change the user:group of files and directories, don't you? – Tom Dec 13 '18 at 11:01
  • Yes Tom. You are missing the point. By default the image folder is owned by root, and libvirt can access it with a problem. How is that possible? and how is it that my new folder with the same permissions don't work? – m-momr Dec 13 '18 at 12:45
  • Ah... that’s because of SELinux. – Tom Dec 13 '18 at 12:55
  • Does SELinux run on Ubuntu by default? I thought SELinux was for Fedora/Red hat distros, and Apparmor was for Debian/Ubuntu. – m-momr Dec 13 '18 at 13:07

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.