ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #07568
[Bug 1661743] [NEW] XmlListModel with xml string triggers AppArmor denials
You have been subscribed to a public bug:
XmlListModel with xml string triggers AppArmor denials, when the xml
prop is set no network call should be made since the source is a just a
string not a url and no source prop is set
import QtQuick 2.4
import Ubuntu.Components 1.3
import Ubuntu.Components.ListItems 1.3 as ListItem
import QtQuick.XmlListModel 2.0
import "servers_list.js" as Servers
MainView {
objectName: "mainView"
applicationName: "demo.daker"
width: units.gu(50)
height: units.gu(75)
automaticOrientation: true
implicitWidth: units.gu(90)
implicitHeight: units.gu(71)
ListItem.ItemSelector {
id: srvSelector
model: XmlListModel {
id: srvModel
xml: Servers.list
query: "/servers/server"
XmlRole { name: "hostname"; query: "host/string()" }
XmlRole { name: "port"; query: "port/string()" }
}
containerHeight: srvSelector.itemHeight * 4
delegate: OptionSelectorDelegate {
text: hostname + ":" + port;
}
}
}
# servers_list.js
.pragma library
var list = '<?xml version="1.0" encoding="utf-8"?><servers>' +
'<server><port>80</port><host>google.com</host></server>' +
'<server><port>80</port><host>facebook.com</host></server>' +
'<server><port>80</port><host>twitter.com</host></server></servers>';
AppArmor denials :
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.3076" (uid=32011 pid=4922 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene demo") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1705 comm="NetworkManager ")"
QNetworkManagerInterface::QNetworkManagerInterface(QObject*) nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.3076" (uid=32011 pid=4922 comm="/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene demo") interface="org.freedesktop.NetworkManager" member="GetDevices" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=1705 comm="NetworkManager ")"
** Affects: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided
Status: New
--
XmlListModel with xml string triggers AppArmor denials
https://bugs.launchpad.net/bugs/1661743
You received this bug notification because you are a member of Ubuntu SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.