aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-02-13Add gitlab issue/merge request templatesHEADricefish_17.90.0ricefish/17.90.017.90.0masterJan-Simon Moeller2-0/+6
Add template files for gitlab Bug-AGL: SPEC-4474 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: Iaa8d556515ac8a15b2fe2d66939c43868b738a4e
2020-11-12Version 2.1needlefish_13.93.0needlefish/13.93.0marlin_12.93.0marlin_12.92.0marlin_12.91.0marlin_12.90.1marlin_12.90.0marlin/12.93.0marlin/12.92.0marlin/12.91.0marlin/12.90.1marlin/12.90.0lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.0koi_10.93.0koi_10.92.0koi_10.91.0koi/10.93.0koi/10.92.0koi/10.91.013.93.012.93.012.92.012.91.012.90.112.90.011.92.011.91.010.93.010.92.010.91.0José Bollo4-5/+7
The version 2.1 fixes a database issue. Bug-AGL: SPEC-3677 Change-Id: I5c8e4595894ee26a2018f939a42ba0b8abcad722 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-11-02filedb: Ensure rules are writtenJosé Bollo1-1/+3
After changing the values, make sure that new values are written on disk. Bug-AGL: SPEC-3677 Change-Id: Ib72f72ba2571f046bd76b7985b503f7f598a72bf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-03-03fix(expire.c): remove build error and warningjellyfish_9.99.4jellyfish_9.99.3jellyfish_9.99.2jellyfish_9.99.1jellyfish/9.99.4jellyfish/9.99.3jellyfish/9.99.2jellyfish/9.99.19.99.49.99.39.99.29.99.1Li Xiaoming1-2/+1
cynagora/src/expire.c:38:28: error: initializer element is not constant static const time_t TMAX = ~TMIN; cynagora/src/expire.c:37:21: warning: ‘TMIN’ defined but not used [-Wunused-const-variable=] static const time_t TMIN = (time_t)1 << ((CHAR_BIT * sizeof(time_t)) - 1); Bug-AGL: SPEC-3212 Change-Id: Ie85812e404ecdb686d23f4f759f36cdf31d71202 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2020-02-09Add .gitreview fileJan-Simon Moeller1-0/+5
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: Ic259cf0eff0269b9ba5ac2efb74d40b4bbd6d0d0
2020-02-08Change cynagora serviceFrederic Marec1-1/+0
Remove After unit to avoid infinit waiting of afm-system-setup.service before killing it Bug-AGL: SPEC-3002 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: I3d2348d495067186f676066ff33f77f8f0adb269
2020-02-07Fix a bug in protocolJosé Bollo1-3/+4
Correctly handle the impossibility to add the tailing record separator. Bug-AGL: SPEC-3168 Change-Id: Id611eda4c6517819c1209baeb58c2d8d8ff57183 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-02-07Fix bug on unknown commandsJosé Bollo2-20/+19
Unknow commands were leading to infinite loop. This fixes. Bug-AGL: SPEC-3166 Change-Id: If1529526c5779951b8e2e30d999f3fc037eae9d4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-12-24fix typoicefish_8.99.5icefish/8.99.58.99.5José Bollo1-5/+5
Change-Id: I66490e63094642b48646ca0a159f1053f0be41c6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-12-13Improve integration of cynagoraicefish_8.99.4icefish/8.99.48.99.4José Bollo11-44/+51
Allow to be more flexible when starting with or without systemd. At end this change will allows to start within systemd with socket activation or not and by sending notification without need of option. Make setting of the sockets more accurate. The admin and agent socket are now accessible only to clients of the expected group, cynagora by default. Bug-AGL: SPEC-3230 Bug-AGL: SPEC-2968 Change-Id: I3e5c7c00dfa0494628c18ffc016cfc8599a5bf9b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-12-06agent-at: Move field separator from : to ;icefish_8.99.3icefish/8.99.38.99.3Jose Bollo3-14/+15
Because Smack labels and permissions of AGL all contain the character colon (:), it is better have a distinct field separator for agent-at. Bug-AGL: SPEC-2968 Change-Id: I378eefcd7b29e424acccced62abe48b35ad8736e Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-11-07Improve exit status of cynagora-adminicefish_8.99.2icefish_8.99.1icefish/8.99.2icefish/8.99.18.99.28.99.1José Bollo2-14/+17
When used command line, the tool cynagora-admin was terminating with status 0 even when the server wasn't up and running. This changes corrctly fix the issue by recording the status of the last cynagora command and by treating with it in command line mode. This change is required to implement a basic ptest and to submit cynagora for Itchy Icefish. Bug-AGL: 2844 Also fix a naming in the cache stressing test. Change-Id: I39ee784bbe8ce7b792e96ef14578baa6f80ef6ac Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-11-04Improve management of agent namesJose Bollo4-20/+34
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-11-04Improvement of documentationJose Bollo3-15/+164
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-30Improve documentation and licensesJose Bollo9-25/+510
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-29Add meson build systemJosé Bollo12-1/+409
Change-Id: Ie5ea4a42445e7c4df61284164f7dd14b0ca12295 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-25Provide a logoJose Bollo3-0/+228
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-25Implements sub queries of agentsJosé Bollo9-321/+691
Change-Id: I30e40521d8f8a2694df00a5c9f55adfe748fbd68 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-24Unic routine for checking agent namesJosé Bollo5-52/+89
Change-Id: Ibd3601ce97b4bc9e1035642584df0fe7788716db Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-24Improve selection of rulesJosé Bollo1-11/+36
Now the rule to apply is given by the laws: 1. The rules that matches exactly more keys 2. If law 1 apply to more than one rule, the select rule is the one matches more exactly the keys in the following order of priority: - session - user - client - permission Change-Id: Ia5ae241a08c5a58f75ca0a0c73fcda0876008cc1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-23cynagora: Remove use of pendingJose Bollo1-12/+8
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-22Avoid sending a pending query and fixesJosé Bollo2-62/+126
For some reason, dbus requests many times the same query. That changes try to avoid that behaviour. Also fix asynchronous processing and cache handling. Change-Id: If91631a1ab51ea8530113d015688978b0cf6467a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-22Enforce flush at end of linesJosé Bollo1-0/+3
Change-Id: I3d3770a165f165cd922bab16b0e259e86865d048 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-18Enforce ID on check/test queriesJosé Bollo9-134/+351
Change-Id: Ibdb7454657bcdc0a0874f05e065551de80b9bd4f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-18More documentation and cache access controlJose Bollo10-100/+2689
Change-Id: Id040ad44f862c212057a854ebaf5798da5b064b9 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-17Add a locker to run only one serviceJosé Bollo1-0/+31
Change-Id: Iedec0340cb08f9eaa81967fb28a8b0e7f2c44603 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-17Rename cynagoracli to cynagora-adminJosé Bollo2-9/+9
Change-Id: I4f146d792fb646d4d221a80de88aeb6a9372e21e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-16Instanciate checksJose Bollo2-41/+106
It prepares the requests with identifiers. This avoid a fault when a pending agent ask had its client disconnecting. Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-16Implementation of agent protocol and toolJose Bollo11-260/+1440
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-15Transmit expiration in relative valuesJose Bollo9-30/+40
This will at the end allow unsynchronized clients to query the server efficiently. Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-15Add no-caching featureJose Bollo9-41/+141
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-15Make computation of 'expired' commonJose Bollo1-6/+22
And prepare to have negative values for no caching values. Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-15Rename cynagoradm to cynagoracliJose Bollo2-10/+10
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-10filedb: switch to time as 64 bitsJose Bollo1-16/+36
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-10Fix signed/unsigned typesJose Bollo8-30/+27
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-07Add documentation and fixesJose Bollo6-199/+604
Documents the client API Fixes few bugs Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-04Add DIRECT_CYNARA_COMPAT to dissociate libsJosé Bollo3-8/+19
The flag DIRECT_CYNARA_COMPAT remove the dependency of libcynara-compat to libcynagora. Change-Id: Ib8ded68fc799a7cdb53acd4416b255abdf765311 Signed-off-by: José Bollo <jose.bollo@iot.bzh> fixup! 9d08a0b
2019-10-04Backport to cmake 3.12José Bollo2-12/+5
The command target_link_options only appear in cmake 3.13 Change-Id: Ie66464244a139531dfa8ca4f239c53f9d2f3afaa Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-04Add facility to compileJosé Bollo1-0/+15
Change-Id: Ib4d4a03f79056ae17ba1112657eb7fe37b194527 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-04Move to CYNAGORAJosé Bollo44-776/+741
Rename everything to match the new name of cynagora Change-Id: I7e529def486ca5721164b338d2c615996fbc6ca4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-04Isolate compatibility with old cynaraJosé Bollo29-72/+122
The compatibility items of the old cynara librarie are separated and isolated. The option WITH_CYNARA_COMPAT activates it or not. Change-Id: Iba77c97d8df31f5f515b57411487943192451ac6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-04Improve library split partsJosé Bollo12-49/+191
In prevision of further developments (like plugins) the server is splitted in two parts: the server program itself and the core library. The client library is also splitted in two parts: the compatibility part and the real client part. Change-Id: Iaee93298d52eb825ad9aed5d2b3e74c2975b5950 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-10-04anydb: Fix error in anydb_is_emptyJosé Bollo1-7/+17
Compute correctly if a database is empty or not. Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-10-03Improve commentsJose Bollo38-781/+2196
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-09-30Change agent interfaceJose Bollo3-92/+129
Instead of using callbacks, create the query to allow processing subqueries in response to agent queries. Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-09-27More comment for cyn.[ch]José Bollo4-36/+251
Change-Id: Ia3e6ca458f27ede690cfc6934dd9a6b320ed5d67 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-09-10Add file-prefix-map optionJosé Bollo1-0/+1
Change-Id: I275e60cad74074cada35755a464da85c3d821e92 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-09-09Fix setting of socket directoryJose Bollo2-5/+3
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-09-09Improve helpJose Bollo1-1/+1
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-09-09Fix missing new linesJose Bollo2-9/+9
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>