]> git.proxmox.com Git - pve-manager.git/commit - PVE/CLI/pve6to7.pm
pve6to7: add check for pool permissions
authorLorenz Stechauner <l.stechauner@proxmox.com>
Thu, 17 Jun 2021 08:39:18 +0000 (10:39 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 18 Jun 2021 08:39:47 +0000 (10:39 +0200)
commit5b3bad378642a684466f25813778793b00e73b48
treeddb11a842455ecd63a109f4234b963103af0ba60
parentca155141b00ef1c5f0cb7a51e8aa5c3e035694a1
pve6to7: add check for pool permissions

the two checks make sure that:
* no user defined role 'PVEPoolUser' exists
* the user gets a hint for roles only containing Pool.Allocate and
    not Pool.Audit

a very simple parser for user.cfg was implemented to be able to
parse the (in pve 6 invalid) Pool.Audit permission

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
PVE/CLI/pve6to7.pm