From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7TwG-0002do-H6 for qemu-devel@nongnu.org; Tue, 02 Oct 2018 19:18:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7TgY-0004CQ-Vl for qemu-devel@nongnu.org; Tue, 02 Oct 2018 19:02:35 -0400 From: John Snow Date: Tue, 2 Oct 2018 19:02:12 -0400 Message-Id: <20181002230218.13949-1-jsnow@redhat.com> Subject: [Qemu-devel] [PATCH v4 0/6] dirty-bitmaps: fix QMP command permissions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: Markus Armbruster , "Dr. David Alan Gilbert" , eblake@redhat.com, Kevin Wolf , Juan Quintela , Paolo Bonzini , vsementsov@virtuozzo.com, Fam Zheng , Max Reitz , Stefan Hajnoczi , John Snow based on: jsnow/bitmaps staging branch This series builds on a previous standalone patch and adjusts the permission for all (or most) of the QMP bitmap commands. V4: - Replace "in-use" with "in use" - Replace "user_modifiable" version with "user_locked" - Remove more usages of frozen-and-or-locked in NBD. John Snow (6): block/dirty-bitmaps: add user_locked status checker block/dirty-bitmaps: fix merge permissions block/dirty-bitmaps: allow clear on disabled bitmaps block/dirty-bitmaps: prohibit enable/disable on locked/frozen bitmaps block/backup: prohibit backup from using in use bitmaps nbd: forbid use of frozen bitmaps block/dirty-bitmap.c | 13 +++++--- blockdev.c | 75 +++++++++++++++++++----------------------- include/block/dirty-bitmap.h | 1 + migration/block-dirty-bitmap.c | 10 ++---- nbd/server.c | 4 +-- 5 files changed, 48 insertions(+), 55 deletions(-) -- 2.14.4