[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2015-11-18 Thread Jim Hodapp
** Also affects: media-hub (Ubuntu) Importance: Undecided Status: New ** Changed in: media-hub (Ubuntu) Status: New => Fix Released ** Also affects: media-hub (Ubuntu RTM) Importance: Undecided Status: New ** No longer affects: media-hub ** Changed in: media-hub

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2015-07-16 Thread Michi Henning
** Changed in: thumbnailer Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1303962 Title: please integrate mediascanner2 and media-hub with apparmor To

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2015-06-27 Thread Michi Henning
The new thumbnailer uses apparmor queries to determine whether the caller is allowed to access the original file. If not, it denies access to the thumbnail too. ** Changed in: thumbnailer Status: New = Fix Committed -- You received this bug notification because you are a member of Ubuntu

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-08-14 Thread Victor Thompson
Does Thaumbnailer still need apparmor integration? I believe it is blocking the music-app from going under confinement at the moment. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1303962 Title:

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-08-14 Thread Jamie Strandboge
I believe mediascanner handles the thumbnailing and does not need any special confinement wrt music-app. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1303962 Title: please integrate mediascanner2

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-08-14 Thread Jussi Pakkanen
Mediascanner does not do thumbnailing at all. All of that is done by the thumbnailer library + service. Those should be confined already, but in case they are not, here's the skinny: - there are two kinds of thumbnails: those created from files and those that are downloaded (album art) - for

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-08-14 Thread Jamie Strandboge
Ok, so there is a thumbnailer service and apps using the audio policy group can already talk to it. Apps are also able to use libthumbnailer's vs-thumb under confinement, so I don't think that anything more needs to be done special for music-app. I will follow up with Jussi on if we need to add

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-08-14 Thread James Henstridge
In case it helps, the thumbnailer's D-Bus interface is at: Bus name: com.canonical.Thumbnailer Path: /com/canonical/Thumbnailer Interface: com.canonical.Thumbnailer The method calls pass read-only file descriptors into a shared cache. The only art exposed via this interface at the moment is

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-06-06 Thread Launchpad Bug Tracker
This bug was fixed in the package apparmor-easyprof-ubuntu - 1.2.4 --- apparmor-easyprof-ubuntu (1.2.4) utopic; urgency=medium * ubuntu/1.2: refinements to scopes policy - use private-files-strict abstraction - finetune client endpoint policy - explicitly deny access to

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-06-05 Thread Jamie Strandboge
** Changed in: apparmor-easyprof-ubuntu (Ubuntu) Assignee: (unassigned) = Jamie Strandboge (jdstrand) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1303962 Title: please integrate

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-06-05 Thread James Henstridge
** Changed in: mediascanner2 (Ubuntu) Assignee: (unassigned) = James Henstridge (jamesh) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1303962 Title: please integrate mediascanner2 and

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-06-04 Thread James Henstridge
The MediaScanner 2 D-Bus interface is hooked up as: name = com.canonical.MediaScanner2 path = /com/canonical/MediaScanner2 interface = com.canonical.MediaScanner2 There are only read-only methods made available through this interface, all of which call the security policy method. So it would be

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-06-03 Thread Jamie Strandboge
The audio and video policy groups have this for media-hub: # Allow communications with media-hub dbus (receive, send) bus=session path=/core/ubuntu/media/Service{,/**}, and this for thumbnailer: # Allow communications with thumbnailer for retrieving album art dbus (send)

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-06-02 Thread James Henstridge
So, with the 0.101+14.10.20140530-0ubuntu1 release now in the archive, mediascanner2's QML API now works through a D-Bus API. The D-Bus service checks its peer's AppArmor context and implements a rudimentary security policy (which I'd be happier with if I could delegate out to a central policy).

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-13 Thread Jamie Strandboge
Jussi and I discussed this quite a bit this morning. He explained that this is the process: 1. mediascanner2 scans files on the filesystem (eg, ~/Music and ~/Videos) and stores paths, file metadata (artist, album, etc) in ~/.cache/mediascanner2 2. apps use the QML plugin (which uses

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-13 Thread Jussi Pakkanen
It should be noted that there is one case which would break for third party music apps: album art embedded inside MP3 files. In order to read that the app would need read access to the actual music file. The proper solution for this would be to expand the thumbnailer dbus service to also provide

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-13 Thread Jamie Strandboge
Regarding embedded album art: well, that is what the mediascanner is for no? An app can always read its own files (eg, a music app that downloads to its own directory) but if the file is stored in the global media collection (ie, ~/Music), then mediascanner can scan it, extract the album art and

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-12 Thread Jussi Pakkanen
Mediascanner2 does not index appstore apps' contents. It only deals with public information in ~/Music ~/Videos and mounted drives. It has nothing to do with the playback path, that is dealt entirely by media hub/music app. There are three ways of accessing Mediascanner's stored data: 1. issue a

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-12 Thread James Henstridge
** Also affects: thumbnailer Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1303962 Title: please integrate mediascanner2 and media-hub with apparmor To

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-12 Thread James Henstridge
The ~/.cache/media-art/ accesses should be gone when music-app converts to the new API: we're directing access via D-Bus helper now. We don't have any AppArmor integration for that helper though. I'm not sure whether we'd need any user prompts though, since the data returned by the helper is

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-12 Thread James Henstridge
As a follow-on, here is the introspection data for the thumbnailer D-Bus service: http://bazaar.launchpad.net/~unity- team/thumbnailer/trunk/view/head:/src/service/dbus-interface.xml The file data is returned by passing a read-only file descriptor for a file in ~/.cache/media-art, and the

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-02 Thread Jamie Strandboge
** Summary changed: - please integrate mediascanner2 and media-hub with trust-store + please integrate mediascanner2 and media-hub with apparmor -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1303962

[Bug 1303962] Re: please integrate mediascanner2 and media-hub with apparmor

2014-05-02 Thread Jamie Strandboge
** Description changed: media-hub and mediascanner are separate processes from apps and are used to play and scan music and video files respectively. Up until now, apps would have to use the music_files_read or video_files_read reserved policy groups to access media. The problem is, these