[pbs-devel] applied: [PATCH proxmox-backup] change tape drive lock path

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jul 12 18:20:16 CEST 2021


On 12.07.21 17:23, Dietmar Maurer wrote:
> New kernel has stricter checks on tmpfs with stick-bit on directories, so some
> commands (i.e. proxmox-tape changer status) fails when executed as root, because
> permission checks fails when locking the drive.
> 
> This patch move the drive locks to /run/proxmox-backup/drive-lock.
> 
> Note: This is incompatible to old locking mechmanism, so users may not
> run tape backups during update (or running backup can fail).
> ---
> 
> Lock file permissions are still wrong if the user runs "proxmox-tape
> changer status" as root and the lock file does not exist already.
> 
>  src/bin/proxmox-backup-api.rs |  1 +
>  src/tape/drive/mod.rs         |  6 +++---
>  src/tape/mod.rs               | 18 ++++++++++++++++++
>  3 files changed, 22 insertions(+), 3 deletions(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list