Bugzilla – Bug 18002
squeezeboxserver does not honor ACLs
Last modified: 2014-05-02 12:09:50 UTC
I have encountered a situation, where logitechmediaserver can not access a directory (and files therein), when access rules are purely granted using linux ACLs. Could you please enclose the fix from http://forums.slimdevices.com/showthread.php?91280-Filescan-and-ACLs into Slim/Utils/Misc.pm? I do not take credit for the fix, but I can confirm that it works. I verified on logitechmediaserver - 7.7.2 - 7.7.3~1342008352 -- Machine status: Logitech Media Server Status Logitech Media Server Version: 7.7.3 - 1342008352 @ Thu Sep 6 04:01:13 PDT 2012 Hostname: doesitmatter Server IP Address: 192.168.97.1 Server HTTP Port Number: 9000 Operating system: Debian - EN - utf8 Platform Architecture: i686-linux Perl Version: 5.10.1 - i486-linux-gnu-thread-multi Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1) Total Players Recognized: 1 Linux: kernel 2.6.32-5-xen-686 with ACL-support The mountpoint is acl-enabled and logitechmediaserver is executed using unprivileged account "squeezeboxserver". -- Reproduce: doesitmatter:/data# id squeezeboxserver uid=115(squeezeboxserver) gid=65534(nogroup) Gruppen=65534(nogroup),29(audio) doesitmatter:/data# ls -ld somedir/ drwxr-x---+ 3 root root 4096 7. Sep 15:21 somedir/ doesitmatter:/data# find somedir/ -ls 217726977 8 drwxr-x--- 3 root root 4096 Sep 7 15:21 somedir/ 217726978 8 drwxr-x--- 2 root root 4096 Sep 7 15:21 somedir/music 217726979 2568 -rw-r----- 1 root root 2624000 Sep 7 15:21 somedir/music/audiofile.mp3 doesitmatter:/data# getfacl somedir/ # file: somedir/ # owner: root # group: root user::rwx group::r-x group:audio:r-x mask::r-x other::--- Without the patch applied, you cannot access directory somedir/music/ in "Basic Settings" -> "Media Folders". Tanks for your help :)
I still have that problem with the current version, 7.8.0. The patch works for me.
This is fixed in 7.9 only. *** This bug has been marked as a duplicate of bug 16506 ***
Thanks alot for your work. :)