Libvirt - adding pool on external drive - no search permission
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.
permissions virtualization
migrated from serverfault.com Dec 13 '18 at 14:26
This question came from our site for system and network administrators.
add a comment |
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.
permissions virtualization
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
add a comment |
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.
permissions virtualization
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.
permissions virtualization
permissions virtualization
asked Dec 13 '18 at 10:56
m-momrm-momr
12
12
migrated from serverfault.com Dec 13 '18 at 14:26
This question came from our site for system and network administrators.
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
add a comment |
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
You do know you can change the user:group of files and directories, don't you?
– Tom
Dec 13 '18 at 11:01
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
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
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
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
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1100630%2flibvirt-adding-pool-on-external-drive-no-search-permission%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1100630%2flibvirt-adding-pool-on-external-drive-no-search-permission%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
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