summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-11-24Improve afm-user-session setupJosé Bollo2-9/+3
Change-Id: I4dfb0939afc871e93874cf021548db2e85d3656c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Avoid implicit Before socket.targetJosé Bollo4-0/+22
Change-Id: I493c49a80ebb1fa85f586d0b0704b5682f0c3613 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Config for afm-user-sessionJosé Bollo8-9/+15
Change-Id: I6567b58fa0a6dd17deba4c7cccbf3b9f441730eb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-user-startup.service: Fix typeJosé Bollo1-0/+1
Change-Id: I8ecddbc5be346441f002ef8c50dd733fec0e6ef2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24unit.conf: Fix target nameJosé Bollo4-12/+12
Change-Id: I144bcd47b65b86dd07ca5de71514a0032166b3a6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Add a PAM config fileJosé Bollo3-2/+8
Change-Id: I27f726cd3cec7c0e499086c5ac3de1a736ef108c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Rework on systemd start of user sessionsJosé Bollo22-56/+190
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-24unit.conf: Bound start to agl-user-sessionJosé Bollo4-6/+6
Change-Id: Ic9731dbc9ee71872198ad70995dbaced8a7aa683 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24unit.conf: Remove unset of capabilitiesJosé Bollo3-6/+6
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>
2017-11-24unit.conf: binder's service of type notifyJosé Bollo3-0/+3
Change-Id: Ibb80974c65f48d7473b8aa56604154bf70a49e14 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24unit.conf: Fix remaining %tJosé Bollo5-9/+12
Change-Id: If9c1c0d8b805e7de6490c75f0465d3455e84eb36 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-util: don't reload if afm-installJosé Bollo1-1/+3
Change-Id: I5c73d80ee2dd02a8d7260e8dcd5f52e8ef84b34b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24genconf: set filetype and syntaxJosé Bollo4-0/+4
Change-Id: Ibcff5a513c4559c84ddfca1ef9449b1eff544006 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-unit.conf: Fix missing @ in service nameJosé Bollo4-20/+9
Regression introduced by commit: c7db705 Generate afm-unit.conf using m4 Change-Id: Ibeeaf14b697e79cb2a95154b50b2ac775f93d529 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-util/install: use of web socket connectionJosé Bollo4-28/+4
Change-Id: I8bda689a377d676c4b190e1b54cdc115006c9829 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24wgtpkg-unit: remove metadata.app-data-dir variableJosé Bollo6-22/+22
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-24Generate afm-unit.conf using m4José Bollo7-239/+431
The use of m4 to generate the afm-unit.conf and afm-unit-debug.conf files has benefits: - the sync between debug versus not debug is mechanical - it allows easier maintainance by improving readability and writability (ex: macros TARGET or UNIT_NAME_BASE) Change-Id: Ic0427bedf4f8a5b174318562336603077f174fa5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-unit.conf: remove invocation of PAMJosé Bollo2-2/+2
Change-Id: I2b446907b0c68b3bdb1c59227427e237f429ed8e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-unit.conf: Add XDG dirs definitionsJosé Bollo2-0/+6
Change-Id: I40d73de059e955256d90ca7831870815c7d90481 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24afm-unit.conf: Add slice indicationJosé Bollo2-0/+2
Change-Id: I50c2166ffab106988fa4ac1e68c14ea56c5b3145 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é Bollo3-1/+5
Change-Id: I117b8de2eec6cba9f475e18b794f90347bc184f8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Avoid polkit and bugJosé Bollo1-2/+2
Accessing systemd/system with DBUS from a user not root make systemd use polkit. It doesn't work for us because: - at the end systemd crashes (sigsegv) - we don't want polkit here Change-Id: I206edd108b8b659c8c6a3a68f61500cb114995d4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24remove secure-bit directivesJosé Bollo2-2/+0
Doesn't work after dropping capabilities! Change-Id: I748a8de9bb04006c14cba09cc6c4469da06c1b5d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24bug fixes and improvementsJosé Bollo4-18/+17
Change-Id: I2fc3de0a84e471e8e87f43170c20f8d6d0d05fdc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24provide access to systemd systemJosé Bollo2-9/+6
Change-Id: I1e3d2dc780a1449f2bfc894baa1f26a94be61cd8 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é Bollo6-346/+42
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-24afm-unit.conf: Removes capabilities of applicationsJosé Bollo2-0/+8
Change-Id: I081e8a8f9ea344d47ae007a4d6c9e72663f82fcf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-24Start user units at the system levelJosé Bollo5-25/+59
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-unit.conf: Rename generated systemd unitsJosé Bollo2-32/+48
Uses a more uniform naming for units and allows to use templating for some other purpose. Change-Id: Ia99f84a8f4436fcce6cecf3b3720870d27e9e303 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-10-10Added information to include external libraryRomain Forlot1-0/+10
Describe default directories used by application framework inside the apps. Bug-AGL: SPEC-883 Change-Id: Iea0280197db6091b4963134f8b20b5dc10b9767b Signed-off-by: Romain Forlot <romain.forlot@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>
2017-09-19Remove legacy mode without systemdJosé Bollo13-2752/+8
Change-Id: Id26322a1a46baa8b53b6d3c214477ae50a7c99f6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19Extend database values with arraysJosé Bollo1-3/+38
Change-Id: I9ab94413abce0d13102711091ec48a5894ccadd9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19Include json description for callbacksJosé Bollo3-4/+14
This tiny modification is mainly for debugging. Change-Id: Ieda90da49d365a7b092a02833227c869bd0397a4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-19Bump version to 4.99-EERC1José Bollo1-1/+1
Change-Id: Icb0f8870fa646ed0e2e969eaa1a06505f8dec467 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-18Bump doc to 4.99-EERC1Sebastien Douheret4-11/+12
Change-Id: I9181f557addc212224cc1bfe2da9a61b2c0cfb01 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-09-05Update version of toolseel_4.99.3eel_4.99.2eel_4.99.1eel/4.99.3eel/4.99.2eel/4.99.14.99.34.99.24.99.1José Bollo7-8/+119
Change-Id: I82bb06d2be92beb377d6c3cafffae49c65e9f20b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-05Set the url of the projectJosé Bollo1-0/+1
Change-Id: Ib32eac8f5ebc9e6dea43fdba78b6130b59b319e4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-05Fix warnings 'implicit-fallthrough' of gcc 7José Bollo4-4/+8
Change-Id: I32b42fd8db481fcbdce4b934fc990c118293850d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-09-05Upgrade to afb-daemon (binder) version 4.0 at leastJosé Bollo3-58/+44
Change-Id: I6d2a6e7e2781f0b2b3471f698912990961d84865 Signed-off-by: José Bollo <jose.bollo@iot.bzh>