summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-10-19Add the ability to access binding through tcpJosé Bollo4-47/+65
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>
2018-10-11Merge "docs: Improve documentating 'required-binding'"Stéphane Desneux1-4/+59
2018-10-10docs: Improve documentating 'required-binding'Jose Bollo1-4/+59
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>
2018-10-05afm-unit.conf: force symbolic link on updateRomain Forlot3-3/+3
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>
2018-09-20doc: Changed doc to new formatguppy_6.90.0guppy/6.90.06.90.0Sebastien Douheret14-988/+47
- 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>
2018-09-17wgtpkg-install: Force uninstallJose Bollo1-0/+11
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>
2018-09-13CMakeLists: Use AGLVERSION if setJosé Bollo1-1/+2
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>
2018-09-06VERSION 5.99.FFRC6flounder_5.99.6flounder/5.99.65.99.6Jose Bollo1-1/+1
Change-Id: I8239f3e1a81e99b9340865a7c2a468452bab6d94 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-08-22Set version to 5.99.FFRC4flounder_5.99.5flounder_5.99.4flounder/5.99.5flounder/5.99.45.99.55.99.4José Bollo1-1/+1
Change-Id: I2c473cf1dbfc5bed738c9733694c833f12312a7b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-08-16Add the external binding featureflounder_5.99.3flounder/5.99.35.99.3José Bollo13-23/+171
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>
2018-07-19Creates systemd service for APIsJosé Bollo7-43/+142
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>
2018-07-17wgtpkg-digsig: Add flag to accept/refuse a WGT without signatureJosé Bollo5-7/+21
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>
2018-07-17wgtpkg-digsig: Fix digital signature checkJosé Bollo1-1/+1
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>
2018-07-17Set version to 5.99.FFRC3José Bollo1-1/+1
Change-Id: I5866cac1009e1c784c7a59a7892aca6aba14f257 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-07-07wgtpkg-install: Fix SEGV when no icon in config fileflounder_5.99.2flounder/5.99.25.99.2José Bollo1-1/+1
Bug-AGL: SPEC-1573 Change-Id: I891c4edc3a7ded7848fe11cbc3ce3fe429650bf8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-07-05Update version to 5.99.FFRC2José Bollo1-1/+1
Change-Id: I387ae7b6dd2e32b8072910e01e615b4cf4247ba3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-15Merge changes from topic 'binding-v3'flounder_5.99.1flounder/5.99.15.99.1José Bollo5-66/+235
* 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
2018-06-14Merge changes from topic 'binding-v3'José Bollo4-67/+351
* 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
2018-06-14afm-user-daemon: Update to future version of app-framework-binderJosé Bollo1-0/+5
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>
2018-06-14wrap-json: Update for y/YJosé Bollo2-12/+272
Change-Id: Idca99ad19d5b6cee92ee77e7f5583cb83f5c9c53 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-14wrap-json: sync with upstreamJosé Bollo2-6/+103
Change-Id: Ie4e7e759c9bc2a745835b722c9d26e560608aedb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-14afm-udb: refactor add_fields_of_contentjobol1-6/+15
Change-Id: Id59c92e18c7d3ed3fdd0df6dc2d46f64d58bdeee Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-14afm-binding: use binding api v3José Bollo1-49/+109
Change-Id: Iac5140db95e473dc0954c70b5dc401380450e017 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-06-14afm-udb: split read_unit_filejobol1-48/+60
Change-Id: I4189bcc04b0a889d7f83576ea4b535e00a745e22 Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-14gitignore: Ignore NetBean projectjobol1-1/+2
Change-Id: I22de627ab121fa83ea68896f413d649f2f72d455 Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-14afm-udb: improve commentjobol1-0/+3
Change-Id: Ibf639ffaccbcbffff367cec6e919cd516064ab9a Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-14afm-user-daemon: Update to binder changes for bindings v3José Bollo1-10/+16
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>
2018-06-14afm-binding: fix authorjobol1-1/+1
Change-Id: Iefb2b248b5a9b85b89cd5181b3297fe4390ab149 Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-14Merge changes from topic 'binding-v3'José Bollo1-26/+79
* changes: afm-binding: Review of the permissions afm-binding: Improve comment and strings
2018-06-14Merge "afm-system-daemon.service: Fix a typo"José Bollo0-0/+0
2018-06-13afm-binding: Review of the permissionsjobol1-22/+49
Change-Id: I1d3a36c69768901f205a47385d124b6483e60638 Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-13afm-binding: Improve comment and stringsjobol1-4/+30
Change-Id: Ic70e2abf1301d11b0a610cdf5cfd783d21a5674f Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-06-13afm-system-daemon.service: Fix a typoJosé Bollo1-1/+1
Change-Id: I30c22bf90242035285ee12f3bc0db73d7fe31595 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-05-24afm-system-daemon.service: Fix a typoJosé Bollo1-1/+1
Change-Id: If9dcd49edad5a34ea9c7bdfcba7d7bc44bbafbeb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-04-05CMakeLists: Fix library directoriesjobol1-1/+7
Change-Id: Id9c86eb2385224d657ac69e1b7b5acd07bf6d71d Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-04-05afm-udb: Fix corrupted memoryjobol1-1/+1
Change-Id: Ib78b0843f819f232b05ac45124fe888c784f65d4 Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-04-05afm-udb: fix refcounting errorjobol1-2/+2
Change-Id: Ib5a7c398f9f07a88af05b01e08fdab97e123e374 Signed-off-by: jobol <jose.bollo@iot.bzh>
2018-02-28Refactor user session managementJosé Bollo9-15/+70
Change-Id: Ib6ba886df110d8a23e3760e1818263ec757b9c7c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-28provided.inc: Fix smack label of socketsJosé Bollo3-6/+6
Change-Id: I53d3cac7136e4d169acd8e3e3de5ea8439dd0192 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-28afm-user-session: Start target from user sessionJosé Bollo5-13/+37
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>
2018-02-28Update date of copyright noticesJosé Bollo73-73/+73
Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-28Add configuration variables for runtime socket dirsJosé Bollo11-23/+28
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>
2018-02-27Provision argument for handling languageJosé Bollo3-11/+52
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>
2018-01-22afm-user-session: Create afm-user-sessionJosé Bollo2-0/+41
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>
2018-01-19Bump version to 5.99-FFRC0José Bollo2-1/+2
Change-Id: I255b669036672b3728f0e60a62eca90716367178
2018-01-19afm-binding: Allow use of appid instead of runidJosé Bollo3-6/+47
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>
2018-01-19afm-binding: Common code getting application idJosé Bollo1-22/+37
Repeated code is made common to the verbs detail, start, once. Change-Id: I9bc15bf22aeb7156d0892e71f56f86f3930866f6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-14docs: Add an historyJosé Bollo3-0/+9
Change-Id: Ib7ea7aa11c63492fe874368e3a0d539ab613a2a0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-14wgt-json: Add commentsJosé Bollo1-46/+126
Change-Id: If75c3089c9506219601d35b49c132a9b670c026e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-14Update of src/README.mdJosé Bollo1-29/+47
Change-Id: Id806a36fbc58df8dccb89f02fa86575c2aafd63e Signed-off-by: José Bollo <jose.bollo@iot.bzh>