Bug 18002 - squeezeboxserver does not honor ACLs
: squeezeboxserver does not honor ACLs
Status: RESOLVED DUPLICATE of bug 16506
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 7.7.2
: PC Debian Linux
: -- normal with 2 votes (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-07 07:32 UTC by slimdevices
Modified: 2014-05-02 12:09 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description slimdevices 2012-09-07 07:32:01 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 :)
Comment 1 accounts+bugs.slimdevices.com 2014-04-29 07:54:09 UTC
I still have that problem with the current version, 7.8.0.
The patch works for me.
Comment 2 Michael Herger 2014-05-02 07:10:40 UTC
This is fixed in 7.9 only.

*** This bug has been marked as a duplicate of bug 16506 ***
Comment 3 accounts+bugs.slimdevices.com 2014-05-02 12:09:50 UTC
Thanks alot for your work. :)