summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-10-08 19:05:39 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-10-11 12:36:21 +0000
commita6fb7793f766a258350f23a9180228ce31320fc3 (patch)
treec8b88e1b85776c985ae42cbc3ef1dc0289a1f98f
parent65df94fcb40c721178f5ff551d4e083bf92729d7 (diff)
This change allows binders to use API not declared in the config.xml file. This behaviour is allowed by the platform permission urn:AGL:permission::platform:apis:auto-ws It allows a binding to use started bindings not listed in their config.xml file. But it does not allow to start them or to discover them. Bug-AGL: SPEC-2871 Change-Id: Iff0ec8417541171d446254e538201b7f6c7887ea Signed-off-by: José Bollo <jose.bollo@iot.bzh> (cherry picked from commit f68b681e785456207fd8195ac83ade0c89373416)
-rw-r--r--conf/unit/binder.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/unit/binder.inc b/conf/unit/binder.inc
index 58f877f..a94e69d 100644
--- a/conf/unit/binder.inc
+++ b/conf/unit/binder.inc
@@ -46,6 +46,7 @@ ENDIF \
ON_VALUE(dbus, --dbus-server={{name}}) \
ON_VALUE(tcp, --ws-server=tcp:{{name}}) \
{{/provided-api}} \
+ ON_PERM(:platform:apis:auto-ws, --auto-api=API_PATH_WS) \
ON_CONTENT(text/html, --exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t) \
ON_CONTENT(application/vnd.agl.native, --exec {{:#metadata.install-dir}}/{{content.src}} @p @t)
%nl