lightmediascanner: change db directory 51/21651/8
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 23 May 2019 16:06:38 +0000 (18:06 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 19 Jun 2019 13:05:28 +0000 (13:05 +0000)
commitbcd5334d789f61ac1f6b14de3f1f2febea27e06c
treec8a2b4841dfe583670e8646bc7ec2d33309fe274
parent4b0ef61b6ba59ca8a347453cbfdd159f2cf74f40
lightmediascanner: change db directory

Lightmediascanner runs for one user and should not be able
to look over the the shoulder of other users. So it should
not run as root anymore.

At the moment, lightmediascanner is a user daemon started in the
user session by systemd, without capabilities but with the Smack
label "System".

To allow the service-mediascanner to access its database,
the db must be set in a specific place with the User::App-shared
label.

Bug-AGL: SPEC-1016

Change-Id: Id4546e2567c4f5a0a5139d274d35d11e4879e42e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
meta-agl-profile-core/recipes-multimedia/lightmediascanner/files/lightmediascanner.service