src/app-framework-main.git
2 months agoAdd gitlab issue/merge request templates master 17.90.0 ricefish/17.90.0 ricefish_17.90.0
Jan-Simon Moeller [Tue, 13 Feb 2024 22:03:39 +0000 (23:03 +0100)]
Add gitlab issue/merge request templates

Add template files for gitlab

Bug-AGL: SPEC-4474
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I0365e7a1f4dc0f9da9e634a239409e3cca1ae299

3 years agoMerge "Add network and bluetooth permissions to service template" 10.91.0 10.92.0 10.93.0 11.91.0 11.92.0 12.90.0 12.90.1 12.91.0 12.92.0 12.93.0 13.93.0 koi/10.91.0 koi/10.92.0 koi/10.93.0 koi_10.91.0 koi_10.92.0 koi_10.93.0 lamprey/11.91.0 lamprey/11.92.0 lamprey_11.91.0 lamprey_11.92.0 marlin/12.90.0 marlin/12.90.1 marlin/12.91.0 marlin/12.92.0 marlin/12.93.0 marlin_12.90.0 marlin_12.90.1 marlin_12.91.0 marlin_12.92.0 marlin_12.93.0 needlefish/13.93.0 needlefish_13.93.0
Jan-Simon Moeller [Tue, 1 Dec 2020 22:28:57 +0000 (22:28 +0000)]
Merge "Add network and bluetooth permissions to service template"

3 years agoAdd network and bluetooth permissions to service template 96/25696/1
Scott Murray [Tue, 1 Dec 2020 00:25:53 +0000 (19:25 -0500)]
Add network and bluetooth permissions to service template

Add new public:network and public:bluetooth permissions that currently
drive adding dependencies on network.target and bluetooth.target,
respectively.  This allows related bindings to depend on those to
avoid start up races.  In the future, these permissions could perhaps
be tied to configuring DBus access control of the related services.

Bug-AGL: SPEC-3509

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I582691bfe223a01ce80f04a4b0a1463d58287a9c

3 years agodeal with extra quotes 99/25299/1
zhonglu [Mon, 21 Sep 2020 09:08:19 +0000 (17:08 +0800)]
deal with extra quotes

Bug-AGL:SPEC-2714

Signed-off-by: Zhong Lu <zhongl.fnst@cn.fujitsu.com>
Change-Id: I1323e28a3b39ff1c22ac40bcc7fb4fa86cf6e23c

3 years agoFix native compilation 50/25050/1 9.99.2 9.99.3 9.99.4 jellyfish/9.99.2 jellyfish/9.99.3 jellyfish/9.99.4 jellyfish_9.99.2 jellyfish_9.99.3 jellyfish_9.99.4
Scott Murray [Thu, 23 Jul 2020 14:57:55 +0000 (10:57 -0400)]
Fix native compilation

The use of nanosleep in the previous job wait change fails to build
for me when building af-main-native, so add the required #include of
time.h.  It's not clear to me right off why it actually built for the
target without it, that behavior difference may warrant some further
investigation.

Bug-AGL: SPEC-3365, SPEC-3427, SPEC-3457

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I73203e564c96d3eaea250ce8867149f6a155ec07

3 years agoMerge "Add wait for start jobs"
Jan-Simon Moeller [Thu, 23 Jul 2020 08:19:12 +0000 (08:19 +0000)]
Merge "Add wait for start jobs"

3 years agoAdd wait for start jobs 37/25037/4
Scott Murray [Tue, 21 Jul 2020 02:04:11 +0000 (22:04 -0400)]
Add wait for start jobs

The systemd job to start an application unit may remain queued long
enough after a call into the systemd D-Bus API that the subsequent
state check sees the unit as still inactive.  This results in the
application start being incorrectly reported as having failed, when
it will still actually proceed once the job is dequeued and run in
systemd.

To fix this, checking of the state of the job object returned by the
start D-Bus calls has been added in the various wrapper functions in
src/utils-systemd.c.  The timeout mechanism used in the new job_wait
helper function is based on the existing state checking logic of the
wait_state_stable function in src/afm-urun.c.

Bug-AGL: SPEC-3365, SPEC-3427, SPEC-3457

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I01077a4213944233506518869c3dc604bd40f693

3 years agoFix labelling of files of widgets 62/24962/2
José Bollo [Fri, 10 Jul 2020 11:18:47 +0000 (13:18 +0200)]
Fix labelling of files of widgets

Before that change any application could browse
content of other application.

This change fixes that unintended behaviour by setting
the installed files as private to the application.

This affects the Smack labels of the files that after
the change become the label of the application.

Conversely, it will now be necessarily to explicit
shared files. It happens in situation of resource
widgets, the one that provide a binding using the
feature urn:AGL:widget:provided-binding in config.xml.

The typical example is the widget for testing: afbtest.
The exported binding must be accessible by its clients.
But because it also use files that it provides, these
files must also be accessible by clients.

For that reason, the feature urn:AGL:widget:public-files
is introduced to config files, allowing a widget to make
part of its installed files public.

The installation logic is changed to handle correctly the
security manager that applies rights of directories to
files it contains. So the declaring directories and files
using the order of increasing path length ensures that
the expected rights are applied.

Bug-AGL: SPEC-3489

Change-Id: I933446a8c155a03d9b66767f1dda63aeaeb21eb1
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
3 years agoAdd weston dependency for units with display permission 75/24775/1 9.99.1 jellyfish/9.99.1 jellyfish_9.99.1
Scott Murray [Tue, 16 Jun 2020 19:44:40 +0000 (15:44 -0400)]
Add weston dependency for units with display permission

