]> git.proxmox.com Git - proxmox-backup.git/commit
reader: track index chunks and limit access
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Oct 2020 09:21:01 +0000 (11:21 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 9 Oct 2020 10:54:09 +0000 (12:54 +0200)
commitd479f0c810ea863889ae3fb0b2225ac9de4e2538
treeaa36bc04b698dbb529d5544e4fcc200e3df5b800
parent1d5dac1b1dcc1f6bcb503d6fe6fb514ce3c5c109
reader: track index chunks and limit access

a reader connection should not be allowed to read arbitrary chunks in
the datastore, but only those that were previously registered by opening
the corresponding index files.

this mechanism is needed to allow unprivileged users (that don't have
full READ permissions on the whole datastore) access to their own
backups via a reader environment.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/api2/reader.rs
src/api2/reader/environment.rs