Krzysztof Jackiewicz [Fri, 3 Jul 2015 14:38:10 +0000 (16:38 +0200)]
CKM: Add invalid param ocsp tests
[Problem] Not enought input param tests for ocsp API.
[Solution] New tests addded.
[Verification] Run ckm-tests --regexp=ocsp_check
Change-Id: I982c3e0c47500eb332e46d1027870d487603baf7
Krzysztof Jackiewicz [Fri, 19 Jun 2015 12:34:14 +0000 (14:34 +0200)]
CKM: Prevent exceptions in gc. Fix buffer comparison.
[Problem] Garbage collector destructor may throw exceptions. Buffers can be
different even if sizes match.
[Solution] Destructor protected with try catch. Buffer comparison fixed.
[Verification] Run tests
Change-Id: Iae33de10ee9e9b2bde6aa427a4f17b49eed6955e
Maciej J. Karpiuk [Thu, 9 Apr 2015 12:43:46 +0000 (14:43 +0200)]
CKM: add AES key manipulation tests.
Change-Id: I282a9201be1acc1013f010651c7c89c682d01ee2
Krzysztof Jackiewicz [Mon, 1 Jun 2015 09:04:05 +0000 (11:04 +0200)]
CKM: Additional assert for smack_new_label_from_self
[Problem] Label was not checked against NULL
[Solution] Check added
[Verification] Succesfull compilation + tests
Change-Id: I19cbc6b8f7dfe3dc094b9398215aa370c50ae327
Krzysztof Jackiewicz [Fri, 12 Jun 2015 09:45:21 +0000 (11:45 +0200)]
CKM: Remove logs to suppress smack errors
[Problem] Smack is complaining about denied access to /etc/dlog/platformlog.conf
which is caused by using dlog logs in tests.
[Solution] Existing logs are not important and have been removed.
[Verification] Run tests and check journalctl for smack errors. There should be
none.
Change-Id: Id46305b9cf0aae0029315a11a02fb68ff6700d57
Krzysztof Jackiewicz [Thu, 21 May 2015 09:03:54 +0000 (11:03 +0200)]
CKM: Update common test utilities
[Problem] Utility functions should be accessible to other test suites.
Assert helpers don't show error name.
[Solution] Utilities moved to common file. Helpers updated.
[Verification] Run all tests.
Change-Id: I70d6239c0304284735496007500f18e348e14a51
Krzysztof Jackiewicz [Wed, 20 May 2015 11:47:51 +0000 (13:47 +0200)]
CKM: Add tests for algorithm parameters CAPI
[Cause] No tests for algorithm params
[Solution] Tests added
[Verification] Run ckm-tests --group=CKM_ALGO_PARAMS
Change-Id: I609b62f035fdf89d2691e299b8d92c3580869f01
Krzysztof Jackiewicz [Tue, 9 Jun 2015 08:26:25 +0000 (10:26 +0200)]
CKM: Add asserts for file copying
[Problem] If you manually remove contents of /opt/data/ckm/ initial-values
tests will fail because the target directory does not exist.
[Solution] Add asserts checking if input & output files are correct.
[Verification] Remove /otp/data/ckm/initial_values. Run:
ckm-tests --group=T60_INITIAL_VALUES. They should fail. Reinstall key-manager
run tests again. All should pass.
Change-Id: Ib6b7308747b74943ec9d7274284d1d56c9be1641
Krzysztof Jackiewicz [Tue, 9 Jun 2015 08:06:52 +0000 (10:06 +0200)]
CKM: Run async api tests in single process
[Problem] Timeouts during key generation. Test dependency.
[Solution] Single process test cases used. Test env fixed.
[Verification] Run tests.
Change-Id: I471c1003403f6638aa836d47b42f3c1e06952e7e
Maciej J. Karpiuk [Wed, 10 Jun 2015 09:21:27 +0000 (11:21 +0200)]
Merge branch 'origin/tizen' into origin/ckm
Change-Id: If8bc45345b05df4e09e39ec233371320ebcf070a
Roman Kubiak [Mon, 8 Jun 2015 13:20:15 +0000 (06:20 -0700)]
Ignore 3 security-manager tests due to gumd timeouts.
3 tests are ignored until gumd is fixed.
Change-Id: Ibfcf8a405beac5c05751db13755b6284349a3b01
Maciej J. Karpiuk [Wed, 3 Jun 2015 11:43:56 +0000 (13:43 +0200)]
CKM: permanent test re-factored: no dependency on previous test execution.
Change-Id: I7b86d628cb2e8dca41d6e647e55341e7788a0aed
Maciej J. Karpiuk [Fri, 29 May 2015 12:01:40 +0000 (14:01 +0200)]
CKM: tests adjusted to single protocol command for key pair generation.
Change-Id: I3904958d497bf7e1d4e03232e8c9bccb8b3c4d47
Maciej J. Karpiuk [Wed, 27 May 2015 07:07:53 +0000 (09:07 +0200)]
Fix tests: ignore those that are not supported on Tizen 3.0 (labeled sockets).
Change-Id: I21af3336feef57b9b81af72e776c9e520dc6e34b
Krzysztof Jackiewicz [Wed, 27 May 2015 10:44:35 +0000 (12:44 +0200)]
Separate user uid/gid for libprivilege-control tests
[Problem] APP_UID/APP_GID is used by other tests and getting root uid/gid affects their results.
[Solution] Introduce separate uid/gid for libprivilege-control
[Verification] Run tests libprivilege-control-tests --output=text
Change-Id: Ib4773cddb0f0af11422684b20aa727a00433aa46
Krzysztof Jackiewicz [Tue, 26 May 2015 09:51:44 +0000 (11:51 +0200)]
CKM: Gdbbacktrace tries to become root
[Problem] When gdbbacktrace is executed as ordinary user it has no permissions
to attach with gdb or unlink output file.
[Solution] Add seteuid/gid(0) in the beginning of gdbbacktrace.
[Verification] Run any failing test that uses ScopedAccessProvider with uid/gid
There should be no "gdbbacktrace() failed: No backtrace information"
Change-Id: I8997ad1d8d1368402333e40b55ee4f5cb1b79005
Krzysztof Jackiewicz [Fri, 22 May 2015 08:28:38 +0000 (10:28 +0200)]
Fix libprivilege-control tests
[Problem] Libprivilege-control assigns the same label "User" to all
applications. Because of that some of tests make no sense. User id is fixed to
5000 but there's no such user in the system. Wrt-client binary does not exist
so getting its smack label fails.
[Solution] Meaningless asserts commented. User id retrieved from tzconfig. DAC
groups database cleared after every perm_app_set_privilege test.
[Verification] Run libprivilege-control-tests --output=text
Change-Id: Ib8e1f4deafd7033c7ac892af6afd9d46c724c062
Krzysztof Jackiewicz [Fri, 22 May 2015 10:01:51 +0000 (12:01 +0200)]
CKM: Make TA2000 and TA2010 independent
[Problem] Because of dependency between TA2000 and TA2010 the latter fails after
introduction of CKMAsyncAPIEnv.
[Solution] Made tests independent.
[Verification] Run tests: ckm-tests --group=CKM_ASYNC_API
Change-Id: I6a218c1c36e4f2f7c9725b74bdf94b5ae4a56559
Lukasz Wojciechowski [Thu, 21 May 2015 14:52:58 +0000 (16:52 +0200)]
Introduce environment class for CKM async API tests
CKMAsyncAPIEnv class takes care of initializing and deinitializing
environment before and after each test from CKM_ASYNC_API group.
This was formerly done by TA0000_init and TA9999_deinit tests that
in current solution were removed.
Change-Id: I27aa07c4c1b7b41964b4407937457432fa194911
Maciej J. Karpiuk [Tue, 19 May 2015 12:20:28 +0000 (14:20 +0200)]
Fix T1311_init.
Change-Id: Ic3bc158977dfe306cebd74446c03c208a4c22f63
Lukasz Wojciechowski [Thu, 21 May 2015 16:08:57 +0000 (18:08 +0200)]
Fix sorting tests in test groups
Patch "
cb0c3e5 Add init and finish functionality" changed way of
keeping test cases. Previously they were kept as list of structures,
now it's list of pointers.
In such case proper sorting needs a compare function, otherwise
it compares pointers.
Proper sorting predicate has been added.
Change-Id: I4ad755326456cdedce69ae71a0ab050df15899d9
Maciej J. Karpiuk [Fri, 22 May 2015 07:42:21 +0000 (09:42 +0200)]
Fix Key Manager tests: google certificates refreshed.
Change-Id: Ic7ee5ae06cc0ee2f624ce3f7c510385b445f70ce
Maciej J. Karpiuk [Wed, 20 May 2015 13:24:23 +0000 (15:24 +0200)]
Add tests for initial values provided in XML files.
Change-Id: Ie7c20d34729c6df58bdbcd1ed092d00a57fe6532
Maciej J. Karpiuk [Wed, 20 May 2015 11:00:50 +0000 (13:00 +0200)]
system-db proper clearing after test run.
Change-Id: I804faf8564ec868ee96e1a5a1a35c74eebe5d6e2
Krzysztof Jackiewicz [Tue, 12 May 2015 10:00:41 +0000 (12:00 +0200)]
CKM: Test for large data transfer
[Issue#] N/A
[Feature/Bug] N/A
[Problem] N/A
[Cause] We need to make sure that it's possible to transfer MBs of data between
client and server
[Solution] Test added
[Verification] Run:
ckm-tests --group=T3040_CKMC_QUICK_REMOVE_BIN_DATA_TEST_C_API
Change-Id: I53148572f7df7e6b6d2a3475a76c2afababbc63a
Maciej J. Karpiuk [Tue, 19 May 2015 12:20:28 +0000 (14:20 +0200)]
Fix T1311_init.
Change-Id: Ic3bc158977dfe306cebd74446c03c208a4c22f63
Krzysztof Jackiewicz [Mon, 18 May 2015 11:46:19 +0000 (13:46 +0200)]
CKM: Revert "CKM: Tests for algorithm parameters"
This reverts commit
df4d3773a6af6fe7939d87c5a3921ce5cf2e63da.
After CryptoAlgorithm API modification this test is no longer needed.
Change-Id: I8ba7114c679a6f4d955f2b4e6cfd9bf80bd412ea
Bartlomiej Grzelewski [Mon, 18 May 2015 12:26:31 +0000 (14:26 +0200)]
Fix test TA1650.
Change-Id: I0ed657959e6c3e71339a6dc2d61890334b457c59
Bartlomiej Grzelewski [Fri, 15 May 2015 14:46:05 +0000 (16:46 +0200)]
Fix implementation of count_aliases.
Change-Id: If6bd7ba464e96f16693b3c0aad68240ce5394b2d
Krzysztof Jackiewicz [Thu, 7 May 2015 15:40:18 +0000 (17:40 +0200)]
CKM: Tests for algorithm parameters
[Issue#] N/A
[Feature/Bug] N/A
[Problem] N/A
[Cause] N/A
[Solution] N/A
[Verification] Run ckm-tests --group=ALGO_PARAM_TEST
Change-Id: Idd5d5263ead78139efcde882d9829c4b225ab138
Maciej J. Karpiuk [Wed, 22 Apr 2015 08:43:21 +0000 (10:43 +0200)]
CKM: re-factoring tests after adding system-DB support.
Change-Id: Ia94c7de6604b61e8fb9d5522527dcce3c1019157
Maciej J. Karpiuk [Mon, 13 Apr 2015 14:12:41 +0000 (16:12 +0200)]
CKM: add tests for system-db.
Change-Id: I4dd89edbd2da9a2d0421aaea668ef6ba7cddbd3f
Radoslaw Bartosiak [Thu, 30 Apr 2015 09:50:13 +0000 (11:50 +0200)]
Add missing initialization of m_deferDeepness
Fix a change introduced in commit:
'Add init and finih functionality'
Change-Id: Ie3f52c6363788a43d94bf0e58e48ad754ba1d94d
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
Marcin Niesluchowski [Tue, 21 Oct 2014 12:42:20 +0000 (14:42 +0200)]
Adjust cynara wrapper to framework
Change-Id: Ie70abd318963316cd7e83b060969324e99973880
Marcin Niesluchowski [Wed, 1 Oct 2014 14:54:45 +0000 (16:54 +0200)]
Add init and finish functionality
Classes with init() and finish() methods may be passed as additional
arguments to test macros. Those classes are passed in tuple
accessible as an argument optionalArgsTuple of test case function.
See README for usage of new macros.
Change-Id: I8c25c1bb015e89298030ea7fa223f53aeacbec11
Pawel Wieczorek [Thu, 23 Apr 2015 08:15:43 +0000 (10:15 +0200)]
Merge branch 'security-manager' into tizen
Change-Id: I48f18681c2cc1a2bcba0ba09d4313fe418553358
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Pawel Wieczorek [Wed, 22 Apr 2015 15:01:20 +0000 (17:01 +0200)]
Merge branch 'tizen' into security-manager
Conflicts:
packaging/security-tests.spec
src/security-manager-tests/CMakeLists.txt
src/security-manager-tests/test_DIR/app_dir/.level_1/.level_2/exec
src/security-manager-tests/test_DIR/app_dir/.level_1/.level_2/normal
src/security-manager-tests/test_DIR/app_dir/.level_1/exec
src/security-manager-tests/test_DIR/app_dir/.level_1/level_2/exec
src/security-manager-tests/test_DIR/app_dir/.level_1/level_2/normal
src/security-manager-tests/test_DIR/app_dir/.level_1/link_to_non_app_exec
src/security-manager-tests/test_DIR/app_dir/.level_1/link_to_non_app_normal
src/security-manager-tests/test_DIR/app_dir/.level_1/normal
src/security-manager-tests/test_DIR/app_dir/exec
src/security-manager-tests/test_DIR/app_dir/level_1/.level_2/exec
src/security-manager-tests/test_DIR/app_dir/level_1/.level_2/normal
src/security-manager-tests/test_DIR/app_dir/level_1/exec
src/security-manager-tests/test_DIR/app_dir/level_1/level_2/exec
src/security-manager-tests/test_DIR/app_dir/level_1/level_2/link_to_exec
src/security-manager-tests/test_DIR/app_dir/level_1/level_2/link_to_non_exec
src/security-manager-tests/test_DIR/app_dir/level_1/level_2/normal
src/security-manager-tests/test_DIR/app_dir/level_1/link_to_exec
src/security-manager-tests/test_DIR/app_dir/level_1/link_to_non_exec
src/security-manager-tests/test_DIR/app_dir/level_1/normal
src/security-manager-tests/test_DIR/app_dir/link_to_exec
src/security-manager-tests/test_DIR/app_dir/link_to_non_app_dir
src/security-manager-tests/test_DIR/app_dir/link_to_non_app_exec
src/security-manager-tests/test_DIR/app_dir/link_to_non_app_normal
src/security-manager-tests/test_DIR/app_dir/link_to_non_exec
src/security-manager-tests/test_DIR/app_dir/normal
src/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/.level_2/exec
src/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/.level_2/normal
src/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/exec
src/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/level_2/exec
src/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/level_2/normal
src/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/normal
src/security-manager-tests/test_DIR/app_dir_public_ro/exec
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/.level_2/exec
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/.level_2/normal
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/exec
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/level_2/exec
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/level_2/link_to_exec
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/level_2/link_to_non_exec
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/level_2/normal
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/link_to_exec
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/link_to_non_exec
src/security-manager-tests/test_DIR/app_dir_public_ro/level_1/normal
src/security-manager-tests/test_DIR/app_dir_public_ro/link_to_exec
src/security-manager-tests/test_DIR/app_dir_public_ro/link_to_non_app_dir
src/security-manager-tests/test_DIR/app_dir_public_ro/link_to_non_app_exec
src/security-manager-tests/test_DIR/app_dir_public_ro/link_to_non_app_normal
src/security-manager-tests/test_DIR/app_dir_public_ro/link_to_non_exec
src/security-manager-tests/test_DIR/app_dir_public_ro/normal
src/security-manager-tests/test_DIR/non_app_dir/.level_1/.level_2/exec
src/security-manager-tests/test_DIR/non_app_dir/.level_1/.level_2/normal
src/security-manager-tests/test_DIR/non_app_dir/.level_1/exec
src/security-manager-tests/test_DIR/non_app_dir/.level_1/level_2/exec
src/security-manager-tests/test_DIR/non_app_dir/.level_1/level_2/normal
src/security-manager-tests/test_DIR/non_app_dir/.level_1/normal
src/security-manager-tests/test_DIR/non_app_dir/exec
src/security-manager-tests/test_DIR/non_app_dir/level_1/.level_2/exec
src/security-manager-tests/test_DIR/non_app_dir/level_1/.level_2/normal
src/security-manager-tests/test_DIR/non_app_dir/level_1/exec
src/security-manager-tests/test_DIR/non_app_dir/level_1/level_2/exec
src/security-manager-tests/test_DIR/non_app_dir/level_1/level_2/link_to_exec
src/security-manager-tests/test_DIR/non_app_dir/level_1/level_2/link_to_non_exec
src/security-manager-tests/test_DIR/non_app_dir/level_1/level_2/normal
src/security-manager-tests/test_DIR/non_app_dir/level_1/link_to_exec
src/security-manager-tests/test_DIR/non_app_dir/level_1/link_to_non_exec
src/security-manager-tests/test_DIR/non_app_dir/level_1/normal
src/security-manager-tests/test_DIR/non_app_dir/link_to_exec
src/security-manager-tests/test_DIR/non_app_dir/link_to_non_exec
src/security-manager-tests/test_DIR/non_app_dir/normal
tests/common/CMakeLists.txt
tests/security-manager-tests/apps_rw/app_dir/.level_1/.level_2/exec
tests/security-manager-tests/apps_rw/app_dir/.level_1/.level_2/normal
tests/security-manager-tests/apps_rw/app_dir/.level_1/exec
tests/security-manager-tests/apps_rw/app_dir/.level_1/level_2/exec
tests/security-manager-tests/apps_rw/app_dir/.level_1/level_2/normal
tests/security-manager-tests/apps_rw/app_dir/.level_1/link_to_non_app_exec
tests/security-manager-tests/apps_rw/app_dir/.level_1/link_to_non_app_normal
tests/security-manager-tests/apps_rw/app_dir/.level_1/normal
tests/security-manager-tests/apps_rw/app_dir/exec
tests/security-manager-tests/apps_rw/app_dir/level_1/.level_2/exec
tests/security-manager-tests/apps_rw/app_dir/level_1/.level_2/normal
tests/security-manager-tests/apps_rw/app_dir/level_1/exec
tests/security-manager-tests/apps_rw/app_dir/level_1/level_2/exec
tests/security-manager-tests/apps_rw/app_dir/level_1/level_2/link_to_exec
tests/security-manager-tests/apps_rw/app_dir/level_1/level_2/link_to_non_exec
tests/security-manager-tests/apps_rw/app_dir/level_1/level_2/normal
tests/security-manager-tests/apps_rw/app_dir/level_1/link_to_exec
tests/security-manager-tests/apps_rw/app_dir/level_1/link_to_non_exec
tests/security-manager-tests/apps_rw/app_dir/level_1/normal
tests/security-manager-tests/apps_rw/app_dir/link_to_exec
tests/security-manager-tests/apps_rw/app_dir/link_to_non_app_dir
tests/security-manager-tests/apps_rw/app_dir/link_to_non_app_exec
tests/security-manager-tests/apps_rw/app_dir/link_to_non_app_normal
tests/security-manager-tests/apps_rw/app_dir/link_to_non_exec
tests/security-manager-tests/apps_rw/app_dir/normal
tests/security-manager-tests/apps_rw/app_dir_public_ro/.level_1/.level_2/exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/.level_1/.level_2/normal
tests/security-manager-tests/apps_rw/app_dir_public_ro/.level_1/exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/.level_1/level_2/exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/.level_1/level_2/normal
tests/security-manager-tests/apps_rw/app_dir_public_ro/.level_1/normal
tests/security-manager-tests/apps_rw/app_dir_public_ro/exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/.level_2/exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/.level_2/normal
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/level_2/exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/level_2/link_to_exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/level_2/link_to_non_exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/level_2/normal
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/link_to_exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/link_to_non_exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/level_1/normal
tests/security-manager-tests/apps_rw/app_dir_public_ro/link_to_exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/link_to_non_app_dir
tests/security-manager-tests/apps_rw/app_dir_public_ro/link_to_non_app_exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/link_to_non_app_normal
tests/security-manager-tests/apps_rw/app_dir_public_ro/link_to_non_exec
tests/security-manager-tests/apps_rw/app_dir_public_ro/normal
tests/security-manager-tests/apps_rw/non_app_dir/.level_1/.level_2/exec
tests/security-manager-tests/apps_rw/non_app_dir/.level_1/.level_2/normal
tests/security-manager-tests/apps_rw/non_app_dir/.level_1/exec
tests/security-manager-tests/apps_rw/non_app_dir/.level_1/level_2/exec
tests/security-manager-tests/apps_rw/non_app_dir/.level_1/level_2/normal
tests/security-manager-tests/apps_rw/non_app_dir/.level_1/normal
tests/security-manager-tests/apps_rw/non_app_dir/exec
tests/security-manager-tests/apps_rw/non_app_dir/level_1/.level_2/exec
tests/security-manager-tests/apps_rw/non_app_dir/level_1/.level_2/normal
tests/security-manager-tests/apps_rw/non_app_dir/level_1/exec
tests/security-manager-tests/apps_rw/non_app_dir/level_1/level_2/exec
tests/security-manager-tests/apps_rw/non_app_dir/level_1/level_2/link_to_exec
tests/security-manager-tests/apps_rw/non_app_dir/level_1/level_2/link_to_non_exec
tests/security-manager-tests/apps_rw/non_app_dir/level_1/level_2/normal
tests/security-manager-tests/apps_rw/non_app_dir/level_1/link_to_exec
tests/security-manager-tests/apps_rw/non_app_dir/level_1/link_to_non_exec
tests/security-manager-tests/apps_rw/non_app_dir/level_1/normal
tests/security-manager-tests/apps_rw/non_app_dir/link_to_exec
tests/security-manager-tests/apps_rw/non_app_dir/link_to_non_exec
tests/security-manager-tests/apps_rw/non_app_dir/normal
tests/security-manager-tests/test_DIR/app_dir/.level_1/.level_2/exec
tests/security-manager-tests/test_DIR/app_dir/.level_1/.level_2/normal
tests/security-manager-tests/test_DIR/app_dir/.level_1/exec
tests/security-manager-tests/test_DIR/app_dir/.level_1/level_2/exec
tests/security-manager-tests/test_DIR/app_dir/.level_1/level_2/normal
tests/security-manager-tests/test_DIR/app_dir/.level_1/link_to_non_app_exec
tests/security-manager-tests/test_DIR/app_dir/.level_1/link_to_non_app_normal
tests/security-manager-tests/test_DIR/app_dir/.level_1/normal
tests/security-manager-tests/test_DIR/app_dir/exec
tests/security-manager-tests/test_DIR/app_dir/level_1/.level_2/exec
tests/security-manager-tests/test_DIR/app_dir/level_1/.level_2/normal
tests/security-manager-tests/test_DIR/app_dir/level_1/exec
tests/security-manager-tests/test_DIR/app_dir/level_1/level_2/exec
tests/security-manager-tests/test_DIR/app_dir/level_1/level_2/link_to_exec
tests/security-manager-tests/test_DIR/app_dir/level_1/level_2/link_to_non_exec
tests/security-manager-tests/test_DIR/app_dir/level_1/level_2/normal
tests/security-manager-tests/test_DIR/app_dir/level_1/link_to_exec
tests/security-manager-tests/test_DIR/app_dir/level_1/link_to_non_exec
tests/security-manager-tests/test_DIR/app_dir/level_1/normal
tests/security-manager-tests/test_DIR/app_dir/link_to_exec
tests/security-manager-tests/test_DIR/app_dir/link_to_non_app_dir
tests/security-manager-tests/test_DIR/app_dir/link_to_non_app_exec
tests/security-manager-tests/test_DIR/app_dir/link_to_non_app_normal
tests/security-manager-tests/test_DIR/app_dir/link_to_non_exec
tests/security-manager-tests/test_DIR/app_dir/normal
tests/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/.level_2/exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/.level_2/normal
tests/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/level_2/exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/level_2/normal
tests/security-manager-tests/test_DIR/app_dir_public_ro/.level_1/normal
tests/security-manager-tests/test_DIR/app_dir_public_ro/exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/.level_2/exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/.level_2/normal
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/level_2/exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/level_2/link_to_exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/level_2/link_to_non_exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/level_2/normal
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/link_to_exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/link_to_non_exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/level_1/normal
tests/security-manager-tests/test_DIR/app_dir_public_ro/link_to_exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/link_to_non_app_dir
tests/security-manager-tests/test_DIR/app_dir_public_ro/link_to_non_app_exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/link_to_non_app_normal
tests/security-manager-tests/test_DIR/app_dir_public_ro/link_to_non_exec
tests/security-manager-tests/test_DIR/app_dir_public_ro/normal
tests/security-manager-tests/test_DIR/non_app_dir/.level_1/.level_2/exec
tests/security-manager-tests/test_DIR/non_app_dir/.level_1/.level_2/normal
tests/security-manager-tests/test_DIR/non_app_dir/.level_1/exec
tests/security-manager-tests/test_DIR/non_app_dir/.level_1/level_2/exec
tests/security-manager-tests/test_DIR/non_app_dir/.level_1/level_2/normal
tests/security-manager-tests/test_DIR/non_app_dir/.level_1/normal
tests/security-manager-tests/test_DIR/non_app_dir/exec
tests/security-manager-tests/test_DIR/non_app_dir/level_1/.level_2/exec
tests/security-manager-tests/test_DIR/non_app_dir/level_1/.level_2/normal
tests/security-manager-tests/test_DIR/non_app_dir/level_1/exec
tests/security-manager-tests/test_DIR/non_app_dir/level_1/level_2/exec
tests/security-manager-tests/test_DIR/non_app_dir/level_1/level_2/link_to_exec
tests/security-manager-tests/test_DIR/non_app_dir/level_1/level_2/link_to_non_exec
tests/security-manager-tests/test_DIR/non_app_dir/level_1/level_2/normal
tests/security-manager-tests/test_DIR/non_app_dir/level_1/link_to_exec
tests/security-manager-tests/test_DIR/non_app_dir/level_1/link_to_non_exec
tests/security-manager-tests/test_DIR/non_app_dir/level_1/normal
tests/security-manager-tests/test_DIR/non_app_dir/link_to_exec
tests/security-manager-tests/test_DIR/non_app_dir/link_to_non_exec
tests/security-manager-tests/test_DIR/non_app_dir/normal
Change-Id: If7b091f075dd360826c7194e94443a35adf27b1e
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Zbigniew Jasinski [Wed, 22 Apr 2015 08:52:50 +0000 (10:52 +0200)]
Merge branch 'cynara' into tizen
Change-Id: I2d1b3e38f0ccab3cec1a1a107fc778dfb604986f
Zbigniew Jasinski [Wed, 22 Apr 2015 08:49:05 +0000 (10:49 +0200)]
Merge branch 'tizen' into cynara
Change-Id: I8a7de3e8b797c0caf5096de797e896667ea0d3dc
Marcin Niesluchowski [Wed, 29 Oct 2014 10:44:56 +0000 (11:44 +0100)]
Fix smack_check() function
Change-Id: I0ce0e769b7eb5b50dff34eea00db86c54a80eed9
Krzysztof Jackiewicz [Fri, 17 Apr 2015 13:37:00 +0000 (15:37 +0200)]
Merge branch ckm into tizen
Change-Id: I27c9ffe96224209920222f00756c762edf820e17
Krzysztof Jackiewicz [Fri, 17 Apr 2015 13:20:13 +0000 (15:20 +0200)]
CKM: Add package dependency on key-manager-listener
[Issue#] N/A
[Feature/Bug] N/A
[Problem] Failing CC mode tests
[Cause] Missing dependency
[Solution] Dependency added
[Verification] Remove key-manager-listener from image. Try to install tests.
They should require key-manager-listener.
Change-Id: I017152d4e9d5c76ce7c6effc2c36dd342ca822e0
Krzysztof Jackiewicz [Thu, 16 Apr 2015 10:17:53 +0000 (12:17 +0200)]
Merging tizen into ckm. Stage 3.
Merged remote-tracking branch 'tizen.org/tizen' into ckm
Change-Id: Iffa2e26113f653cf4c6f685bc7e4dc7d25472ae5
Krzysztof Jackiewicz [Thu, 16 Apr 2015 10:08:44 +0000 (12:08 +0200)]
Merging tizen into ckm. Stage 2.
Merged commit '
7019d2b04887994ff0f87ab8020cc367ffe1994a' into ckm
Change-Id: I80f23e4825da2bb7167d43863e6ed1331a5f5776
Krzysztof Jackiewicz [Thu, 16 Apr 2015 10:01:05 +0000 (12:01 +0200)]
Rename /tests to /ckm to align with tizen branch
[Issue#] N/A
[Feature/Bug] N/A
[Problem] N/A
[Cause] N/A
[Solution] Renamed
[Verification] Compile, run tests
Change-Id: Ic24c4b694de04e44ceb6947f6628872f09def079
Krzysztof Jackiewicz [Thu, 16 Apr 2015 09:36:22 +0000 (11:36 +0200)]
Merging tizen into ckm. Stage 1.
Merged commit '
4f20901f76f8909da0d07f8b5f8f33e8651ea135' into ckm
Conflicts:
tests/common/dbus_access.cpp
tests/common/dbus_access.h
tests/cynara-tests/common/cynara_test_env.cpp
tests/security-server-tests/security_server_clean_env.cpp
Change-Id: I246988d04c104e990af34f06b10c6b79e3e5793d
Krzysztof Jackiewicz [Wed, 15 Apr 2015 11:56:56 +0000 (13:56 +0200)]
CKM: Security-server removed from dependencies
[Issue#] N/A
[Feature/Bug] N/A
[Problem] N/A
[Cause] Security server is not used.
[Solution] Removed.
[Verification] Successfull compilation
Change-Id: I398757dcba891feedd15d6ab51fa374e879975fa
Maciej J. Karpiuk [Thu, 9 Apr 2015 07:57:05 +0000 (09:57 +0200)]
CKM: tizen.org does not use security-server: disabling security-server tests.
Change-Id: I47c1ed4a6f0522b9c32954696521c19373841bbf
Maciej J. Karpiuk [Tue, 14 Apr 2015 13:15:28 +0000 (15:15 +0200)]
CKM: no more "empty password for lockscreen" logics.
Change-Id: Ie30acad07523218f5474d531cc7fcc579584181f
Rafal Krypa [Fri, 6 Mar 2015 16:57:12 +0000 (17:57 +0100)]
Fix security_manager_02_app_install_uninstall_full test
sql query has wrong column name
Change-Id: I4cd5b9eba4b74a86efd447b073b5f57d5cfa07fc
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
Marcin Niesluchowski [Tue, 21 Oct 2014 15:58:18 +0000 (17:58 +0200)]
Remove unused members and functions from test runner
Conflicts:
src/framework/include/dpl/test/test_runner.h
Change-Id: Id7daab6582ced29db585322775cdfd54be708b0a
Lukasz Wojciechowski [Fri, 20 Mar 2015 18:27:07 +0000 (19:27 +0100)]
Adjust restart of cynara in cynara-tests
Use new enhanced mechanism, that restarts also socket units
in cynara-tests.
Change-Id: I2eba2709e86b27a1a693dcf9774e88b6abb6c69b
Lukasz Wojciechowski [Fri, 20 Mar 2015 17:44:40 +0000 (18:44 +0100)]
Enhance ServiceManager with socket unit names
In case of socket activated services additional units responsible
for listening on sockets can be passed to ServiceManager constructor.
Starting, stopping and restarting a service can affect now not only
service unit but also socket units.
This enhancement is used for implementation of cynara restart methods
with and without restarting socket units.
Change-Id: I619c94d3fc75b398240e85cd39ae78e757e03f1a
Zbigniew Jasinski [Fri, 27 Mar 2015 09:56:31 +0000 (10:56 +0100)]
Merge branch 'tizen' into cynara
Change-Id: I200042de1bf9aa54ba974d64fc6eea40c29cd4e7
Lukasz Wojciechowski [Tue, 24 Mar 2015 19:32:02 +0000 (20:32 +0100)]
Merge branch 'cynara' into tizen
Conflicts:
src/framework/include/dpl/test/test_runner.h
src/framework/src/test_runner.cpp
Change-Id: I7186c1d1e8f60e453ea5ffe4f7cfd1e1eca3a3bb
Marcin Niesluchowski [Thu, 16 Oct 2014 14:17:18 +0000 (16:17 +0200)]
Remove unused CollectTestsCasesList function
Change-Id: Ic846bfbf38e74850be7cdfee6ca5ccc88b9ccfb5
Marcin Niesluchowski [Thu, 16 Oct 2014 08:54:15 +0000 (10:54 +0200)]
Remove unnecessary test result from test runner
Change-Id: I6a5257e0f4325f76219f798bc7e352fbef81376b
Marcin Niesluchowski [Wed, 15 Oct 2014 17:26:08 +0000 (19:26 +0200)]
Create class for test result
Change-Id: I5da9105e4577805230929ca7c0057f456ef76090
Marcin Niesluchowski [Mon, 20 Oct 2014 12:49:13 +0000 (14:49 +0200)]
Add PerformanceResult class
Test time measurement framework mechanism refactoring
for performance tests.
Change-Id: I08f3206f0dcd0504cb5bae6fa22f7480d5533a36
Pawel Wieczorek [Mon, 23 Mar 2015 16:24:58 +0000 (17:24 +0100)]
Extend list of tests done by security-tests-all.sh
Two more packages will be tested by executing security-tests-all.sh:
* libprivilege-control
* key-manager
Change-Id: I8fdefb6ff2c4a51060f2ac09179289b563596961
Pawel Wieczorek [Mon, 23 Mar 2015 16:18:48 +0000 (17:18 +0100)]
Add key-manager tests to test runner
Passing "ckm" argument to security-tests.sh script will result in
execution of "ckm-tests" binary. Previously it had to be called
explicitly.
Change-Id: Icacefde32d99832295ddaad045ae31be3d085ca8
Lukasz Wojciechowski [Fri, 20 Mar 2015 14:09:25 +0000 (15:09 +0100)]
Fix casting from and to void*
There were some places, where reinterpret_cast was used to cast
from or to void* type. This breaks C++ standard.
Fix replaces reinterpret_cast with static_cast.
Change-Id: I9bc5aa3307ce0b0fef4a988d14d06b01f290b853
Radoslaw Bartosiak [Fri, 30 Jan 2015 16:42:31 +0000 (17:42 +0100)]
Add additional libcynara-agent tests
Add test cases for: cynara_agent_initialize(), cynara_agent_finish(),
cynara_agent_get_request(), cynara_agent_put_response()
*) tcag08_get_request_and_respond_with_wrong_id - client shall not
receive a response.
*) tcag09_get_request_and_correct_responded_id - client shall
receive the response with correct id.
*) tcag10_cancel_request - client shall receive the confirmation of
its cancel action.
*) tcag11_cancel_processed_request - the cancelation of the request
processed by the agent is possible but void.
*) tcag12_create_two_requests - processing of two requests.
*) tcag13_create_many_requests - processing of many requests and
sending the responses by the agent in LIFO order.
*) tcag14_client_disconnects - the cancel request shall be sent by
Cynara when client disconnects.
*) tcag15_agent_disconnects - the access denied answer shall be
sent by Cynara when agent disconnects.
Change-Id: I45c11e79c4977bed6892166a51c336e0414fc02e
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
Lukasz Wojciechowski [Tue, 17 Mar 2015 15:10:06 +0000 (16:10 +0100)]
Use proper RUNNER_ASSERT macros
Don't print errno message, when it's not valid
or related to assert condition.
Change-Id: I7012d5c97c1504df3d78fec0eac997d99560e374
Lukasz Wojciechowski [Tue, 3 Feb 2015 18:21:11 +0000 (19:21 +0100)]
Add inner tests for deferred macros
Added 11 test cases cover all possible nestings
of deferred macros.
Change-Id: I35898876f7b2dca740836463a5744fe96972f609
Lukasz Wojciechowski [Mon, 12 Jan 2015 10:26:10 +0000 (11:26 +0100)]
Add inner tests for timeout mechanism
Inner tests are needed to check if timeout mechanism works correctly
on platform that tests are runned.
Risk of not working is elevated because it uses std::future::wait_for()
method, which implementation had bugs in older compilers.
Change-Id: I3eae4dcab59b1fcec0c46f870653d0ae18c4a85f
Lukasz Wojciechowski [Tue, 20 Jan 2015 14:18:37 +0000 (15:18 +0100)]
Apply defer macros to callbacks in cynara async client
After all cynara library functions were sorrounded with try catch
macros causing all exceptions to be caught, there is no way of
throwning an exception from inside of callback function.
This is where defer macros mechanism can be applied.
Now all exceptions will be rethrown after comming back from
libcynara-client-async API functions.
Change-Id: I9743557631f2b13cecddf33cb072f280ae689d0a
Lukasz Wojciechowski [Tue, 20 Jan 2015 14:17:12 +0000 (15:17 +0100)]
Add defer macros
Used to defer throwing TestException exceptions (TestFailed,
TestIgnored) by catching them and rethrowing later.
This mechanism can help in breaking test and passing test result
from places where throwing exceptions is not allowed
Change-Id: Ic9baa96596d15fccbbff4ac81b18f91b2eb89c8e
Lukasz Wojciechowski [Tue, 20 Jan 2015 14:15:36 +0000 (15:15 +0100)]
Move non-template functions to timeout.cpp file
Leaving them in timeout.h causes double definition of functions.
Change-Id: Ic425855ffd958b2adbb16672d486fcdcedaa8897
Lukasz Wojciechowski [Thu, 19 Feb 2015 14:27:36 +0000 (15:27 +0100)]
Define a base TestException class
A new base class DPL::Test::TestException is defined as base for
* DPL::Test::TestFailed (prev. DPL::Test::TestRunner::TestFailed),
* DPL::Test::TestIgnored (prev. DPL::Test::TestRunner::Ignored).
All three classes were moved into separate files.
Common base class simplifies handling of exceptions that can be
thrown during tests.
Change-Id: I1fadb09b7781bf22a0090043a46ca48c55c9962b
Lukasz Wojciechowski [Tue, 13 Jan 2015 13:53:47 +0000 (14:53 +0100)]
Add basic libcynara-agent tests
Add basic tests for libcynara-admin library:
* tcag01_set_agent_type_policy_without_plugin - check if setting
a policy with policy type provided by not loaded plugin fails;
* tcag02_set_agent_type_policy_with_plugin_loaded - checks if
setting policy with policy type provided by loaded plugin succeeds;
* tcag03_check_with_no_agent - run cynara check that causes usage
of plugin needing agent (but agent is not running) and verify
that check returns DENY;
* tcag04_agent_initialize - check initialization and deinitialization
og agent;
* tcag05_agent_request_timeout - run agent and register it in cynara
service, break connection by resetting cynara after timeout;
* tcag06_check_with_unregistered_agent - run cynara check that causes
usage of plugin needing agent (agent is running but not registered)
and verify that chack returns DENY;
* tcag07_get_request - run simplest complete agent usage scenario:
> agent registers in cynara,
> a check using plugin and agent is done,
> test acts as agent receiving and verifying request,
> an ALLOW response is sent to cynara,
> client receives proper ALLOW answer.
Change-Id: I781e9bb88b8686334acca4f9cf2c13a13bd643d5
Lukasz Wojciechowski [Wed, 11 Mar 2015 09:44:44 +0000 (10:44 +0100)]
Use functor object as main argument of callAndWait
Previous solution was based on std::function, that causes problems
because std::function template arguments needed to be explicitely
defined.
Functor simplifies usage of callAndWait.
Change-Id: If4f8a640848e41042e6841e49354510c08db5357
Lukasz Wojciechowski [Tue, 17 Mar 2015 14:27:16 +0000 (15:27 +0100)]
Add synchronization after file operations
After creating, copying and removing files program should
wait on disc synchronization, otherwise test can fail, e.g.
when we swap database files and start cynara, which loads
old not-yet-synchronized version of db.
Change-Id: Ie5c26da859e4e2a88311bb68ed7a0138b98e87d7
Lukasz Wojciechowski [Tue, 17 Mar 2015 12:31:40 +0000 (13:31 +0100)]
Load default database at every cynara-test startup
All tests assume that their are run on clear cynara database.
On real image database can contain some data. To save those data
save/restore mechanism existed. It was expanded with 3rd function
loading default database after original image database was saved.
Change-Id: If580a11b6558b8084c959366dcfa50a1ef92782c
Pawel Wieczorek [Mon, 12 Jan 2015 10:05:35 +0000 (11:05 +0100)]
Enhance compareDbs() with additional information
This patch adds printing more debugging information if an error occurs.
In case of database contents mismatch all the files in pattern and
result database are listed. In case of file contents mismatch filename
of corrupted file is printed.
Change-Id: I8e2bc2a6fdc976fac65e521accd6140ddfebef7e
Pawel Wieczorek [Mon, 15 Dec 2014 14:18:56 +0000 (15:18 +0100)]
Add checksum files for tests
Cynara will support database contents checksum validation shortly. This
patch adds proper checksum files to database patterns.
Change-Id: Ie1a61689765fe3f3e9fe010e7ba333ccbdae265f
Maciej J. Karpiuk [Wed, 25 Feb 2015 12:58:44 +0000 (13:58 +0100)]
CKM: certificates refreshed (some were already expired).
Change-Id: Iad2449aed5ce3a2e07cdf60e0b57dce56e1e8f10
Marcin Niesluchowski [Thu, 16 Oct 2014 12:24:55 +0000 (14:24 +0200)]
Add --no-verbose option to XML collector
With --no-verbose param fail/ignore reason is not displayed
Change-Id: I62c78186c4b560f409f66ad74be3a3f4005fda42
Marcin Niesluchowski [Thu, 16 Oct 2014 12:17:36 +0000 (14:17 +0200)]
Add --no-verbose option to HTML collector
With --no-verbose param fail/ignore reason is not displayed
Change-Id: I790d24f2db8b707df20f88e0df08ec20cf5eab03
Aleksander Zdyb [Thu, 18 Dec 2014 10:31:02 +0000 (11:31 +0100)]
Add SynchronizationPipe
A crippled abstraction of widely praised, but often
misused communication mechanism.
Change-Id: I2bd4b63dac76711ce22331c0bc666d4cd6021240
Aleksander Zdyb [Wed, 3 Sep 2014 06:26:39 +0000 (08:26 +0200)]
Add UDSHelpers (Helpers for Unix Domain Sockets)
Change-Id: Id4c0429c325bc828d7c928e1c12d2ba9ec2b6a9f
Aleksander Zdyb [Tue, 18 Nov 2014 10:07:05 +0000 (11:07 +0100)]
Add PasswdAccess
A wrapper on getpwnam() and getgrnam().
Change-Id: Ib833b6c1922ad45de3f713f29a904283d094600f
Marcin Niesluchowski [Thu, 16 Oct 2014 12:21:58 +0000 (14:21 +0200)]
Add --no-verbose option to Console collector
With --no-verbose param fail/ignore reason is not displayed
Change-Id: Id2d0b93424f0ece32cad90d23b815146f4c6d111
yuseok.jeon [Wed, 25 Feb 2015 09:21:41 +0000 (18:21 +0900)]
Modify some test codes according to key-manager's 2.4 API changes
Change-Id: Ibfd46fd0f3c3a4c4b11488788eabbc2bae105d2d
Aleksander Zdyb [Fri, 6 Mar 2015 12:16:55 +0000 (13:16 +0100)]
Fix usertype in gum-utils invocation
Change-Id: I501a30549b0d7c5b94653250109db4aae9c1b5c7
Rafal Krypa [Fri, 6 Mar 2015 09:46:09 +0000 (10:46 +0100)]
security-manager-tests: use libsmack functions for operations on socket labels
Use smack_set_label_for_file() and smack_new_label_from_file() instead
of plain fsetxattr() and fgetxattr(). These libsmack functions have
been recently provided by libsmack 1.1.
This change also fixes a bug in the tests. We incorrectly expected
the value from fgetxattr() to be null-terminated. It was before kernel
3.20, but that was incorrect for the kernel to do. With most current
kernels the test failed. Libsmack functions do the null-termination
for us, so the test is working again.
Change-Id: Ifc1820cddad0c5acbe49f3c98e622b07acc31358
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Maciej J. Karpiuk [Wed, 25 Feb 2015 10:02:51 +0000 (11:02 +0100)]
CKM: CC mode uses user label to read & write keys.
Buxton does not allow root to modify user owned keys.
Change-Id: I106422a866fb6048ff359721dc30af68153661c8
Rafal Krypa [Fri, 27 Feb 2015 14:23:54 +0000 (15:23 +0100)]
Fix security_manager_11_security_manager_cmd_install
- adapt to new path types (private => writable, public => readable)
- use proper application directories
Change-Id: I1556fbf7bdbd1ec23ac9750c686ac2b4b62c0ef6
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Rafal Krypa [Fri, 27 Feb 2015 11:28:51 +0000 (12:28 +0100)]
fix security_manager_09_add_user_offline
- perform initial app uninstallation in on-line mode
(off-line doesn't support that)
- stop both security-manager.service and security-manager.socket
Change-Id: Ifcdb6d7a27c68b8b6e813bfd58887f80e17ea542
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Rafal Krypa [Fri, 27 Feb 2015 11:05:22 +0000 (12:05 +0100)]
fix security_manager_06_install_app_offline
- perform initial app uninstallation in on-line mode
(off-line doesn't support that)
- stop both security-manager.service and security-manager.socket
Change-Id: Ib2e524d9599cd2270e9f53a253a6324144a4e3f5
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Rafal Krypa [Thu, 26 Feb 2015 14:25:53 +0000 (15:25 +0100)]
security-manager-tests: use full proper path for applications
Changing function appDirPath to generate proper application path using
pkgId and appId values. Previous implementation tried to install all
applications directly into TZ_USER_APP directory, which was incorrect.
Change-Id: Iabdffd20ca37b6e2fb2c9ecb50d9ba58b16a857b
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Rafal Krypa [Mon, 2 Mar 2015 12:09:54 +0000 (13:09 +0100)]
security-manager-tests: generate proper app label
No longer hardcode application label to "User". Security-manager is switching
to final labeling schema: "User::App::$appId".
Adapting the tests accordingly.
Change-Id: I839027f9bb2b350ec057c08e9382516e194c1a5e
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Rafal Krypa [Fri, 27 Feb 2015 14:48:50 +0000 (15:48 +0100)]
Invoke test cases that fork with RUNNER_MULTIPROCESS_TEST
Change-Id: Ic4b83d3e96b2d987a9b4efd00c69861e5003861a
Zbigniew Jasinski [Fri, 6 Feb 2015 16:36:37 +0000 (17:36 +0100)]
Tests for new structure of application file paths
Change-Id: I47ffaa1524a7044904413d878573ef4b4e9cea89
Zbigniew Jasinski [Tue, 27 Jan 2015 18:26:01 +0000 (19:26 +0100)]
Test for new path types for application installation in security-manager
Changes to https://review.tizen.org/gerrit/#/c/33051/
Change-Id: If46428e20e23dd8724803f28945cbb7fb166a370
Jan Cybulski [Tue, 10 Feb 2015 07:12:33 +0000 (08:12 +0100)]
Test scenario for denying some privileges to a user by admin
Change-Id: I2b80c7643d6565fb2e5b8b5d1619214ad0f64d85
Signed-off-by: Jan Cybulski <j.cybulski@samsung.com>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Jan Cybulski [Thu, 29 Jan 2015 08:24:19 +0000 (09:24 +0100)]
Add convenience method for getting users's uid converted to string
Change-Id: I7229a746d3ddfa28f93aef3bb21c6bc56b8d9ccf
Signed-off-by: Jan Cybulski <j.cybulski@samsung.com>
Jan Cybulski [Fri, 6 Feb 2015 09:21:15 +0000 (10:21 +0100)]
Security manager: automatic test for security-manager-cmd
Change-Id: I73d5a9bab5eef1b241ce229eb3f8444daea1b217
Signed-off-by: Jan Cybulski <j.cybulski@samsung.com>
Jan Cybulski [Wed, 28 Jan 2015 16:26:03 +0000 (17:26 +0100)]
Add tests for creation and removal of user entries in cynara
Change-Id: I7fdf5a3853b02d4c5e997d3cc2902130be33ffc6
Signed-off-by: Jan Cybulski <j.cybulski@samsung.com>
Michal Eljasiewicz [Tue, 17 Feb 2015 13:42:25 +0000 (14:42 +0100)]
Test case for filtered getting of policies
Change-Id: I9bd63d42d287e86a1d4d3495d1bffd62dbc2debf
Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>