mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
access: fix incorrect addition to virAccessPermNetwork
Commit e69444e17
(first appeared in libvirt-5.5.0) added the new value
"VIR_ACCESS_PERM_NETWORK_SEARCH_PORTS" to the virAccessPerNetwork
enum, and also the string "search_ports" to the VIR_ENUM_IMPL() macro
for that enum. Unfortunately, the enum value was added in the middle
of the list, while the string was added to the end of the
VIR_ENUM_IMPL().
This patch corrects that error by moving the new value to the end of
the enum definition, so that the order matches that of the string
list.
Resolves: https://bugzilla.redhat.com/1741428
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
4b58fdf280
commit
8d6eaf5e09
@ -410,18 +410,18 @@ typedef enum {
|
|||||||
*/
|
*/
|
||||||
VIR_ACCESS_PERM_NETWORK_START,
|
VIR_ACCESS_PERM_NETWORK_START,
|
||||||
|
|
||||||
/**
|
|
||||||
* @desc: List network ports
|
|
||||||
* @message: Listing network ports requires authorization
|
|
||||||
*/
|
|
||||||
VIR_ACCESS_PERM_NETWORK_SEARCH_PORTS,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc: Stop network
|
* @desc: Stop network
|
||||||
* @message: Stopping network requires authorization
|
* @message: Stopping network requires authorization
|
||||||
*/
|
*/
|
||||||
VIR_ACCESS_PERM_NETWORK_STOP,
|
VIR_ACCESS_PERM_NETWORK_STOP,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @desc: List network ports
|
||||||
|
* @message: Listing network ports requires authorization
|
||||||
|
*/
|
||||||
|
VIR_ACCESS_PERM_NETWORK_SEARCH_PORTS,
|
||||||
|
|
||||||
VIR_ACCESS_PERM_NETWORK_LAST
|
VIR_ACCESS_PERM_NETWORK_LAST
|
||||||
} virAccessPermNetwork;
|
} virAccessPermNetwork;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user