← Back to team overview

ubuntu-phone team mailing list archive

Re: XHR doesn't work because of apparmor

 

Actually, that didn't work. I just tested on another device. I tested 2 apps, one of which is unconfined, same denial.

From: bogdan.cuza@xxxxxxxxxxx
To: michael.zanetti@xxxxxxxxxxxxx; ubuntu-phone@xxxxxxxxxxxxxxxxxxx
Date: Fri, 24 Jul 2015 15:45:05 +0700
Subject: Re: [Ubuntu-phone] XHR doesn't work because of apparmor




I solved this by using:"if (xhr.readyState == 4) {            if (xhr.status == 200) {"instead of XMLHttpRequest.DONE. Hope this helps someone :)

Date: Thu, 23 Jul 2015 15:49:27 +0200
From: michael.zanetti@xxxxxxxxxxxxx
To: ubuntu-phone@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Ubuntu-phone] XHR doesn't work because of apparmor

Probably related to this bug:
 
https://bugs.launchpad.net/apparmor-easyprof-ubuntu/+bug/1404188
 
It prints the same apparmor denial.
 
Br,
Michael
 
On 23.07.2015 15:06, Bogdan Cuza wrote:
> Hello!
> 
> I am having some issues with a XmlHttpRequest. The response is null,
> even though it passes req.readyState == XMLHttpRequest.DONE. The log
> reports this:
> 
> QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply
> "An AppArmor policy prevents this sender from sending this message to
> this recipient; type="method_call", sender=":1.465" (uid=32011 pid=22453
> comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene $@ q")
> interface="org.freedesktop.DBus.Properties" member="GetAll" error
> name="(unset)" requested_reply="0"
> destination="org.freedesktop.NetworkManager" (uid=0 pid=1245
> comm="NetworkManager ")"
> 
> QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.465" (uid=32011 pid=22453 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene $@ q") interface="org.freedesktop.NetworkManager" member="GetDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1245 comm="NetworkManager ")"
> "Object path cannot be empty"
> "Object path cannot be empty"
> 
> My apparmor has "networking" in policy_groups. Could anyone help me with this?
> 
> Thanks,
> 
> Bogdan
> 
> 
> 
 

-- 
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 		 	   		  

-- 
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