Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#69352 - [lxd] warning: directory permissions differ on /var/log/lxd/

Attached to Project: Community Packages
Opened by Yuri Kanivetsky (x-yuri) - Sunday, 17 January 2021, 11:00 GMT
Last edited by Morten Linderud (Foxboron) - Saturday, 06 March 2021, 12:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

lxd seems to expect /var/log/lxd to have the 0700 permissions. You can see it here:

https://github.com/lxc/lxd/blob/lxd-4.10/lxd/sys/fs.go#L55

Another way to confirm:
* pacman -R lxd
* mv /var/log/lxd{,-old}
* mkdir -m 0700 /var/log/lxd
* pacman -S lxd
* reboot

But PKGBUILD creates the dir with 0755:

https://github.com/archlinux/svntogit-community/blob/b91c55a3701cb7fab3a6db295be741996eaf0026/trunk/PKGBUILD#L77

The after upgrade we get:

[2021-01-17T12:18:31+0200] [ALPM] warning: directory permissions differ on /var/log/lxd/
filesystem: 700 package: 755
[2021-01-17T12:18:31+0200] [ALPM] upgraded lxd (4.9-1 -> 4.10-1)
This task depends upon

Closed by  Morten Linderud (Foxboron)
Saturday, 06 March 2021, 12:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.12-2
Comment by Yuri Kanivetsky (x-yuri) - Sunday, 17 January 2021, 15:20 GMT
oh, in my "steps to reproduce" I apparently meant to create the directory with 0755, and after reboot it turns 0700
Comment by Yuri Kanivetsky (x-yuri) - Sunday, 14 February 2021, 09:22 GMT
Or rather this way:

* chmod 0755 /var/log/lxd
* systemctl restart lxd
* ls -ald /var/log/lxd
drwx------ 3 root root 4096 Feb 14 11:18 /var/log/lxd

Loading...