Add logic to the systemd unit template to add a dependency on the
weston@display.service if the widget has the display permission.
This fixes races with apps against weston / the new AGL compositor.

Bug-AGL: SPEC-3411

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ib89da253933e7e34cfe5dfeb668c8d9df63f0e51

3 years agoFix uninstall of widgets without icons 80/24580/2
Scott Murray [Thu, 28 May 2020 19:06:33 +0000 (15:06 -0400)]
Fix uninstall of widgets without icons

Trying to uninstall a widget without an icon would remove the widget
files, but report an error, and the widget would not be removed from
the database until a reboot, preventing installation of a new version.

To fix this, the error handling in uninstall_widget has been reworked
to only explicitly return an error when the unlink of the icon file
fails for reasons other than the file not being present. This then
allows some code cleanup by removing the extra rc2 variable and fixing
some error checks where rc and rc2 were being mixed.

Bug-AGL: SPEC-3401

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ica4a91f41b2bd9e16e16dee4ce660f6fa1f7840b

3 years agoImprove use of systemd's states 61/24561/1
José Bollo [Tue, 19 May 2020 09:22:26 +0000 (11:22 +0200)]
Improve use of systemd's states

A better handling of systemd state is need to treat
correctly transient states. That change includes:

- Management of states with numeric identifiers
  instead of names

- Handling of the state "inactive" as a stable
  state. Most of previous seen problems were coming
  from that miss.

- Returning no error but also no info on the process
  if it falled to "inactive" meaning that it stopped
  quickly.

Bug-AGL: SPEC-3323

Change-Id: Ibf35eb6257c5583596d675cad0bec2869f5fd5f7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
3 years agoafm-urun: Fix infinite loop on start status 74/24474/1
José Bollo [Wed, 6 May 2020 11:48:17 +0000 (13:48 +0200)]
afm-urun: Fix infinite loop on start status

Ensure that there is no infinite loop when waiting
for the completion of a status.

Bug-AGL: SPEC-3323

Change-Id: I93537e9bbbe8ef357d112bea1cb6201e96d01ebf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoMerge "Update weston dependency in afm-system-setup.service"
Jan-Simon Moeller [Mon, 6 Apr 2020 22:25:53 +0000 (22:25 +0000)]
Merge "Update weston dependency in afm-system-setup.service"

4 years agoUpdate weston dependency in afm-system-setup.service 30/24330/1
Scott Murray [Mon, 6 Apr 2020 21:20:35 +0000 (17:20 -0400)]
Update weston dependency in afm-system-setup.service

When I switched AGL over to using upstream OE's template unit scheme for
running weston as non-root for the zeus upgrade, I missed the dependency
in afm-system-setup.service, update it to weston@display.service to
match the new configuration.

Bug-AGL: SPEC-3309

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ifef4d63be3326fb6d36eb997cb2bc331c49a1250

4 years agoAdd feature of autosigning widgets 37/24137/1
José Bollo [Thu, 27 Feb 2020 16:12:55 +0000 (17:12 +0100)]
Add feature of autosigning widgets

This adds the ability to automatically sign the
widgets that are packaged.

This is done by defining in the environment of
the packaging process the variables

  WGTPKG_AUTOSIGN_X=key-filepath[:cert-filepath]...

Where X is a number.

If such variable exist, signatures are generated
in the directory of the packaged or signed widget,
one for each variable, replacing any existing one.

Obviously, nothing is done if no such variable exist.

The generated signature file depends on X.

 - 0 is for file author-signature.xml
 - X is for file signature-X.xml

The program wgtpkg-pack automatically include that
behaviour by default. An option allows to remove it.

Bug-AGL: SPEC-2840

Change-Id: I00bc4a4d094f71b307e467f984f20d3d4cc3c7bd
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoRefactor of sample keys and certificates 36/24136/1
Jose Bollo [Wed, 11 Sep 2019 14:37:24 +0000 (16:37 +0200)]
Refactor of sample keys and certificates

Avoid installing any certificate or key.
But if requested, install the certificates and the keys
that are given as example.

Bug-AGL: SPEC-2840

Change-Id: I26aebd63fad842bb9746c3a004956d9dbafc091f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoRefactor ALLOW_NO_SIGNATURE compile flag 35/24135/1
Jose Bollo [Wed, 11 Sep 2019 14:23:04 +0000 (16:23 +0200)]
Refactor ALLOW_NO_SIGNATURE compile flag

Fix a tiny bug and minor improvements

Bug-AGL: SPEC-2840

Change-Id: I9b74a8fd604980615d5669219cb5de801de61163
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoRename source files and improve readability 34/24134/1
José Bollo [Fri, 13 Sep 2019 14:46:39 +0000 (16:46 +0200)]
Rename source files and improve readability

Also rename wgtpkg-installer tools as wgtpkg-install.
Shorter and obvious.

Bug-AGL: SPEC-2840

Change-Id: Ifed072bfef488700807613dd61875a30a4041d7a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoFix homescreen start on yocto/Zeus 52/24052/1
José Bollo [Fri, 14 Feb 2020 09:37:56 +0000 (10:37 +0100)]
Fix homescreen start on yocto/Zeus

Replacing BindsTo by Requires fix the start issue
of the homescreen that complained with the message

   systemd[1]: afm-appli-homescreen--0.1--main@1001.service: ...
    ... Bound to unit afm-api-vshl-core@1001.service, but unit isn't active.

Bug-AGL: SPEC-3178

Change-Id: I8df50354128d319f3dfc93b4d10848ecafdb6773
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
4 years agoRemove distinction of widget's version 46/23646/2
Jose Bollo [Fri, 24 Jan 2020 13:49:23 +0000 (14:49 +0100)]
Remove distinction of widget's version

