Fix smack privilege tests policy management 20/232820/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 7 May 2020 20:05:04 +0000 (22:05 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 7 May 2020 20:05:04 +0000 (22:05 +0200)
commit6735de81675f996ea5ddf94c9fdf0427cbb108fa
tree3b244b83e65080bf6c0d31476e7ba0ed3bc6afd1
parent744374c1343f5bc5ed8b13f65b2fd8996231c8d9
Fix smack privilege tests policy management

Because TEST_RUNNER_CHILD is used, the security-manager's policy is
being modified in individual processes. This leads to redundant
security-manager restarts and could leave security-manager with
improper policy after the test.

Manage the security-manager policy in the main process only.

Change-Id: I5d9924806f9ecdd28007f9cfd3ea3668e1a47a33
src/security-manager-tests/test_cases_smack_privileges.cpp