-
Bug
-
Resolution: Fixed
-
Critical
-
None
Using the following config.xml for the settings applications that should create a websocket service results in a wgt that refuses to be installed:
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="settings" version="0.1">
<name>Settings</name>
<icon src="icon.svg"/>
<content src="bin/settings" type="application/vnd.agl.native"/>
<description>This is the settings application for date & time, wifi and bluetooth</description>
<author>Tasuku Suzuki <tasuku.suzuki@qt.io></author>
<license>APL 2.0</license>
<feature name="urn:AGL:widget:required-api">
<param name="#target" value="main" />
<param name="lib/libsettings-wifi-binding.so" value="local" />
<param name="Bluetooth-Manager" value="ws" />
</feature>
<feature name="urn:AGL:widget:required-permission">
<param name="#target" value="main" />
<param name="urn:AGL:permission::public:no-htdocs" value="required" />
</feature>
<feature name="urn:AGL:widget:provided-unit">
<param name="#target" value="bluetooth" />
<param name="content.type" value="application/vnd.agl.service" />
</feature>
<feature name="urn:AGL:widget:provided-api">
<param name="#target" value="bluetooth" />
<param name="Bluetooth-Manager" value="ws" />
</feature>
<feature name="urn:AGL:widget:required-api">
<param name="#target" value="bluetooth" />
<param name="lib/libsettings-bluetooth-binding.so" value="local" />
</feature>
<feature name="urn:AGL:widget:required-permission">
<param name="#target" value="bluetooth" />
<param name="urn:AGL:permission::public:no-htdocs" value="required" />
<!-- <param name="urn:AGL:permission::system:run-by-default" value="required" /> -->
</feature>
</widget>
RESULTS:
root@qemux86-64:~# afm-util install settings.wgt
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
root@qemux86-64:~# journalctl |tail -n 10
Jun 12 23:19:48 qemux86-64 kernel: audit: type=1327 audit(1497309588.446:8): proctitle=737368643A20726F6F74205B707269765D
Jun 12 23:19:48 qemux86-64 kernel[182]: [ 518.513841] audit: type=1400 audit(1497309588.446:8): lsm=SMACK fn=smack_key_permission action=denied subject="System" object="_" requested=w pid=4168 comm="sshd" key_serial=415907889 key_desc="_uid.0"
Jun 12 23:19:48 qemux86-64 kernel[182]: [ 518.513966] audit: type=1300 audit(1497309588.446:8): arch=c000003e syscall=250 success=no exit=-13 a0=8 a1=fffffffc a2=fffffffd a3=0 items=0 ppid=1 pid=4168 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sshd" exe="/usr/sbin/sshd" subj=System key=(null)
Jun 12 23:19:48 qemux86-64 kernel[182]: [ 518.514024] audit: type=1327 audit(1497309588.446:8): proctitle=737368643A20726F6F74205B707269765D
Jun 12 23:19:48 qemux86-64 sshd[4168]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jun 12 23:19:48 qemux86-64 systemd[1]: Started Session c3 of user root.
Jun 12 23:19:48 qemux86-64 systemd-logind[231]: New session c3 of user root.
Jun 12 23:19:48 qemux86-64 kernel: audit: type=1006 audit(1497309588.456:9): pid=4168 uid=0 subj=System old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=4 res=1
Jun 12 23:19:48 qemux86-64 kernel[182]: [ 518.523232] audit: type=1006 audit(1497309588.456:9): pid=4168 uid=0 subj=System old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=4 res=1
Jun 12 23:19:51 qemux86-64 afm-system-daemon[229]: NOTICE: – INSTALLING widget /home/root/settings.wgt to /var/local/lib/afm/applications – [/usr/src/debug/af-main/1.0-r0/git/src/wgtpkg-install.c:420]
# | Subject | Branch | Project | Status | CR | V |
---|---|---|---|---|---|---|
9787,2 | af-main: Fix service and their socket activation | master | AGL/meta-agl | Status: MERGED | +2 | +1 |