This removes the distinction between the different
versions of a widget. The boolean CMAKE option
DISTINCT_VERSIONS allows to switch between the two
possibilities:

 DISTINCT_VERSIONS=OFF (default)

    Widget installed in {afm_appdir}/{id}
    Ids of applications have no version part: {id}

 DISTINCT_VERSIONS=ON (legacy, old default)

    Widget installed in {afm_appdir}/{id}/{ver}
    Ids of applications have no version part: {id}@{ver}

Bug-AGL: SPEC-2538

Change-Id: I7cb54d4b296b740c553be8a627e66175107e5a4b
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
4 years agoMerge "system setup: Fix settings on /run/user"
Jan-Simon Moeller [Tue, 11 Feb 2020 22:36:20 +0000 (22:36 +0000)]
Merge "system setup: Fix settings on /run/user"

4 years agoUpdate .gitreview file 51/23851/1
Jan-Simon Möller [Tue, 11 Feb 2020 17:08:39 +0000 (18:08 +0100)]
Update .gitreview file

This updates the gitreview file in the project

.

Change-Id: Iba40cae90f43e6aeded464b8dd1e8b6bdc65aacf
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
4 years agosystem setup: Fix settings on /run/user 92/23792/1
José Bollo [Tue, 11 Feb 2020 12:11:06 +0000 (13:11 +0100)]
system setup: Fix settings on /run/user

The setting made fail the 'service user-runtime-dir@.service'.
It also had bad effect on starting of dashboard application.

Bug-AGL: SPEC-3175

Change-Id: Ic937c707fce4b3d2c03616055e140b65e4b29cfb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoImprove setup for solving access issues 16/23616/1 8.99.5 icefish/8.99.5 icefish_8.99.5
Jose Bollo [Wed, 22 Jan 2020 17:27:58 +0000 (18:27 +0100)]
Improve setup for solving access issues

While developping the binding afb-test, the export of
the binding afm-test, using "provided-binding" feature
reavealed to be broken because of security setup.

Bug-AGL: SPEC-2795

Change-Id: Ifc11a8b6a0f20b25d34a8f6b2f81f4c8b5f98238
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
4 years agoUpdate copyright 60/23560/1
José Bollo [Wed, 8 Jan 2020 11:48:58 +0000 (12:48 +0100)]
Update copyright

Change-Id: I1d68e07563d9f0f139d1bc8128e09a5da0a648af
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agowgtpkg-install: Fix allocation of IDs 45/23445/2 8.99.4 icefish/8.99.4 icefish_8.99.4
Jose Bollo [Fri, 20 Dec 2019 16:06:40 +0000 (17:06 +0100)]
wgtpkg-install: Fix allocation of IDs

The framework wasn't correctly attributing application ids
because scanning existing applications was broken.

Bug-AGL: SPEC-3068

Change-Id: I01aa736c0ea072b5e4141fb5faa1981be81048ce
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
4 years agoUse of cynagoauth 40/23340/2
José Bollo [Tue, 10 Dec 2019 22:13:52 +0000 (23:13 +0100)]
Use of cynagoauth

The flow of HTML5 applications is adjusted to use
the basic implementation of cynagoauth.

Bug-AGL: SPEC-2968
Bug-AGL: SPEC-3032

Change-Id: Iabf7ebb39fe9ed87bf1fd5b6742fb512a6df19a7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoIntroduce widget type application/vnd.agl.resource 98/23398/1
Jose Bollo [Wed, 4 Dec 2019 11:00:59 +0000 (12:00 +0100)]
Introduce widget type application/vnd.agl.resource

The widget type application/vnd.agl.resource doesn't
brings service. It can be used to provide a binding
to the system.

Bug-AGL: SPEC-3057
Bug-AGL: SPEC-1663

Change-Id: I5c900865b8eeec494953942c8069dfefe254a85c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoEnsure home and workir to widget of scope-platform 58/23358/1 8.99.3 icefish/8.99.3 icefish_8.99.3
José Bollo [Fri, 13 Dec 2019 15:47:45 +0000 (16:47 +0100)]
Ensure home and workir to widget of scope-platform

The widget requesting the permission to run at
platform scope: urn:AGL:permission::partner:scope-platform
should be able to record data and state.
This change provides a default place to achieve it.

Bug-AGL: SPEC-2998

Change-Id: I148a670d3e08e36603ebd318b533ea1e1a695750
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoIntroduce localuser interface for applications 46/23146/1 8.99.2 icefish/8.99.2 icefish_8.99.2
José Bollo [Tue, 3 Dec 2019 14:04:02 +0000 (15:04 +0100)]
Introduce localuser interface for applications

