Skip to content

Commit

Permalink
mod_kvm: retain root priviledges to create user runtime directory
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 12, 2018
1 parent 03b301c commit 58f032c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Linux/mod_kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,8 @@ extern "C" {
HSP *sp = (HSP *)EVROOTDATA(mod);

requestVNodeRole(mod, HSP_VNODE_PRIORITY_KVM);

retainRootRequest(mod, "needed by virConnectOpenReadOnly() to create user runtime directory");

// open the libvirt connection - failure is not an option
int virErr = virInitialize();
if(virErr != 0) {
Expand Down

0 comments on commit 58f032c

Please sign in to comment.