Tree policy engine decision checker replacement 94/70794/3
authorKazimierz Krosman <k.krosman@samsung.com>
Fri, 20 May 2016 11:15:10 +0000 (13:15 +0200)
committerKazimierz Krosman <k.krosman@samsung.com>
Fri, 27 May 2016 17:25:58 +0000 (19:25 +0200)
commit32bc86464494593a4676cf4548f5ac845bb5269e
tree5f8380dd6975913f071d49750423b050ce2eb682
parent62b1c6efb1952ccdd416433f3dbb1c30cce1c51b
Tree policy engine decision checker replacement

Tree policy engine decision checker was replaced by naive
search algorithm. For each check call, libdbuspolicy iterate via
policy rules in the reverse order. First rule that matches request
is used to return decision.

Multiple sender's and receiver's names are proceeded during search
procedure (algorithm try to match current rule for each name). Previous version
search all database for each name.

Added unit tests (make check)

Change-Id: Ie78ae8eec285a7042d275d02333372bca4d76d28
29 files changed:
Makefile.am
configure.ac
packaging/libdbuspolicy.spec
src/dbuspolicy1/libdbuspolicy1.h
src/internal/cynara.cpp [new file with mode: 0644]
src/internal/cynara.hpp
src/internal/cynara_mockup.cpp [new file with mode: 0644]
src/internal/internal.cpp
src/internal/internal.h
src/internal/naive_policy_checker.cpp [new file with mode: 0644]
src/internal/naive_policy_checker.hpp [new file with mode: 0644]
src/internal/naive_policy_db.cpp [new file with mode: 0644]
src/internal/naive_policy_db.hpp [new file with mode: 0644]
src/internal/policy.cpp [new file with mode: 0644]
src/internal/policy.hpp [new file with mode: 0644]
src/internal/tslog.cpp [new file with mode: 0644]
src/internal/tslog.hpp
src/internal/xml_parser.cpp [new file with mode: 0644]
src/internal/xml_parser.hpp
src/libdbuspolicy1.c
src/libdbuspolicy1.sym
src/test-libdbuspolicy1-method.cpp [new file with mode: 0644]
src/test-libdbuspolicy1-ownership.cpp [new file with mode: 0644]
src/test-libdbuspolicy1-signal.cpp [new file with mode: 0644]
tests/system.conf [new file with mode: 0644]
tests/system.d/cynara.test.conf [new file with mode: 0644]
tests/system.d/methods.test.conf [new file with mode: 0644]
tests/system.d/ownerships.test.conf [new file with mode: 0644]
tests/system.d/signals.test.conf [new file with mode: 0644]