summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-01-07afm-user-setup service: disable start rate limitStephane Desneux1-0/+2
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>
2018-11-22onappid: retrieves the 'appid' with id fieldflounder_6.0.3flounder/6.0.36.0.3Clément Bénier1-1/+1
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>
2018-11-05Treat correctly running/not running statusflounder_6.0.2flounder/6.0.26.0.2José Bollo2-3/+17
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>
2018-10-31afm-system-daemon: Improve error message reportJosé Bollo2-11/+14
Bug-AGL: SPEC-1872 Change-Id: I6e48baa05312b1490edd38ccf9231afe4aa6eb51 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-10-31afm-util: Fix report of errorJosé Bollo1-1/+1
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>
2018-10-29Install afm-user-daemon with correct rightsJose Bollo1-1/+3
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>
2018-10-29afm-urun: Force scan of systemd unitsJosé Bollo1-13/+7
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>
2018-09-17wgtpkg-install: Force uninstallflounder_6.0.1flounder_6.0.0flounder/6.0.1flounder/6.0.06.0.16.0.0Jose 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-12Version 6.0.0 aka "Funky Flounder"flounder_5.99.7flounder/5.99.75.99.7Jose Bollo1-2/+3
Change-Id: If5a213cf0eeb898cd05bc4c51886f7d332cad6d5 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-09-10Add gitreview file for flounder branchJan-Simon Möller1-0/+1
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
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>