summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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-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-08-16Add the external binding featureflounder_5.99.3flounder/5.99.35.99.3José Bollo3-0/+30
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-17wgtpkg-digsig: Add flag to accept/refuse a WGT without signatureJosé Bollo4-7/+14
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-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-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: sync with upstreamJosé Bollo2-6/+103
Change-Id: Ie4e7e759c9bc2a745835b722c9d26e560608aedb Signed-off-by: José Bollo <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-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-14wrap-json: Update for y/YJosé Bollo2-12/+272
Change-Id: Idca99ad19d5b6cee92ee77e7f5583cb83f5c9c53 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-udb: split read_unit_filejobol1-48/+60
Change-Id: I4189bcc04b0a889d7f83576ea4b535e00a745e22 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-binding: fix authorjobol1-1/+1
Change-Id: Iefb2b248b5a9b85b89cd5181b3297fe4390ab149 Signed-off-by: jobol <jose.bollo@iot.bzh>
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-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-28afm-user-session: Start target from user sessionJosé Bollo2-13/+10
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é Bollo64-64/+64
Change-Id: Ia4ef2a6e3c07616ccd756933a82f0806844c4faf 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-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-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>
2017-12-08Clean unused afm-main-binding... filesJosé Bollo2-420/+0
Change-Id: Ifc8da473e3454f10bfd1aad2500db579a732b43e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-08Remove deprecated file afm.hJosé Bollo3-24/+2
Change-Id: Ie524342b69d386c2d6f667dde7cde0d68a0d29c8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Rework on systemd start of user sessionsJosé Bollo1-1/+1
Change-Id: Iad46596435eebdc5c521b572fd8320b52a61d197 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-binding: Fix bug in evaluation of runidJosé Bollo1-2/+2
Change-Id: I7a87a75d2effb7ad959b7a5c495402701f505529 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24wgtpkg-unit: remove metadata.app-data-dir variableJosé Bollo1-1/+0
Change-Id: I51cbbad8ecdc371f457a008808c8c0f63501ac2b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-udb: add commentsJosé Bollo1-1/+5
Change-Id: I03d560a8fca3a064fa526afb55c951062fa7a78e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-binding: Restore previous return for 'start'José Bollo1-0/+4
Change-Id: I28cd41391d207b59d74d2ff661e5981b9947c716 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Don't rely on features available for user unitsJosé Bollo1-1/+1
Change-Id: I117b8de2eec6cba9f475e18b794f90347bc184f8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24bug fixes and improvementsJosé Bollo2-16/+14
Change-Id: I2fc3de0a84e471e8e87f43170c20f8d6d0d05fdc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Restore compilation of native-sdkJosé Bollo2-5/+11
Change-Id: I3855854407ad47c2b9a2288b8425513de5ae94d3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Remove afm-system-daemonJosé Bollo3-342/+26
Change-Id: I1e6c0488b7183724a65fcc06fd3cf6909e0efd53 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24urun/udb: integration of user UIDJosé Bollo5-116/+118
Managing user applications at the system levels requires to manage the user application in a single process. This process must manage the user identity (UID). Change-Id: I1ce8c9ca66ed0f916ecb2931ae014b08b113fa23 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-user-daemon: rewriten to use direct APIJosé Bollo2-370/+109
The coming version of afm-system-daemon will no more use DBUS but will provide a websocket API. Change-Id: I5ff0488ff5ec5b2b9a193d869efe8a9c5896516f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-binding: provide afm as a unique bindingJosé Bollo6-46/+1815
This is the first stone (not fully tested) to implment the afm-main as a binding. At the end, this component will replace afm-user-daemon and afm-system-daemon. Change-Id: I6eafa7d26800f45ae58dd51aa9ff8008cdb3ff59 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24utils-systemd: Offer way to set systemd's busesJosé Bollo2-14/+27
Change-Id: I8035c10e8f769b7912046b432d43f97297c039b2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-udb: keep looking at valid unitsJosé Bollo1-3/+4
Returning an error when a unit is not valid has drawbacks. With this commit, bogus units are ignored. The benefit is to be able of using valid units instead of using none because in the previous case, all the DB was cancelled. Change-Id: Id1e4d6d5efd4af7e118b9d549238bd5e3d6c52d7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Start user units at the system levelJosé Bollo3-7/+35
When service name end with @ it means that the user UID must be provided. Change-Id: I6707df0151b7cab985cfc53a81fccf6a7150c9a3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-udb: remove comments and join lines of unit filesJosé Bollo1-1/+60
Change-Id: I9d901e074925a666190d5e3007a66aea81ef6253 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19wgtpkg-unit: improve naming (minor)José Bollo3-8/+8
Change-Id: I5dae72c8dd925646b18c30ab4ef60382e43c744b Signed-off-by: José Bollo <jose.bollo@iot.bzh>