Jan-Simon Moeller [Thu, 20 Dec 2018 21:17:45 +0000 (21:17 +0000)]
Merge "Revert "afm-unit: add autoapi in required-api feature""
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
Jan-Simon Moeller [Thu, 20 Dec 2018 20:08:49 +0000 (20:08 +0000)]
Merge "Fixed book.yml file"
Jan-Simon Moeller [Thu, 20 Dec 2018 20:07:09 +0000 (20:07 +0000)]
Merge "afm-unit: add autoapi in required-api feature"
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>
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>
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>
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>
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>
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>
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>
Stéphane Desneux [Wed, 28 Nov 2018 17:15:30 +0000 (17:15 +0000)]
Merge "API Landing Page: Test landing page for all APIs"
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>
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>
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>
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>
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>
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>
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>
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>
José Bollo [Tue, 23 Oct 2018 09:23:15 +0000 (09:23 +0000)]
Merge "afm-unit.conf: Enforce starting after network"
José Bollo [Tue, 23 Oct 2018 09:23:15 +0000 (09:23 +0000)]
Merge "afm-unit.conf: Restrict service for APIs"
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>
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>
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>
Stéphane Desneux [Thu, 11 Oct 2018 08:29:27 +0000 (08:29 +0000)]
Merge "docs: Improve documentating 'required-binding'"
Jose Bollo [Tue, 9 Oct 2018 09:37:12 +0000 (11:37 +0200)]
docs: Improve documentating 'required-binding'
The documentation was not clear because the
headers wasn't set correctly.
Bug-AGL: SPEC-1800
Change-Id: Ibb5ecf3becdaad1b560e6718d41b81fdf55fe9df
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Romain Forlot [Fri, 5 Oct 2018 14:29:51 +0000 (16:29 +0200)]
afm-unit.conf: force symbolic link on update
Forcing symbolic link update ensures that if the value changes
the link will be overwriten. Otherwise the link always
keeps the old path until a system reboot or a manual removal
of the link file.
Change-Id: Ib9d8f267a8665edd75ce04f77eb70c4b0a4b8e9f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Sebastien Douheret [Thu, 20 Sep 2018 16:43:07 +0000 (18:43 +0200)]
doc: Changed doc to new format
- fixed image width setting
- split book.json to match new format
- changed description in README.md
- remove useless files
Change-Id: I9b0b863715585659f32a9f6c3005c1bbf15009f4
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Jose Bollo [Mon, 17 Sep 2018 09:06:33 +0000 (11:06 +0200)]
wgtpkg-install: Force uninstall
This commit forces uninstall of the previous installed
version instead of reinstall to get around a bug in
cynara.
Bug-AGL: SPEC-1230
Change-Id: Id29fc59794aed7386e0a32df43f9fbacc25c0863
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
José Bollo [Wed, 12 Sep 2018 12:32:06 +0000 (14:32 +0200)]
CMakeLists: Use AGLVERSION if set
And default the version to the next version of AGL
pre-guppy: 6.90.0
Change-Id: Ia86295efd42f42dd302aa61f072b325afa60e56c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Jose Bollo [Thu, 6 Sep 2018 08:55:14 +0000 (10:55 +0200)]
VERSION 5.99.FFRC6
Change-Id: I8239f3e1a81e99b9340865a7c2a468452bab6d94
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
José Bollo [Wed, 22 Aug 2018 11:52:36 +0000 (13:52 +0200)]
Set version to 5.99.FFRC4
Change-Id: I2c473cf1dbfc5bed738c9733694c833f12312a7b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 2 Aug 2018 16:48:57 +0000 (18:48 +0200)]
Add the external binding feature
This commit introduce two new features:
<urn:AGL:widget:provided-binding>
<param "name"="public-name" "value"="relative-path-to-the-binding"/>
<urn:AGL:widget:required-binding>
<param "name"="public-name" "value"="extern">
<param "name"="relative-path-to-the-binding" "value"="local">
TODO: manage security by setting correct Smack label to the exported files
Bugs-AGL: SPEC-1439
Bugs-AGL: SPEC-1663
Change-Id: I70aad7d523ece7a2ae0058b79708a02ef81144e2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 19 Jul 2018 09:29:36 +0000 (11:29 +0200)]
Creates systemd service for APIs
Before this change, APIs were only provided as binder's
exported websockets. This forbade ability to use symbolic
links.
Allowing links is interesting for having platform sockets
and for linked api (not using socket).
The API afm-main is a platform API. It must run at system level
and must be available for all user clients. To achieve it, we
use a link.
Bug-AGL: SPEC-1592
Change-Id: I8753f83373755eb7fc2d2cc50251b8f738b61b03
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 17 Jul 2018 09:14:06 +0000 (11:14 +0200)]
wgtpkg-digsig: Add flag to accept/refuse a WGT without signature
This flag allows with a single function to check the signature
and the case that a not signed widget is to be refused in the same
way that the signature is wrong.
The CMAKE boolean ALLOW_NO_SIGNATURE can be used to control
the default behavior at compile time. By default its value
is OFF meaning that install will refuse widgets without
signature.
Relates to Bug-AGL: SPEC-1590
Change-Id: I403109272759454696a1e5d9913879aaea7676e6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 17 Jul 2018 08:42:04 +0000 (10:42 +0200)]
wgtpkg-digsig: Fix digital signature check
The compute of the return code was wrong: it always
returned 0 even in case of error.
Installation of a widget with an error in its signature
was possible due to this error.
Bug-AGL: SPEC-1590
Change-Id: Ibefd74aafd6a00dea32e52d471460cbe08a380ab
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 17 Jul 2018 08:35:25 +0000 (10:35 +0200)]
Set version to 5.99.FFRC3
Change-Id: I5866cac1009e1c784c7a59a7892aca6aba14f257
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Sat, 7 Jul 2018 16:13:39 +0000 (18:13 +0200)]
wgtpkg-install: Fix SEGV when no icon in config file
Bug-AGL: SPEC-1573
Change-Id: I891c4edc3a7ded7848fe11cbc3ce3fe429650bf8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 5 Jul 2018 18:42:59 +0000 (20:42 +0200)]
Update version to 5.99.FFRC2
Change-Id: I387ae7b6dd2e32b8072910e01e615b4cf4247ba3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 15 Jun 2018 07:35:28 +0000 (07:35 +0000)]
Merge changes from topic 'binding-v3'
* changes:
afm-user-daemon: Update to future version of app-framework-binder
wrap-json: sync with upstream
afm-binding: use binding api v3
gitignore: Ignore NetBean project
afm-user-daemon: Update to binder changes for bindings v3
José Bollo [Thu, 14 Jun 2018 13:23:02 +0000 (13:23 +0000)]
Merge changes from topic 'binding-v3'
* changes:
wrap-json: Update for y/Y
afm-udb: refactor add_fields_of_content
afm-udb: split read_unit_file
afm-udb: improve comment
afm-binding: fix author
José Bollo [Fri, 1 Jun 2018 05:35:02 +0000 (07:35 +0200)]
afm-user-daemon: Update to future version of app-framework-binder
It will become necessarily to perform actions on behlf of the
client, not for its own credentials.
Change-Id: Ie2f50dd84df8b0b673772575f5c21ebec8a317f8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 15 May 2018 07:25:16 +0000 (09:25 +0200)]
wrap-json: Update for y/Y
Change-Id: Idca99ad19d5b6cee92ee77e7f5583cb83f5c9c53
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 29 May 2018 17:39:40 +0000 (19:39 +0200)]
wrap-json: sync with upstream
Change-Id: Ie4e7e759c9bc2a745835b722c9d26e560608aedb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 13:10:28 +0000 (15:10 +0200)]
afm-udb: refactor add_fields_of_content
Change-Id: Id59c92e18c7d3ed3fdd0df6dc2d46f64d58bdeee
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Thu, 24 May 2018 13:56:44 +0000 (15:56 +0200)]
afm-binding: use binding api v3
Change-Id: Iac5140db95e473dc0954c70b5dc401380450e017
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 10:09:36 +0000 (12:09 +0200)]
afm-udb: split read_unit_file
Change-Id: I4189bcc04b0a889d7f83576ea4b535e00a745e22
Signed-off-by: jobol <jose.bollo@iot.bzh>
jobol [Wed, 23 May 2018 07:47:09 +0000 (09:47 +0200)]
gitignore: Ignore NetBean project
Change-Id: I22de627ab121fa83ea68896f413d649f2f72d455
Signed-off-by: jobol <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 10:08:03 +0000 (12:08 +0200)]
afm-udb: improve comment
Change-Id: Ibf639ffaccbcbffff367cec6e919cd516064ab9a
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Tue, 22 May 2018 16:47:22 +0000 (18:47 +0200)]
afm-user-daemon: Update to binder changes for bindings v3
The bindings v3 are now allowed to return an object with
errors. To enforce taking that change into account, the
signature of the object changed. It implies some change
in clients.
Change-Id: I810b625c7e3abec8dcce7fba44e3b4d7ac7f5473
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 08:27:09 +0000 (10:27 +0200)]
afm-binding: fix author
Change-Id: Iefb2b248b5a9b85b89cd5181b3297fe4390ab149
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Jun 2018 13:14:02 +0000 (13:14 +0000)]
Merge changes from topic 'binding-v3'
* changes:
afm-binding: Review of the permissions
afm-binding: Improve comment and strings
José Bollo [Thu, 14 Jun 2018 13:12:23 +0000 (13:12 +0000)]
Merge "afm-system-daemon.service: Fix a typo"
jobol [Mon, 26 Mar 2018 12:25:02 +0000 (14:25 +0200)]
afm-binding: Review of the permissions
Change-Id: I1d3a36c69768901f205a47385d124b6483e60638
Signed-off-by: jobol <jose.bollo@iot.bzh>
jobol [Mon, 26 Mar 2018 12:24:33 +0000 (14:24 +0200)]
afm-binding: Improve comment and strings
Change-Id: Ic70e2abf1301d11b0a610cdf5cfd783d21a5674f
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Thu, 24 May 2018 14:42:10 +0000 (16:42 +0200)]
afm-system-daemon.service: Fix a typo
Change-Id: I30c22bf90242035285ee12f3bc0db73d7fe31595
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 24 May 2018 14:42:10 +0000 (16:42 +0200)]
afm-system-daemon.service: Fix a typo
Change-Id: If9dcd49edad5a34ea9c7bdfcba7d7bc44bbafbeb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 11:58:13 +0000 (13:58 +0200)]
CMakeLists: Fix library directories
Change-Id: Id9c86eb2385224d657ac69e1b7b5acd07bf6d71d
Signed-off-by: jobol <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 12:46:15 +0000 (14:46 +0200)]
afm-udb: Fix corrupted memory
Change-Id: Ib78b0843f819f232b05ac45124fe888c784f65d4
Signed-off-by: jobol <jose.bollo@iot.bzh>
jobol [Tue, 3 Apr 2018 10:09:08 +0000 (12:09 +0200)]
afm-udb: fix refcounting error
Change-Id: Ib5a7c398f9f07a88af05b01e08fdab97e123e374
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Wed, 28 Feb 2018 19:07:23 +0000 (20:07 +0100)]
Refactor user session management
Change-Id: Ib6ba886df110d8a23e3760e1818263ec757b9c7c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 18:32:15 +0000 (19:32 +0100)]
provided.inc: Fix smack label of sockets
Change-Id: I53d3cac7136e4d169acd8e3e3de5ea8439dd0192
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 18:15:28 +0000 (19:15 +0100)]
afm-user-session: Start target from user session
Start the afm-user-session@%i.target from the
user session after pam_sytemd session started.
Change-Id: I5aeb8f01426b3cee2cbfad6ba30ecf37fe21abca
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 14:10:08 +0000 (15:10 +0100)]
Update date of copyright notices
Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 14:07:54 +0000 (15:07 +0100)]
Add configuration variables for runtime socket dirs
2 new configuration variables:
- afm_platform_rundir (default /run/platform)
Path to location of platform runtime sockets
- afm_users_rundir (default /run/user)
Path to location of users runtime sockets
Change-Id: I65007fee1ca2ce6f1247a67ba0b121f97c08f209
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 27 Feb 2018 11:02:36 +0000 (12:02 +0100)]
Provision argument for handling language
The requests 'runnables' and 'detail' accept a parameter
'lang' to -in future- get localized data about apps.
Change-Id: I5f1804870c6b3c0d1aedf1a75cde1e2c09a5a605
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 22 Jan 2018 09:07:42 +0000 (10:07 +0100)]
afm-user-session: Create afm-user-session
This new executable is the simplest user session
manager: it waits the signal SIGTERM to stop and
thus release the session.
Change-Id: I557f27386c19ca3e2b28b21dd6a58918e9ca47be
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 19 Jan 2018 09:16:14 +0000 (10:16 +0100)]
Bump version to 5.99-FFRC0
Change-Id: I255b669036672b3728f0e60a62eca90716367178
José Bollo [Mon, 18 Dec 2017 11:26:41 +0000 (12:26 +0100)]
afm-binding: Allow use of appid instead of runid
This facility avoid the double call 'ps', 'kill' and
allow a single call to 'kill' with the application id.
Bug-AGL: SPEC-1189
Change-Id: I71861c06847e855b05dc8294ab1ea6785f555416
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 18 Dec 2017 11:23:35 +0000 (12:23 +0100)]
afm-binding: Common code getting application id
Repeated code is made common to the verbs
detail, start, once.
Change-Id: I9bc15bf22aeb7156d0892e71f56f86f3930866f6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Dec 2017 11:27:37 +0000 (12:27 +0100)]
docs: Add an history
Change-Id: Ib7ea7aa11c63492fe874368e3a0d539ab613a2a0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Dec 2017 10:59:00 +0000 (11:59 +0100)]
wgt-json: Add comments
Change-Id: If75c3089c9506219601d35b49c132a9b670c026e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Dec 2017 10:58:25 +0000 (11:58 +0100)]
Update of src/README.md
Change-Id: Id806a36fbc58df8dccb89f02fa86575c2aafd63e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 14 Dec 2017 09:48:57 +0000 (10:48 +0100)]
gendocs.sh: Fix tabulations
Change-Id: If9b06695c874f861859793b621264121d2152f11
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 11 Dec 2017 17:18:58 +0000 (18:18 +0100)]
mkdocs: Restore mkdocs feature
Change-Id: Iac70ac21a0d88e973aa5859a692515d4e683b2c9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 11 Dec 2017 12:55:10 +0000 (13:55 +0100)]
unit.conf: Fix Smack permission on api ws
The Smack permission to write on the websocket of the API
must be set to something that allows the communication!
Here the chosen value is *
Change-Id: Ia276219b232e33bd35353d8feb333513b340e75c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 8 Dec 2017 12:37:30 +0000 (13:37 +0100)]
docs: identify revision file
Change-Id: Iae13361c16b056f8619a9a75a08ae63d66f85daf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 8 Dec 2017 12:05:48 +0000 (13:05 +0100)]
Clean unused afm-main-binding... files
Change-Id: Ifc8da473e3454f10bfd1aad2500db579a732b43e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 8 Dec 2017 09:44:43 +0000 (10:44 +0100)]
Remove deprecated file afm.h
Change-Id: Ie524342b69d386c2d6f667dde7cde0d68a0d29c8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
jobol [Thu, 7 Dec 2017 15:49:03 +0000 (16:49 +0100)]
unit.cont: Refactor PATH and LD_LIBRARY_PATH
Change-Id: Ic6da02c0039421fd5656238f5fa812574af1c268
Signed-off-by: jobol <jose.bollo@iot.bzh>
José Bollo [Fri, 24 Nov 2017 15:34:42 +0000 (16:34 +0100)]
simplify afm-user-session process
Change-Id: If2739fd2c5a19d7cd31e117e1e79c0b51451552b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 24 Nov 2017 08:33:43 +0000 (09:33 +0100)]
Improve afm-user-session setup
Change-Id: I4dfb0939afc871e93874cf021548db2e85d3656c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 21:52:46 +0000 (22:52 +0100)]
Avoid implicit Before socket.target
Change-Id: I493c49a80ebb1fa85f586d0b0704b5682f0c3613
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 21:30:53 +0000 (22:30 +0100)]
Config for afm-user-session
Change-Id: I6567b58fa0a6dd17deba4c7cccbf3b9f441730eb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 16:21:00 +0000 (17:21 +0100)]
afm-user-startup.service: Fix type
Change-Id: I8ecddbc5be346441f002ef8c50dd733fec0e6ef2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 16:19:36 +0000 (17:19 +0100)]
unit.conf: Fix target name
Change-Id: I144bcd47b65b86dd07ca5de71514a0032166b3a6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 15:14:56 +0000 (16:14 +0100)]
Add a PAM config file
Change-Id: I27f726cd3cec7c0e499086c5ac3de1a736ef108c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 14:44:24 +0000 (15:44 +0100)]
Rework on systemd start of user sessions
Change-Id: Iad46596435eebdc5c521b572fd8320b52a61d197
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 23 Nov 2017 13:38:54 +0000 (14:38 +0100)]
afm-binding: Fix bug in evaluation of runid
Change-Id: I7a87a75d2effb7ad959b7a5c495402701f505529
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 21 Nov 2017 13:58:00 +0000 (14:58 +0100)]
unit.conf: Bound start to agl-user-session
Change-Id: Ic9731dbc9ee71872198ad70995dbaced8a7aa683
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Tue, 21 Nov 2017 10:39:44 +0000 (11:39 +0100)]
unit.conf: Remove unset of capabilities
Remove the unsetting of capabilities because it
currently breaks the image. To be reworked.
Change-Id: I69a1d9c23f463a36edebb7993aa94fae14fb60e8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 20 Nov 2017 15:08:19 +0000 (16:08 +0100)]
unit.conf: binder's service of type notify
Change-Id: Ibb80974c65f48d7473b8aa56604154bf70a49e14
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Mon, 20 Nov 2017 15:07:09 +0000 (16:07 +0100)]
unit.conf: Fix remaining %t
Change-Id: If9c1c0d8b805e7de6490c75f0465d3455e84eb36
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 17 Nov 2017 09:08:25 +0000 (10:08 +0100)]
afm-util: don't reload if afm-install
Change-Id: I5c73d80ee2dd02a8d7260e8dcd5f52e8ef84b34b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 17 Nov 2017 08:39:36 +0000 (09:39 +0100)]
genconf: set filetype and syntax
Change-Id: Ibcff5a513c4559c84ddfca1ef9449b1eff544006
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Fri, 17 Nov 2017 07:53:57 +0000 (08:53 +0100)]
afm-unit.conf: Fix missing @ in service name
Regression introduced by commit:
c7db705 Generate afm-unit.conf using m4
Change-Id: Ibeeaf14b697e79cb2a95154b50b2ac775f93d529
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 16 Nov 2017 16:38:26 +0000 (17:38 +0100)]
afm-util/install: use of web socket connection
Change-Id: I8bda689a377d676c4b190e1b54cdc115006c9829
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 16 Nov 2017 11:51:41 +0000 (12:51 +0100)]
wgtpkg-unit: remove metadata.app-data-dir variable
Change-Id: I51cbbad8ecdc371f457a008808c8c0f63501ac2b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
José Bollo [Thu, 16 Nov 2017 10:59:06 +0000 (11:59 +0100)]
afm-udb: add comments
Change-Id: I03d560a8fca3a064fa526afb55c951062fa7a78e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>