]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: add ACL checks to API calls
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 24 Jun 2016 14:32:38 +0000 (17:32 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Tue, 23 Aug 2016 16:48:01 +0000 (19:48 +0300)
commit018b4ae14b9d0038fb1e7549830aa2e63a373efa
tree192bd1a773a6026df5cac57b787c29cc03ef3708
parent0adc9d26ae0cfbb4aa227e89424f3d48bb977da0
vz: add ACL checks to API calls

  vzDomainMigrateConfirm3Params is whitelisted. Otherwise we need to
move removing domain from domain list from perform to confirm
step. This would further imply adding a flag and check that migration
is in progress to prohibit mistakenly (maliciously) removing domains
on confirm step. vz version of p2p also need to be fixed to include confirm step.
One would also need to add means to cleanup pending migration
on client disconnect as now is has state across several API
calls.

  On the other hand current version of confirm step is totaly
harmless thus it is easier to whitelist it at the moment.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Signed-off-by: Maxim Nestratov <mnestratov@virtuozzo.com>
src/Makefile.am
src/check-aclrules.pl
src/remote/remote_protocol.x
src/vz/vz_driver.c