提交 4f0438ef 编写于 作者: E Eric Blake

backup: Add new domain:checkpoint access control

Creating a checkpoint does not modify guest-visible state,
but does modify host resources.  Rather than reuse existing
domain:write, domain:block_write, or domain:snapshot access
controls, it seems better to introduce a new access control
specific to tasks related to checkpoints and incremental
backups of guest disk state.
Signed-off-by: NEric Blake <eblake@redhat.com>
Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 b736619f
......@@ -39,7 +39,8 @@ VIR_ENUM_IMPL(virAccessPermDomain,
"getattr", "read", "write", "read_secure",
"start", "stop", "reset",
"save", "delete",
"migrate", "snapshot", "suspend", "hibernate", "core_dump", "pm_control",
"migrate", "checkpoint", "snapshot", "suspend", "hibernate",
"core_dump", "pm_control",
"init_control", "inject_nmi", "send_input", "send_signal",
"fs_trim", "fs_freeze",
"block_read", "block_write", "mem_read",
......
......@@ -186,6 +186,12 @@ typedef enum {
*/
VIR_ACCESS_PERM_DOMAIN_MIGRATE, /* Host migration */
/**
* @desc: Checkpoint domain
* @message: Checkpointing domain requires authorization
*/
VIR_ACCESS_PERM_DOMAIN_CHECKPOINT, /* Checkpoint disks */
/**
* @desc: Snapshot domain
* @message: Snapshotting domain requires authorization
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册