mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
portability fix
* src/lxc_container.c: fix a portability issue if PR_CAPBSET_DROP is not defined. Daniel
This commit is contained in:
parent
b121c7871f
commit
43692df590
@ -1,3 +1,8 @@
|
||||
Fri May 29 16:25:32 CEST 2009 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/lxc_container.c: fix a portability issue if PR_CAPBSET_DROP
|
||||
not defined.
|
||||
|
||||
Fri May 29 10:16:13 EDT 2009 Cole Robinson <crobinso@redhat.com>
|
||||
|
||||
* src/network_driver.c src/network_conf.c src/network_conf.h:
|
||||
|
@ -644,6 +644,7 @@ static int lxcContainerSetupMounts(virDomainDefPtr vmDef,
|
||||
|
||||
static int lxcContainerDropCapabilities(virDomainDefPtr vmDef ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifdef PR_CAPBSET_DROP
|
||||
int i;
|
||||
const struct {
|
||||
int id;
|
||||
@ -660,7 +661,9 @@ static int lxcContainerDropCapabilities(virDomainDefPtr vmDef ATTRIBUTE_UNUSED)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
#else /* ! PR_CAPBSET_DROP */
|
||||
VIR_WARN0(_("failed to drop capabilities PR_CAPBSET_DROP undefined"));
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user