aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-03-17Fix issue in labelling filesx-last-without-systemdJosé Bollo2-2/+4
The current version of security manager put this tags - SECURITY_MANAGER_PATH_PRIVATE - SECURITY_MANAGER_PATH_RW User::App::XXXX - SECURITY_MANAGER_PATH_PUBLIC - SECURITY_MANAGER_PATH_RO User::Home - SECURITY_MANAGER_PATH_PUBLIC_RO _ (underscore or floor) Putting floor is bad because it produces files and directories that can't be removed. Using SECURITY_MANAGER_PATH_RO instead of SECURITY_MANAGER_PATH_PUBLIC_RO sets the label "User::Home". It is valid because this label is already read only for applications. But it is writable by the "System" labelled services at the opposite of "_". Change-Id: I685fe366fddb95858c66b827e28acf6d005bcfc0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-16afm-run: improve error diagnosticJosé Bollo1-0/+1
Change-Id: Ic23bcc031fdc72e15675bffcbac619ef41a2f241 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14utils-json: fix a warning when compilingJosé Bollo1-1/+1
Change-Id: I3e354cb9e940798a995e79fe67d05607130c9714 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14afm-unit.conf: connect to systemd socketsJosé Bollo1-4/+9
Change-Id: I45d4ae48d47d8690f41222df4d05c04cd241ce37 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14Splits the widget validation functionJosé Bollo1-2/+12
Change-Id: I543995c8bb64a859a7c0eb6cc09217d2f71ccc38 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14utils-file: fix bug in writingJosé Bollo1-1/+0
Change-Id: I7da9ee72992cba4c49c0d1286a38674d3f7ed4bc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14switch to cmake 3.4.3 at leastJosé Bollo1-6/+2
Change-Id: Ib63bd000abaabd4966519b75356668d31aed58f9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-14improve names in CMakeListsJosé Bollo1-11/+11
Change-Id: If86544db50c5813868550338a68c0e11ea469a35 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-03afm-util: adds run-remote and start-remote commandsJosé Bollo1-0/+5
Change-Id: I2c94d072886f4dd004ea13f7bf0c1ce61b757ca8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-03Try to improves the error message after execJosé Bollo1-0/+1
Change-Id: Ibaed600a85ce1b7c3e445ceb39c780e99ca61062 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02Set the workdir in afm/afm-unit.confJosé Bollo1-2/+2
I'm not sure that it will be still present at the end but let go ahead with that. Change-Id: I123035c29c049c780b71b4181c15bd2d3a96e7c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02Adds SIGKILL as normal exit statusJosé Bollo1-0/+1
Change-Id: Ia67df22859b23d9da614d619d84900654bb2f7a0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02improves matching of patterns for unit descriptionJosé Bollo1-63/+156
Change-Id: I2c3f9f0b45b79d5baa9ad5c19876f1412456c19d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02Add commentsJosé Bollo1-0/+9
Change-Id: Icbbdbd4ed51db62c7619c6210842411b8d2e04a4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02fix a bug in mustachJosé Bollo1-2/+2
occured if closing before opening Change-Id: I9c9515535d83f2c13bb75c0638e12c0a5a333413 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02adds 'run-by-default' permissionJosé Bollo1-0/+5
Change-Id: Ie327c0253ea12e8a0b837195653f0762b76c9f79 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-03-02Adds handling of JSON pointers (RFC 6901)José Bollo1-28/+52
Change-Id: Ib2e1c75f81c32d0b6bc50af2ba48bb95a413842a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-02-23Fix readdir that doesn't return dt_typeJosé Bollo1-0/+8
This is an incomplete fix. More readdir calls exists that should be treated. Change-Id: Ib80c9f4ac8fe7ce02d22968a9cf37f7841514f57 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-02-22Fix readdir that doesn't return dt_typeJosé Bollo1-0/+10
This is an incomplete fix. More readdir calls exists that should be treated. Change-Id: Ic9ed98c7695a7c3d15136d0fe5eb9b5634f74d09 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-02-16Set roothttp option for html appSebastien Douheret1-2/+2
roothttp option (see commit dc011f99aed9407c8319b1b70a81f56ad2f02bc8) must be set to a valid directory (for example . that's mean roodir) in order to serve static files of html5 app. Change-Id: I13a17f6699298a80a346dbb6b4c3ecb6ab236bd6 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-02-15Ignore vscode projectSebastien Douheret1-0/+1
Change-Id: I9040f9fb6a8875a7e0e5bab08ce23db5557ef433 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-02-15Fix typos in docsSebastien Douheret4-65/+66
Change-Id: I901ff5bb6f22ba7076914c7cbe92f69b4b89cb0e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-02-14Fix bug in mustach.cJosé Bollo1-1/+1
Change-Id: I353ae1cc33795ba8ffd98fcec503125ec9d455a3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-02-03Rename binding to api in config.xmljobol7-37/+37
Signed-off-by: jobol <jose.bollo@iot.bzh>
2017-01-31Improves namesJosé Bollo1-8/+8
The name binding is related to an internal concept of the binder. The term API is more generic. Dont forget that an API can be provided by more than one binding (but only one at a given time). Change-Id: I91b2f3d96de6aace5fcb434cf64df7e8ed61630f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-26Prepare the Integration with systemdJosé Bollo23-245/+2330
This is an intermediate commit providing basic functionnalities for setting up integration of the framework with systemd. - file afm-unit.conf is a mustache template - translation of config.xml to json object - mustache (extended) application of the json to the template - post processing of the result for extracting unit files This processing is currently available as a test (and a tool) and will be integrated after more developement, test and validation. Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-26Get the install directoryJosé Bollo1-9/+21
The function 'move_widget' was the only one that worried about the name of the installation directory. This commit split the function in two and enforce to get the name of the install directory. Change-Id: I6d89b4c94b2898a6ba95a3045b3f5db23d54c499 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-26Fix a possible access to uninitialized memoryJosé Bollo1-1/+1
Change-Id: Ica1cf7d81b561ce34039e5212ed6578950f1bfdd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-26Add utils-file and provide json-cJosé Bollo3-3/+157
This is an intermediate commit providing new features for common utils. Change-Id: Ide92167d8e4e5013ddadd718c02071ea837938e3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-26Make utils-json handle dot keysJosé Bollo2-0/+178
Change-Id: I8b9b91accc0e30726e3be7f287b8312b0d7f3d02 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-26Update date in headersJosé Bollo4-3/+4
Also update .gitignore Change-Id: I9d3e82c59318d983243ffce6d0a726ad5186fa2d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-09Put strings in one placeJosé Bollo7-102/+150
Change-Id: I79afd4fa18996e7879db4c11480a5400637dad2d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-09Set application id when forkingJosé Bollo2-2/+9
This improvement should make log message more clear. Change-Id: Ifc78f7d913a1798a43b54df6b2bf9b52232d328a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-05Remove use of deprecated readdir_rJosé Bollo2-15/+18
Change-Id: I55bd335f1a731e3a02fdb598c8bd869686269aab Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-01-03Adds 2017 to copyrightsJosé Bollo56-56/+56
Change-Id: I3fcd64a038c6c5bca3d70186e2e68604aa392ed4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-12-20temporary grant requested permissionsJosé Bollo2-1/+14
Change-Id: If9a7d2a183aa8b0c0ed531b4d915443e199b488b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-12-14conf/afm-launch.conf: use --roothttp=htdocs only for HTML5 applicationsStephane Desneux1-3/+3
Change-Id: Ieaa7b9f6f320610a56d020c9ac10fca313d892f9 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-12-14afm-db: Search applications case insensitivelyJosé Bollo1-2/+23
Makes the identifier of the application case insensitive. Being case correct is the fast track. Having the wrong case is not an error but just less efficient. Change-Id: Id18f1cfcf49c9f9f336947ebb08bba335a0adc6a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-12-14wgt-info: Enforce lower case ids and versionJosé Bollo1-0/+13
This will be used next to avoid faking identity of applications using the case difference. Change-Id: I13cbdd5124b58b2a72c15054df6f3cd0e11a2cc5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-12-14wgtpkg-install: set exec flag for application/vnd.agl.nativeJosé Bollo3-4/+16
This is needed for executable having a binder. Also conforming to RFC 2045, mime types are made case insensitive. Change-Id: I065c8eada5ec044daca73b3bf994b0d6f3587414 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-12-12fix html linkRonan1-4/+4
Change-Id: Ia1be9d8370620e4dcfd00130108928daef61a7ed Signed-off-by: Ronan <ronan.lemartret@iot.bzh>
2016-12-09fix svg path for gen htmlRonan2-3/+3
Change-Id: Ib91a405a5a7d49ad6f6c752aef6cb6cadee9ab9f Signed-off-by: Ronan <ronan.lemartret@iot.bzh>
2016-11-29Doc reworked, reliftedRomain Forlot12-978/+1557
Change-Id: If41313a44cb66c0aa0f315b264284d081ff87f8e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2016-11-17docs: fix smallest typo, everStephane Desneux1-0/+1
Change-Id: Ibe47587fc1971de44e46147b110f2605b262c639 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-11-16wgtpkg-install: set the exec flagJosé Bollo1-0/+11
Change-Id: Iae3acfcd12f1b01ebf47225af72220e61a24767f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-16afm-launch: avoid warningsJosé Bollo1-1/+6
Change-Id: I8e650af2eccb99f8b97395a66aba839f4b5802b7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-16add variable AFM_APP_INSTALL_DIR to environmentJosé Bollo1-0/+1
Change-Id: I1558ed87124750a87a4bf0359d9fb974617a8c42 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-16afm-launch: allows variable in environmentJosé Bollo1-3/+11
Change-Id: I57e45894ffb4e4e32e4560f8a15adc54335067d0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-15wgtpkg-zip: fix implicit conversionsJosé Bollo1-2/+2
Change-Id: Ib3e3a31090361e4c0dd24c2d936dc8695a491030 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-14afm-user-daemon: Adds method "once"José Bollo7-2/+117
Adds the method "once" that is intended to start an application in local mode if it doesn't already run. Returns the state of the running application. Change-Id: I4dfff06fa2d3e95f13a2436a2f1af9174799ddcf Signed-off-by: José Bollo <jose.bollo@iot.bzh>