[Debian-ha-maintainers] Bug#1082433: drbd-utils: Permission mismatch for /var/lock/ directory

Helmut Grohne helmut at subdivi.de
Sat Sep 21 08:04:02 BST 2024


Control: clone -1 -2
Control: retitle -2 base-files: is /var/lock a directory or a symlink?
Control: severity -2 normal
Control: reassign -2 base-files

On Sat, Sep 21, 2024 at 01:19:39AM +0200, Guillem Jover wrote:
>   $ dpkg-deb -c base-files_13.5_amd64.deb | grep var/lock
>   drwxrwxrwt root/root         0 2024-08-04 23:30 ./var/lock/
> 
> In this case I think the best option is to simply stop shipping the
> /var/lock directory.

This hints at another problem. Whilst base-files' data.tar lists
/var/lock as a directory, its postinst turns it into a symbolic link
pointing at /run/lock. If dpkg were to verify that /var/lock indeed is a
directory it would also issue a warning or error. I think this
inconsistency within base-files should also be solved in addition to the
one in drbd-utils.

Helmut



More information about the Debian-ha-maintainers mailing list