mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Mask out flags used internally for virSecretGetValue
Add a VIR_SECRET_GET_VALUE_INTERNAL_CALL flag value, replacing the originally separate libvirt_internal_call parameter. The flag is used to differentiate external virSecretGetValue() calls from internal calls by libvirt drivers that need to use the secret even if it is private. * src/libvirt_internal.h Remove VIR_DOMAIN_XML_FLAGS_MASK * src/driver.h Add VIR_SECRET_GET_VALUE_FLAGS_MASK constant and VIR_SECRET_GET_VALUE_INTERNAL_CALL. Re-add the VIR_DOMAIN_XML_FLAGS_MASK constant * src/libvirt.c (virSecretGetValue): Don't allow the user to specify internal flags.
This commit is contained in:
committed by
Daniel P. Berrange
parent
fcd4e26943
commit
ecc5c82985
@@ -24,9 +24,6 @@
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
/* bits 16 and above of virDomainXMLFlags are for internal use */
|
||||
#define VIR_DOMAIN_XML_FLAGS_MASK 0xffff
|
||||
|
||||
#ifdef WITH_LIBVIRTD
|
||||
int virStateInitialize(int privileged);
|
||||
int virStateCleanup(void);
|
||||
|
||||
Reference in New Issue
Block a user