This change make use of nss-localuser hostname
family (see https://git.automotivelinux.org/src/nss-localuser/)
to separate applications and users, each running its
own IP address and hostname.

The intended behaviour is to use existing browser policy to
ensure privacy of applications and users.

Bug-AGL: SPEC-2968

Change-Id: Ie1a3c7331fd43e8747afae2cd338df461bac1454
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoEnforce numeric application IDs 45/23145/1
José Bollo [Tue, 3 Dec 2019 14:02:57 +0000 (15:02 +0100)]
Enforce numeric application IDs

This change allows to index applications numerically.
This can be used for various purposes. One of it is
to compute the HTTP port.

Bug-AGL: SPEC-2968

Change-Id: I74531781f3a39d5d4b09eeb907f57f36822e38f0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoRemove tokens 44/23144/1
José Bollo [Tue, 3 Dec 2019 13:54:48 +0000 (14:54 +0100)]
Remove tokens

Tokens are no more managed by the binder.

Bug-AGL: SPEC-2968

Change-Id: Iabcbc6e900811cd88729f007bb16ba493d0c0651
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agowgtpkg-install: Add default permissions 43/23143/1
José Bollo [Tue, 26 Nov 2019 20:27:44 +0000 (21:27 +0100)]
wgtpkg-install: Add default permissions

Only one default permission is used now:
"urn:AGL:token:valid" that is used to check
token validity.

This adds in the cynagora database the rule

  SMACKID * * urn:AGL:token:valid yes forever

That means that applications having a smack label
installed by the framework behave as if they have
a valid token, a token without any scope/permission
but just valid.

This is needed during the transition to token based
permission policy.

Bug-AGL: SPEC-2968

Change-Id: Ia5b1cc50e8308bfc29906346c5b159dca889519b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoAdd discovery of API 90/22590/4 8.99.1 icefish/8.99.1 icefish_8.99.1
José Bollo [Tue, 8 Oct 2019 17:05:39 +0000 (19:05 +0200)]
Add discovery of API

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>
4 years agoAdd WAIT_FOR_HOST_SERVICE envvar to unit files for webapps 59/22559/2
Jacobo Aragunde Pérez [Wed, 2 Oct 2019 20:44:54 +0000 (22:44 +0200)]
Add WAIT_FOR_HOST_SERVICE envvar to unit files for webapps

This envvar will make the application launcher wait for the WebAppMgr
service to be fully running before attempting to launch the app.
Otherwise, launcher would resort to running the app in standalone
mode, which would conflict with the WebAppMgr service when it's
finally running.

It will be useful for webapps that are auto-started, like the future
homescreen or the html5-launcher.

Bug-AGL: SPEC-2793

Signed-off-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Change-Id: I97f927c856b0dd2643f8b7492dff06b2c459761d

4 years agoconf/system: fix shebang not absolute. 88/22588/1
Romain Forlot [Tue, 8 Oct 2019 08:36:24 +0000 (10:36 +0200)]
conf/system: fix shebang not absolute.

Wrong shebang in some shell script prevents packaging to ends correctly.

Bugs-AGL: SPEC-2863

Change-Id: I63ae56ddc88f9f9dfa0734efff69c26c87800a07
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
4 years agoRevert "Make source files relative" 20/22420/1
José Bollo [Fri, 13 Sep 2019 11:36:45 +0000 (13:36 +0200)]
Revert "Make source files relative"

This reverts commit 37d9652ee0011eff9346a54c33bd459b53e29d0f.

Revert looks good because the issue has to be adressed by
the build environment.

Bug-AGL: SPEC-2801

Change-Id: I51cd51344fc6c6d602f6636c2ffe3af094a78c52
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoMake source files relative 75/22375/1
José Bollo [Tue, 10 Sep 2019 15:08:19 +0000 (17:08 +0200)]
Make source files relative

It is intended to enhance reproducibility
of produced binaries as unmeaning prefixes
are removed.

Bug-AGL: SPEC-2801

Change-Id: Ic406e4477e47c313757c00932db0f129e1d3d01f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoMerge "afm-user-daemon: Remove it by default" 7.99.2 7.99.3 8.0.0 halibut/7.99.2 halibut/7.99.3 halibut/8.0.0 halibut_7.99.2 halibut_7.99.3 halibut_8.0.0
Jan-Simon Moeller [Wed, 19 Jun 2019 13:07:20 +0000 (13:07 +0000)]
Merge "afm-user-daemon: Remove it by default"

4 years agoFix synchronisation of user setup 44/21644/1
José Bollo [Thu, 6 Jun 2019 10:11:14 +0000 (12:11 +0200)]
Fix synchronisation of user setup

The user setup takes care of populating correctly the
directory /run/user/UID with needed items BEFORE
user services start.

Bug-AGL: SPEC-1015

Change-Id: I6f942d73bf241d593c960dbf3bc6a038f1746fe0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoIntroduce platform services 43/21643/1
José Bollo [Wed, 15 May 2019 18:49:14 +0000 (20:49 +0200)]
Introduce platform services

The platform services are services that run
at the global platform scope as opposite to
services that run in the context of the user.

Bug-AGL: SPEC-1015

Change-Id: I08c2d47715cbc7436e67781d5e638386be531520
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoIntroduce dbus config of services 42/21642/1
José Bollo [Tue, 4 Jun 2019 11:20:34 +0000 (13:20 +0200)]
Introduce dbus config of services

The files conf/dbus/afm-permissions-*.conf
are introduced to grant the permission to
access specific services.

At the moment the same permission is used:

  http://tizen.org/privilege/internal/dbus

But the idea is to replace it by a set of
different permissions.

Bug-AGL: SPEC-1016

Change-Id: Ide54e7fd9ae328ff17a877e4ec04b18ad32fb899
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoafm-user-daemon: Remove it by default 41/21641/1
José Bollo [Thu, 23 May 2019 16:38:45 +0000 (18:38 +0200)]
afm-user-daemon: Remove it by default

The daemon afm-user-daemon is deprecated.
To be cleaner, it is removed from the compilation
and the installation.

It is still kept a again for little time in the
unexpected case where it could be useful to compile
it.

Bug-AGL: SPEC-2437

Change-Id: Ifccee49eb14ceff5f7a78fb299260918a585bf93
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoafm-user-daemon: Remove it by default 86/21486/1
José Bollo [Thu, 23 May 2019 16:38:45 +0000 (18:38 +0200)]
afm-user-daemon: Remove it by default

The daemon afm-user-daemon is deprecated.
To be cleaner, it is removed from the compilation
and the installation.

It is still kept a again for little time in the
unexpected case where it could be useful to compile
it.

Bug-AGL: SPEC-2437

Change-Id: I164de87dd006570671543204dab5233fca40e538
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoafm-unit.conf: Refactor its generation 00/21400/2
José Bollo [Wed, 15 May 2019 18:49:14 +0000 (20:49 +0200)]
afm-unit.conf: Refactor its generation

The process of generating the file /etc/afm-unit.conf
had be reworked to be more straight forward.

Before that commit, a manual operation (a "make") had
to be done before committing the repository. This was
not efficient, error prone and kept temporary files in
conf.

That commit changes it by calling m4 through cmake.

Bug-AGL: SPEC-2436

Change-Id: Ia32a810286471dde8a01387d157e33277d67411d
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
4 years agoMerge "gitignore: Add ignore of EXTERNALSRC's artifacts"
José Bollo [Mon, 3 Jun 2019 16:06:29 +0000 (16:06 +0000)]
Merge "gitignore: Add ignore of EXTERNALSRC's artifacts"

4 years agoMerge "afm-unit.conf: cleanup of generation"
José Bollo [Mon, 3 Jun 2019 16:06:29 +0000 (16:06 +0000)]
Merge "afm-unit.conf: cleanup of generation"

4 years agoMerge "afm-unit: Simplify the Makefile"
José Bollo [Mon, 3 Jun 2019 16:06:29 +0000 (16:06 +0000)]
Merge "afm-unit: Simplify the Makefile"

4 years agoMerge "afm-user-session: moves in libexec directory"
José Bollo [Mon, 3 Jun 2019 16:06:29 +0000 (16:06 +0000)]
Merge "afm-user-session: moves in libexec directory"

4 years agoMerge "afm-unit conf: Remove useless tests"
José Bollo [Mon, 3 Jun 2019 16:06:29 +0000 (16:06 +0000)]
Merge "afm-unit conf: Remove useless tests"

4 years agoMerge "Use definition of afm_prefix"
José Bollo [Mon, 3 Jun 2019 16:06:29 +0000 (16:06 +0000)]
Merge "Use definition of afm_prefix"

4 years agogitignore: Add ignore of EXTERNALSRC's artifacts 99/21399/1
José Bollo [Fri, 17 May 2019 15:32:31 +0000 (17:32 +0200)]
gitignore: Add ignore of EXTERNALSRC's artifacts

This tiny change allows to use EXTERNALSRC when
building debugging images without having its
git status polluted.

Bug-AGL: SPEC-2006

Change-Id: Ic6556a34c487012471ed456c6b4467d686fee816
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoafm-unit.conf: cleanup of generation 98/21398/1
José Bollo [Thu, 16 May 2019 07:13:59 +0000 (09:13 +0200)]
afm-unit.conf: cleanup of generation

The generation files are reworked to improve
their evolution and maintainability:

 - the Makefile now refers to any .inc file
 - the macros are isolated from the skeleton
 - main iterators are managed in the skeleton
 - improve management of UNIT_NAME_BASE

Bug-AGL: SPEC-2436

Change-Id: I0877eb0149c9362be3290ed2c146cc69fc6bf718
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoafm-unit: Simplify the Makefile 97/21397/1
José Bollo [Wed, 15 May 2019 15:38:08 +0000 (17:38 +0200)]
afm-unit: Simplify the Makefile

The use of AFM_CONFIG_DIR brings nothing except confusion.

Bug-AGL: SPEC-2436

Change-Id: I21a18ad98349bf6799b72061523bc353ad3d6c3f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoafm-user-session: moves in libexec directory 96/21396/1
José Bollo [Wed, 15 May 2019 15:17:41 +0000 (17:17 +0200)]
afm-user-session: moves in libexec directory

Having the binary 'afm-user-session' in /usr/bin
brings nothing. It is better to keep it in private
area.

Bug-AGL: SPEC-2367

Change-Id: I8ef517f599c02e18d8987278a6652a065ee6f0b6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoafm-unit conf: Remove useless tests 95/21395/1
José Bollo [Wed, 15 May 2019 13:20:49 +0000 (15:20 +0200)]
afm-unit conf: Remove useless tests

The tests were not needed because they
were in the body of a conditional part
ruled by the same test.

Bug-AGL: SPEC-2436

Change-Id: Ia5cd1157dde6fc2b5aa1153aa375568b39639caf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoUse definition of afm_prefix 94/21394/1
José Bollo [Wed, 15 May 2019 11:55:45 +0000 (13:55 +0200)]
Use definition of afm_prefix

The prefix of the URN for AGL features should be
settable.

Bug-AGL: SPEC-2436

Change-Id: I49e9634ebc6a280c28caa6e6764e543a7e78253c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoRemove unused definitions 93/21393/1
José Bollo [Wed, 15 May 2019 11:53:42 +0000 (13:53 +0200)]
Remove unused definitions

The definitions FWK_PREFIX_BINDING and afm_prefix_binding
aren't used so removing it is better.

Bug-AGL: SPEC-2436

Change-Id: Ia90b75983f052b9b3c17832e968b0d457d0f7802
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoRefactor of system and user setup 05/21305/2 7.99.1 halibut/7.99.1 halibut_7.99.1
José Bollo [Fri, 3 May 2019 16:43:21 +0000 (18:43 +0200)]
Refactor of system and user setup

Since a long time, the creation of the user and
system run environment was made by a sub-optimal,
hardly maintainable and false-error generating.

This change puts the user and system setup
in separate shell scripts. This makes them
more easy to maintain, update or tune.

This facility will useful for further evolution.

Bug-AGL: SPEC-1016

Change-Id: Iede81a659eacf4e5c21c561a33d300408e1bd058
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
4 years agoFix outdated application path. 02/21302/1
Li Xiaoming [Tue, 14 May 2019 02:34:14 +0000 (10:34 +0800)]
Fix outdated application path.

Bug-AGL: SPEC-2360

Change-Id: I7907f8433cfdaf269004d6bc667f082a009b5cbd
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
4 years agoAllow setting of libexec location 99/21199/1
José Bollo [Tue, 30 Apr 2019 08:00:35 +0000 (10:00 +0200)]
Allow setting of libexec location

The location of the framework binding could not
be tuned but is fixed.

The default location is good but it is important
to be able to tune that location. This at least
has the good effect that the location is set at
one point in the build system instead of at multiple
points as today.

Bug-AGL: SPEC-2367

Change-Id: Ib06fdff56d1828eacd0d1f82c2e1308d0b36fa5e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
4 years agoafm-unit: Restore removal of capabilities 56/21156/2
José Bollo [Mon, 10 Dec 2018 07:07:39 +0000 (08:07 +0100)]
afm-unit: Restore removal of capabilities

This removes capabilities to any application installed
and launched.

Also fixes a tiny bug in setup of user environment.

Bug-AGL: SPEC-2006

Change-Id: I2c0d85cc2c2d389247ad9ce728f4d9e8e3d74616
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoAPI Reference Overview: Removed old "kristi" file, updated book 72/21072/1
Scott Rifenbark [Wed, 17 Apr 2019 17:37:59 +0000 (10:37 -0700)]
API Reference Overview: Removed old "kristi" file, updated book

Removed the old 0-kristi* file and updated the app-services-book.yml
file to remove the redundant file from the contents.

Change-Id: If0c01d5c39ae9660909d531335158b54168bc47a
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
5 years agoAPI Overview: Changes to the file that introduces APIs. 18/21018/2
Scott Rifenbark [Wed, 20 Feb 2019 18:27:57 +0000 (10:27 -0800)]
API Overview: Changes to the file that introduces APIs.

Updates to wording.

Change-Id: If91bfd17f786f39a2feedb70919af959222b59ff
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
5 years agoafm-util: Remove legacy commands stop/resume 65/20965/1
José Bollo [Tue, 9 Apr 2019 15:15:57 +0000 (17:15 +0200)]
afm-util: Remove legacy commands stop/resume

The command stop was linked to the SIGSTOP of
processes. It came in deprecation. Keeping it
is confusing.

Bug-AGL: SPEC-2247
Bug-AGL: SPEC-2248

Change-Id: Iad6af317ba4fd6466f306ef493ef8dd62d8de778
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-unit.conf: Add widget specific environment 42/20842/1
José Bollo [Thu, 28 Mar 2019 10:36:05 +0000 (11:36 +0100)]
afm-unit.conf: Add widget specific environment

This change allow to set environment specific
to a widget in ${afm_confdir}/widget.env.d/ID/*
files where ID is the ID of the widget.

Setting specific environment for a given widget
was not possible (except in devel/debug) before.

Change-Id: I8ef9349fda9adb8eecf330ce97cc7ebcd21bf399
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoAdd ability to manage all widget/applications 61/20761/1
José Bollo [Tue, 19 Mar 2019 22:21:35 +0000 (23:21 +0100)]
Add ability to manage all widget/applications

For system uses -like automatic testing-, it is
needed to include tha ability to list ALL installed
widgets and ALL running instance of installed
widgets.

This change adds the option -a or --all to the
commands 'list' and 'runners' for the purpose
of listing any installed widgets, even those
requiring to be hidden.

Example: afm-util ps -a

Bug-AGL: SPEC-2272
Bug-AGL: SPEC-1850

Change-Id: I216ec9c63efea1b3af58e1d2d7723d986e04551e
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoUpdate date in copyrights 75/19975/1 sandbox/scottrif29/scottdocs
José Bollo [Thu, 7 Feb 2019 08:54:09 +0000 (09:54 +0100)]
Update date in copyrights

Change-Id: Ie2ff321f78c59913373e2ffb2820297fd423d6f4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoSet version to 8.0.0 73/19973/1
José Bollo [Thu, 7 Feb 2019 08:41:48 +0000 (09:41 +0100)]
Set version to 8.0.0

Change-Id: If6524976b05ab104acee52f0cce1a7feea5e9d48
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoRevert "afm-unit: Restore removal of capabilities" 63/19963/2 7.90.0 halibut/7.90.0 halibut_7.90.0
Stephane Desneux [Wed, 6 Feb 2019 16:31:14 +0000 (17:31 +0100)]
Revert "afm-unit: Restore removal of capabilities"

This reverts commit f2a2f1357a5268b614528feeba0a91f4ea04a7aa.

Change-Id: I7ff68f27b75c9ddb887470c5579e7b9277aa3613
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
5 years agowgtpkg-unit: Fix Segmentation fault 57/19957/1
Jose Bollo [Wed, 6 Feb 2019 15:11:42 +0000 (16:11 +0100)]
wgtpkg-unit: Fix Segmentation fault

This fixes a segmentation fault raised when
uninstalling a widget. This regression was
introduced by the commit f8b0495.

Bug-AGL: SPEC-2144

Change-Id: Ie10eb97a4d2f2663d73f83b210ef2b17717ed2e6
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agowgtpkg-pack: Ensure packing relative files 55/19955/1
Jose Bollo [Wed, 6 Feb 2019 14:07:56 +0000 (15:07 +0100)]
wgtpkg-pack: Ensure packing relative files

When running external ZIP program, ensures that
the files are stored with a path relative to the
root directory by changing the directory first.

Also, tiny improvement in working directory handling.

Change-Id: I3470c6c933aea9cd93dac197ff7f5e8a0ed86b23
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agowgtpkg-zip: Ensure zip will not complain 53/19953/1
Jose Bollo [Wed, 6 Feb 2019 13:29:11 +0000 (14:29 +0100)]
wgtpkg-zip: Ensure zip will not complain

The invoked program ZIP may complain that the
target zip file is not valid. It happens either
when it is really invalid or when it is empty.

Change-Id: I8b123019175fab45c6539c1d5938656afd9c7643
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoafm-user-setup service: disable start rate limit 17/19517/1 6.99.4 guppy/6.99.4 guppy_6.99.4
Stephane Desneux [Sun, 6 Jan 2019 14:13:27 +0000 (15:13 +0100)]
afm-user-setup service: disable start rate limit

The service afm-user-setup is invoked each time an app is started.
If the user starts apps too quickly (3 apps in less than 10secs by default),
then afm-user-setup will fail and the last app is not started.

This patch removes the rate limitation coming from systemd default config.

Change-Id: Ief6af726c58866e2fc6d3fa170e5f6c6afbee987
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
5 years agoMerge "Revert "afm-unit: add autoapi in required-api feature"" 6.99.3 guppy/6.99.3 guppy_6.99.3
Jan-Simon Moeller [Thu, 20 Dec 2018 21:17:45 +0000 (21:17 +0000)]
Merge "Revert "afm-unit: add autoapi in required-api feature""

5 years agoRevert "afm-unit: add autoapi in required-api feature" 97/19297/1
José Bollo [Thu, 20 Dec 2018 20:41:58 +0000 (20:41 +0000)]
Revert "afm-unit: add autoapi in required-api feature"

This reverts commit 2b6e13bd5812dc1d7efe338a163f6dd253bbe15b.

Change-Id: I5e2493669da8d45150ed46257b06a5dae005e0bd

5 years agoMerge "Fixed book.yml file"
Jan-Simon Moeller [Thu, 20 Dec 2018 20:08:49 +0000 (20:08 +0000)]
Merge "Fixed book.yml file"

5 years agoMerge "afm-unit: add autoapi in required-api feature"
Jan-Simon Moeller [Thu, 20 Dec 2018 20:07:09 +0000 (20:07 +0000)]
Merge "afm-unit: add autoapi in required-api feature"

5 years agoFixed book.yml file 63/19163/1
Sebastien Douheret [Wed, 19 Dec 2018 22:13:34 +0000 (23:13 +0100)]
Fixed book.yml file

- remove useless %lang% prefix
- remove unwanted (copy/paste error) "API Reference" chapter

Change-Id: I2c46f93093eed6950cfbb7319e7cfd47fcd8b8b7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoafm-unit: Restore removal of capabilities 71/18871/2
José Bollo [Mon, 10 Dec 2018 07:07:39 +0000 (08:07 +0100)]
afm-unit: Restore removal of capabilities

This removes capabilities to any application installed
and launched.

Also applications are added by default to the display
group, meaning that it can be displayed.

Bug-AGL: SPEC-2006

Change-Id: Ia0b2d0df3ec1c74f37ca176fc9f0e8db96de3566
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-unit: Fix http port multi allocation 93/18993/1
José Bollo [Tue, 18 Dec 2018 09:58:25 +0000 (10:58 +0100)]
afm-unit: Fix http port multi allocation

When serveral targets were set in the widget file, the
framework allocated the same HTTP port to each. This
lead to impossibility to run all targets or to a
systemd conflict.

This should fix the issue by allocating an HTTP port for
each target installed by the widget. To achieves that goal,
the afm-unit.conf tag for the port is moved from
'#metadata.http-port' to '#metatarget.http-port'.

Bug-AGL: SPEC-2068

Change-Id: I5376d6f052e0ffc5c77cc80041528637777aed1e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agowrap-json: Upgrade to latest version 91/18991/1
José Bollo [Fri, 14 Dec 2018 17:37:10 +0000 (18:37 +0100)]
wrap-json: Upgrade to latest version

Change-Id: Iaaf302aa13650390bc8536f19187708dd67fa174
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-unit: add autoapi in required-api feature 01/18901/1
Clément Bénier [Fri, 14 Dec 2018 02:55:29 +0000 (03:55 +0100)]
afm-unit: add autoapi in required-api feature

- required-api feature: add autoapi value
- start the daemon with --auto-api option to the websocket directory

Change-Id: Ia36d0edb4bfa22d07feafed580373cda21dd5b35
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agobook doc: add book yaml file 31/18731/2
Clément Bénier [Wed, 12 Dec 2018 08:38:06 +0000 (09:38 +0100)]
book doc: add book yaml file

SPEC-1988

Change-Id: Ie68d715f04338bf8917792f0f1ae6e36d1602553
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agowgtpkg-install: Improve port allocation 19/18419/1 6.99.2 guppy/6.99.2 guppy_6.99.2
José Bollo [Thu, 29 Nov 2018 12:37:11 +0000 (13:37 +0100)]
wgtpkg-install: Improve port allocation

The algorithm that allocates ports is improved
by:

 - allocating ports in the range 31000...32759
 - avoiding systematic rescan

Change-Id: I72771cf3f361f4977edc7b59c75921e71f5b470b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoMerge "API Landing Page: Test landing page for all APIs"
Stéphane Desneux [Wed, 28 Nov 2018 17:15:30 +0000 (17:15 +0000)]
Merge "API Landing Page:  Test landing page for all APIs"

5 years agoAPI Landing Page: Test landing page for all APIs 73/18373/1
Scott Rifenbark [Wed, 21 Nov 2018 17:10:32 +0000 (09:10 -0800)]
API Landing Page:  Test landing page for all APIs

Change-Id: I5c8b843fc2c31d45cafbf25eef156a94e9fd0f1c
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
5 years agoonappid: retrieves the 'appid' with id field 49/18149/1 6.99.1 guppy/6.99.1 guppy_6.99.1
Clément Bénier [Wed, 21 Nov 2018 17:31:51 +0000 (18:31 +0100)]
onappid: retrieves the 'appid' with id field

the value of id field shoud be a string not an integer
so {si} is replaced by {ss}

Change-Id: Ief8a1e56295085cfe818301fd0073399a3ae6315
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agoafm-unit: Export new variables 09/17809/1
José Bollo [Thu, 8 Nov 2018 13:47:10 +0000 (14:47 +0100)]
afm-unit: Export new variables

Export the new variables:

 - AFM_ID: the identifier of the application
 - AFM_WORKDIR: the workdir of the application
 - AFM_WSAPI_DIR: the directory where APIs can
   be accessed

Change-Id: I79b46754f84161a36d9a13dd79bc94e777c854fe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoTreat correctly running/not running status 77/17677/1
José Bollo [Mon, 5 Nov 2018 17:14:15 +0000 (18:14 +0100)]
Treat correctly running/not running status

Systemd returns 0 for services that don't run.
It wasn't checked well causing weird effect:
trying to terminate an application not running
killed afm-system-daemon because kill(0) kills
all processes of the group of the caller.

Bug-AGL: SPEC-1836

Change-Id: I1bd64faf871ecd42aaaa5449312e8b8cb26ee9dd
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-system-daemon: Improve error message report 07/17607/1
José Bollo [Wed, 31 Oct 2018 13:06:07 +0000 (14:06 +0100)]
afm-system-daemon: Improve error message report

Bug-AGL: SPEC-1872

Change-Id: I6e48baa05312b1490edd38ccf9231afe4aa6eb51
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-util: Fix report of error 37/17537/1
José Bollo [Tue, 30 Oct 2018 20:39:40 +0000 (21:39 +0100)]
afm-util: Fix report of error

The script afm-util wasn't reporting correctly
errors. The use of the output status of
afb-client-demo was possible but this solution
is simplest to output the error message.

Bug-AGL: SPEC-1863

Change-Id: I5ac919e615ed5c0f21589292e94a9c3d6209a83f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoInstall afm-user-daemon with correct rights 81/17481/1
Jose Bollo [Mon, 29 Oct 2018 14:04:45 +0000 (15:04 +0100)]
Install afm-user-daemon with correct rights

Install afm-user-daemon with rwx-r-xr-x instead
of --x--x--x as before.

Bug-AGL: SPEC-1846

Change-Id: Ie48d379f5f4cfe8ddf3192ebee85580b05e35b36
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoafm-urun: Force scan of systemd units 75/17475/1
José Bollo [Sun, 28 Oct 2018 17:53:37 +0000 (18:53 +0100)]
afm-urun: Force scan of systemd units

It was previously assumed that only launched units
had to be scanned. But it was buggy because the
uninstall/install of application rebuilds the database
without taking care of the running applications.

Nevertheless changing the behaviour of the rebuild
of application's database is not the best solution
for two reasons. The fist is that it will complicates
the code. The second, much better, is that it would
allow to track also applications launched automaticaly
-and/or manually in devel-.

Bug-AGL: SPEC-1836

Change-Id: I5fb2bb712ce43be9c851251be6b794a007b1ea6f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoMerge "afm-unit.conf: Enforce starting after network"
José Bollo [Tue, 23 Oct 2018 09:23:15 +0000 (09:23 +0000)]
Merge "afm-unit.conf: Enforce starting after network"

5 years agoMerge "afm-unit.conf: Restrict service for APIs"
José Bollo [Tue, 23 Oct 2018 09:23:15 +0000 (09:23 +0000)]
Merge "afm-unit.conf: Restrict service for APIs"

5 years agoafm-unit.conf: Enforce starting after network 47/17347/1
Jose Bollo [Thu, 27 Sep 2018 10:42:51 +0000 (12:42 +0200)]
afm-unit.conf: Enforce starting after network

This solves issues encountered when starting
remote services. It delays all services until
completion of network initialisation. Delaying
every services is not selective. Further
optimisation may improve that issue.

Bug-AGL: SPEC-1650

Change-Id: I5742a4cd514c86c724a8e7a86c7e0a5dde6a8c67
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoAdd the ability to access binding through tcp 43/17343/1
José Bollo [Fri, 3 Aug 2018 13:10:53 +0000 (15:10 +0200)]
Add the ability to access binding through tcp

This commit introduce "tcp", a new type of
provided/required api. It appears in the config.xml
as below:

  <urn:AGL:widget:provided-api>
    <param "name"="HOST:PORT/API" "value"="tcp">

  <urn:AGL:widget:required-api>
    <param "name"="HOST:PORT/API" "value"="tcp">

This implementation is a draft. The service
exposed can not start automatically. Use it
with the permission urn:AGL:permission::system:run-by-default.

Change-Id: Ic593f0d891692ca0c777c49057ec54c37fc55cc0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoafm-unit.conf: Restrict service for APIs 45/17345/1
Jose Bollo [Thu, 13 Sep 2018 12:02:47 +0000 (14:02 +0200)]
afm-unit.conf: Restrict service for APIs

Forbids exportation of service apis for
apis that are not exported as 'ws' or 'auto'.

Bug-AGL: SPEC-1650

Change-Id: I0681bdb0632d9f331036abc1ff1e1b2bb37933cd
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
5 years agoMerge "docs: Improve documentating 'required-binding'"
Stéphane Desneux [Thu, 11 Oct 2018 08:29:27 +0000 (08:29 +0000)]
Merge "docs: Improve documentating 'required-binding'"