ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #12250
Re: opening files imported through content-hub
Hi Alberto,
Ah ok, my security label is "s4ruj4n_comicBox_0.1" but content-hub is
importing files into ".cache/comicBox.s4ruj4n/" not ".cache/s4ruj4n/". Any
idea how I correct this?
In my CMakeLists file: APP_NAME is set to "comicBox" and APP_ID is set to
"comicBox.s4ruj4n". So maybe it uses APP_ID when creating this .cache
directory?
The directory in .local/share/ is just my username ("s4ruj4n") though.
Regards,
Darren
On Saturday, April 18, 2015, Alberto Mardegan <
alberto.mardegan@xxxxxxxxxxxxx> wrote:
> On 04/18/2015 12:11 AM, Darren Smith wrote:
> [...]
>> 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?
>
> I hope I'm not putting you off track, but I believe that the problem is
> that the file is under
>
> ~/.cache/<appname>.<username>/
>
> while your app should have access to
>
> ~/.cache/<username>/
>
> only. That is, an app whose security label is <package>_<app>_<version>
> has access to ~/.cache/<package>/ .
>
> HTH,
> Alberto
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References