aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2016-11-14afm-run: adds helper functionsJosé Bollo1-12/+59
Adds function to summarize state of runners: is_running, is_paused, is_alive, is_dead Change-Id: I2a46be3c3a2079a5e43cde5f8ed18aab391ea05b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-14afm-run: minor fixesJosé Bollo1-2/+2
fix a wrong comment of the returned value. fix the location of the variable runner (probablyy a cut&paste error) Change-Id: If8320410ff81576a72746cd703e8b1207672eaa2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-14binding: remove unused stringJosé Bollo1-1/+0
Change-Id: I3dc927c6e23b72dc628efe9b48b9d2a8196b5620 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-08adds introspection files for dbusJosé Bollo2-0/+64
Change-Id: I8602eadc2399588030a44aa98593556c38b0754a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-08renaming of verbsJosé Bollo8-68/+110
The verbs 'stop' and 'continue' are now renamed as respectively 'pause' and 'resume'. Change-Id: I2f82105103884fc07f3c67e08c696e435aed28e1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-08afm-user-daemon: returns the pids of the processesJosé Bollo2-2/+21
Asking for the state now returns the pids of the launched processes when this processes are still alive. Change-Id: I69348d8089581247465c3bd1ab83f86decad25ae Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-08utils-json: add facility for arraysJosé Bollo2-1/+5
Change-Id: I6d536d730af71b18e78720839522b82aed63c0d4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-11-08Adds a pkgconfig file for directoriesJosé Bollo2-1/+39
Change-Id: Icbd3c7bc52232ca0fec6f4c69694bfaa0b64ef8e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-28doc: switch to mkdocsJosé Bollo22-1748/+14
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-28update dates of headersJosé Bollo52-52/+52
Change-Id: Ie82326a91ff61f079421239ffa83428f552194ab Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-20afm-user-daemon: accept bus address with argumentsJosé Bollo2-5/+69
It might be necessary to pass the address as an argument because library systemd uses secure_getenv to retrieves the default addresses and secure_getenv might return NULL in some cases. Change-Id: Iea14a0494f39875f0a501e53a2711b0df96bab3c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-20afm-run: set smack attributes to user directoryJosé Bollo2-13/+33
The home directory for applications of a user that was created by the daemon also gets a security label and encures that there is no transmutation. It also simplifies allocation of the directory string. Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-20build: improve simulation of securityJosé Bollo4-6/+52
This commits allows to simulates either the security-manager and the smack LSM. These simulations are used for developping purpose. Change-Id: I138d7351511ca2663498bfacca28811fc81b8c55 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-18Minor improvementsJosé Bollo5-48/+41
- Clean cmake files - Fix orthograph and vocabulary Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-18Fix very bad typoJosé Bollo1-1/+1
The previous commit had CAP_DAC_OVERRIDE instead of CAP_MAC_OVERRIDE. Change-Id: I36988cd7771b6e25dbcf8d858ee3598bd12176b4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-10-14Refactor of service for systemd 229José Bollo2-2/+1
Since introduction of ambient capabilities, systemd deprecated the use of Capabilities. With systemd 229 activated with krogoth, the use of Capabilities does nothing. This commits avoids to use SecureBits and Capabilities. It now relies on the fact that post installations are setting the capabilities to the file: - setcap cap_mac_override,cap_dac_override=ep afm-system-daemon - setcap cap_mac_override,cap_mac_admin,cap_setgid=ep afm-user-daemon Using p (permitted) instead of i (inherited) that was previously used. Change-Id: I17d51da07adf775d47a7f44551d8b8ebbc6eacb9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-19documentation: improve namingsJosé Bollo2-10/+10
Change-Id: I188c3246f7492e82cb00a1a1f6cefe56495d9224 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-19documentation: adds required-binding entryJosé Bollo2-34/+72
Change-Id: Id8a62f5f6d9e54399fc12e10e922bf1ca121eb49 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-12Describes the permissions in the config fileJosé Bollo3-17/+35
Change-Id: I9f786ed0ae552354383796c4137a82b6116ad016 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-12cleanup of the codeJosé Bollo2-9/+0
The lines removed were not used and were in conflict with future developements. Change-Id: Ib1cc2d4e8ef18b37f9b68066258d002062db4eb6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-12Fix installation of more than one widgetJosé Bollo3-1/+11
Using command line tool, it is possible to install more than just one widget. Before this commit, the list of requested permission was not cleaned. Change-Id: Ic9311754f51f12d6231d1f08a55eb4b4aef0c74e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-12Avoid to exit in setting permission listJosé Bollo3-6/+11
Change-Id: I623546a8c134b54f7b62b42a980f603202e42868 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-09-12add documentation & ideas about config.xmlJosé Bollo11-36/+445
Also enforce the strings for 'id' and 'version' to be not empty in config.xml Change-Id: I510b62891885033e0b750fac5f5de5e0fd25d75d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-31Use of the new 'roothttp' optionJosé Bollo1-4/+4
The new option 'roothttp' set the root directory that the HTTP part of the binder serves. Its default value is ".". Using this option, the content accessible through HTTP can be a subdirectory of the root and in the same time, the application data are available in the root directory. Change-Id: I30d5f78eb2fe500b840fe0f4869d3e54be69c3cf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-19config: allows "standard" typesblowfish_2.0.2blowfish_2.0.12.0.22.0.1José Bollo1-1/+1
The standard types for HTML (text/html) and QML (text/vnd.qt.qml) should be available. This is needed for 3 reasons: - installing existing demos - installing almost standard HTML widgets - the current default type is text/html Change-Id: I9fa418b1c995663ac4120d3e0bdb42def3ab166e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-15afm-launch.conf: handle URL, native, QML and hybrid typesManuel Bachmann1-1/+18
Provide a generic layout for all the application types and usecases that developers may want to use, and that we are going to provide as templates. Change-Id: I3f8100a16ea64262e0cb7a0e1ee38a24eab776e8 Signed-off-by: Manuel Bachmann <mbc@iot.bzh>
2016-07-10afm-launch.conf: handle services through application/vnd.agl.service mimetypeStephane Desneux2-5/+10
Change-Id: Icb19b5d5036168b3e74f8e684ec4a2909d0feeb7 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-07-09cmake: handle build for SDKStephane Desneux4-58/+75
When building for SDK, only the wgtpkg tools should be built Change-Id: I2f935bae1b26d1d0e8b9513ade85703f8f49cf9d Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-06-24upgrading documentation to new usageJosé Bollo15-91/+34
Change-Id: I5fbee7ba7ec929f6bcc02ffac7202059df02aa29 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24improves the documentationJosé Bollo9-1463/+955
Change-Id: Ieea284220b2b088bf460093f745e8f5fb3633eca Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24improves help messageJosé Bollo1-1/+1
Change-Id: I2bc1f268bf967a46571831572b99506df31ed6da Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24adds certificatesJosé Bollo2-0/+31
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24improves naming using 'binding'José Bollo6-19/+18
Change-Id: I535e01ce4a8dd1e16637e61c6624b4f37639b2f7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24improves verbose messagesJosé Bollo2-60/+63
Change-Id: I5831628aedb3adb6b1f917f1945b45e995be5321 Signed-off-by: José Bollo <jose.bollo@iot.bzh>