Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
libvirt.11701
620d9dd5-qemu-no-dac-override-nonroot.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 620d9dd5-qemu-no-dac-override-nonroot.patch of Package libvirt.11701
commit 620d9dd598fde388f56ac37bcd3b31168c2f9fc6 Author: Peter Krempa <pkrempa@redhat.com> Date: Mon Feb 4 16:24:15 2019 +0100 qemu: caps: Don't try to ask for CAP_DAC_OVERRIDE if non-root It will not work. This breaks qemu capabilities probing as a user. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com> Index: libvirt-4.0.0/src/qemu/qemu_capabilities.c =================================================================== --- libvirt-4.0.0.orig/src/qemu/qemu_capabilities.c +++ libvirt-4.0.0/src/qemu/qemu_capabilities.c @@ -5268,7 +5268,8 @@ virQEMUCapsInitQMPCommandRun(virQEMUCaps #if WITH_CAPNG /* QEMU might run into permission issues, e.g. /dev/sev (0600), override * them just for the purpose of probing */ - virCommandAllowCap(cmd->cmd, CAP_DAC_OVERRIDE); + if (geteuid() == 0) + virCommandAllowCap(cmd->cmd, CAP_DAC_OVERRIDE); #endif virCommandSetGID(cmd->cmd, cmd->runGid);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor