← Back to team overview

ubuntu-phone team mailing list archive

opening files imported through content-hub

 

Hi,

I'm trying to use content-hub to import zip files into my app.
They seem to end up in a location like:

> -rw-r--r-- 18 phablet phablet 64631102 Apr 16
> 19:08 /home/phablet/.cache/<appname>.<username>/HubIncoming/<number>/example.zip


I then try to open the file using quazip but get denied by apparmor:

> Apr 17 21:56:31 ubuntu-phablet kernel: [226697.166126]type=1400
> audit(1429304191
> .476:898): apparmor="DENIED" operation="open"
> profile="<username>_<appname>_0.1" nam
> e="/home/phablet/.cache/<appname>.<username>/HubIncoming/<number>/example.zip"
> pid=234
> 01 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011
> ouid=32011


Any ideas what I'm doing wrong? Do I need to get the file to some final
location where I have permission to open it? If so, how?
I have the "content_exchange" security policy. Are there any others I need?

Any help would be much appreciated,
Darren

Follow ups