Radoslaw Bartosiak [Thu, 25 Jul 2013 08:56:47 +0000 (10:56 +0200)]
Fix test privilege_control05_add_shared_dir_readers
[Issue#] SSDWSSP-420
[Bug/Feature] The test fails the first time after the package installation.
[Cause] No cleaning of smack application files is performed.
[Solution] Calling functions cleaning_smack_app_files(); cleaning_smack_database_files() at the test beginning.
[Verification] Adjust our tests
Change-Id: I8506e4de8ea2f60696cd0b0969848f03d3f67b7a
Bartlomiej Grzelewski [Thu, 25 Jul 2013 10:01:35 +0000 (12:01 +0200)]
Remove compilation warnings.
[Issue#] N/A
[Problem] Where were so many warnings that compilation output was not readable.
[Feature] N/A
[Cause] N/A
[Solution] Unsued values and params were removed from the code.
[Verification] Build.
Change-Id: I771442f2c2aefeedfd1d64d420f2861081fa7ad8
Zbigniew Jasinski [Mon, 15 Jul 2013 12:18:05 +0000 (14:18 +0200)]
Added security-server restart function.
[Issue#] N/A
[Cause] No function to gracefully restart security-server.
[Problem] Using SIGKILL in tests.
[Solution] Addedd function to restart security-server using Systemd,
through Systemd's DBus interface.
[Verification] Build and run security-server-tests-dbus tests.
Change-Id: I04b24d657775143347f310b94b33bcd862c0833a
Radoslaw Bartosiak [Thu, 20 Jun 2013 07:30:48 +0000 (09:30 +0200)]
Implement new tests for security server (API speed of call)
[Issue#] SSDWSSP-288
[Feature] Create test cases for security-server API speed of call.
[Cause] N/A
[Solution] Implement new tests for security server (API speed of call)
[Verification] Build, install, run on device to read the measured times.
Change-Id: I9afa5bbf28f0dc42f91626ec88f2371204b40f71
Rafal Krypa [Thu, 18 Jul 2013 09:58:12 +0000 (11:58 +0200)]
libsmack-tests: fix errors to conform to kernel behaviour.
[Issue#] N/A
[Bug] Tests expect query for unknown rule to return "0", but they return
"-1". Expected "1 when asking for empty permissions, but "1" is
returned.
[Cause] Libsmack tests assume different Smack behaviour than Smack author.
[Solution] Adjust our tests.
[Verification] Run libsmack-tests.
Change-Id: Icbc1cbcbc2b95b973b9da3fd5483486e7b4909d7
Zbigniew Jasinski [Fri, 12 Jul 2013 08:47:42 +0000 (10:47 +0200)]
Fixing security-server tests.
[Issue#] SSDWSSP-357
[Problem] Failing security-server tests.
[Cause] * SS API label checking not enabled yet.
* Tests should run as RUNNER_CHILD_TEST.
* clear_password() misbehaving if
/opt/data/security-server/ doesn't exist.
[Solution] * Tests run as RUNNER_CHILD_TEST now.
* Tests splitted into:
* tc03_check_API_passwd_enable
* tc04_check_API_passwd_disable
* tc05_check_API_middleware_enable
* tc06_check_API-middleware_disable
* tc07_check_API_data_share_enable
* tc08_check_API_data_share_disable
* clear_password() fixed.
[Verification] Build and run:
security-server-tests-server --output=text --runignored
Change-Id: Ic390f6eacf3c85928d561467615757c20cb1eb44
Jan Cybulski [Thu, 4 Jul 2013 09:39:24 +0000 (11:39 +0200)]
Changing function names of liprivilege-control API
[Issue#] SSDWSSP-309
[Feature/Bug] N/A
[Problem] N/A
[Cause] Changing liprivilege API naming sheme
[Solution] Tests for new functions
[Verification] build, run, libprivilege tests should pass
Change-Id: Ib96b98546d9b68f03d4022415130c112e8129aeb
Zbigniew Jasinski [Tue, 25 Jun 2013 07:58:33 +0000 (09:58 +0200)]
Added test for checking smack context from DBus interface
[Issue#] SSDWSSP-201
[Cause] No tests for SMACK support in DBus.
[Solution] Added tests.
[Problem] N/A
[Verification] Build and run security-server-tests-dbus tests.
Change-Id: I2fdcca1108a7ce002716d6bccfd47a132303dc61
Jan Olszak [Thu, 4 Jul 2013 08:31:23 +0000 (10:31 +0200)]
Modify tests for security server.
[Issue#] Tests depend on each other.
[Feature] N/A
[Cause] N/A
[Solution] Reset security-server before the test, modified tests, added some comments.
[Verification] Build, install, run security-tests-password on device, verify whether results are correct. Two tests will fail, becouse badly handled empty password.
Change-Id: Ide27fcfb73e9e8238f00e9ad34b8dfba4d8b298f
Jan Olszak [Thu, 4 Jul 2013 13:01:22 +0000 (15:01 +0200)]
Changed dlog logging buffer.
[Issue#] dlog logged in a wrong buffer.
[Bug/Feature] Recent prevent bugs need fix.
[Cause] N/A
[Solution] N/A
[Verification] Build, install, run "dlogutil -c", run tests, run "dlogutil -b main PRIVILEGE_CONTROL" (no loggs), "dlogutil -b system PRIVILEGE_CONTROL" (loggs..). Repeat for SECURITY_SERVER.
Change-Id: I9b1a9c2f139cb1984c22013c6d2c871b31ff63a1
Janusz Kozerski [Thu, 4 Jul 2013 09:49:31 +0000 (11:49 +0200)]
Fix buildbreak on GCC 4.8
[Issue#] SSDWSSP-370
[Bug/Feature] Fix buildbreak on GCC 4.8
[Cause] N/A
[Solution] N/A
[Verification] Compile with GCC 4.8
Change-Id: Ib74302223deca9c1d5f9441755ffba209d510df4
Krzysztof Jackiewicz [Wed, 3 Jul 2013 15:32:06 +0000 (17:32 +0200)]
Patch for gcc 4.8
[Issue#] N/A
[Feature/Bug] N/A
[Problem] Compilation with gcc 4.8 fails
[Cause] 'close' function is not declared
[Solution] #include <unistd.h> added
[Verification] Successfull compilation
Change-Id: I6c22eaea6eec19b10581ed7aecbaae310510bad6
Radoslaw Bartosiak [Mon, 10 Jun 2013 17:07:13 +0000 (19:07 +0200)]
Implement new tests for security server (boundary parameters)
[Issue#] SSDWSSP-283
[Feature] Create input parameter validation test cases for security server.
[Cause] N/A
[Solution] Implement new tests for security server (boundary parameters)
[Verification] Build, install, run security-tests-password on device, verify whether results are correct.
Change-Id: I35f8f8ddb6fa19178a29f6506a536b64738004a9
Bartlomiej Grzelewski [Mon, 10 Jun 2013 15:27:49 +0000 (17:27 +0200)]
Add tests program for security-server2
This commit contains binary security-client that may be used to
test security-server2.
Minor changes:
* Remove duplicated optimalization option from build commands.
* Remove --std=c++0x option from gcc command.
* Set up DEBUG profile as default.
[Issue#] N/A
[Feature] Add security-client binary.
[Cause] DPL framework is too limited to test security-server2.
[Solution] N/A
[Verification] Run "security-client echo" and
"security-client rule oneoneone twotwotwo". In second
case you shoud see new rule in system.
Change-Id: I4c8316a8e9ce4e2a80d636a3e9235ccd50171e79
Janusz Kozerski [Tue, 25 Jun 2013 12:55:26 +0000 (14:55 +0200)]
Add test to early rules loading.
[Issue#] SSDWSSP-298
[Bug/Feature] Livebox issue fix.
[Cause] N/A
[Solution] N/A
[Verification] Compile. Run libprivilege-tests. All tests should pass.
Change-Id: Ie4184ea5122ae05b375bc820bd42e3a5f7f6d23e
Marcin Niesluchowski [Fri, 28 Jun 2013 13:17:11 +0000 (15:17 +0200)]
Adding ignored option to security-tests-all.sh script.
RUNNER_IGNORED_MSG("Ignore text"); should be added in the beginning of
test body. For turning off ignored option security-tests-all.sh should run with
additional --noignored flag. For single scripts ignored option is turned off
by default. To turn it on flag --runignored should be added.
For example:
* security-tests-all.sh
* security-tests-all.sh --noignored
* libprivilege-control-tests --output=text --runignored
[Issue#] SSDWSSP-343
[Bug/Feature] Ignore option should be added because some tests
could be made for unimplemented or not yet fixed
functionalities.
[Cause] N/A
[Solution] N/A
[Verification] Running tests. With ignored option function reaching
RUNNER_IGNORED_MSG should be classified as Ignored
in single test result and increment Ignored count in result
for each test group.
Change-Id: I883500d80c2933de24e51c7b94810ba543392b1d
Zbigniew Jasinski [Tue, 11 Jun 2013 12:11:22 +0000 (14:11 +0200)]
Added tests for Smack label checking (SSDWSSP-272)
[Issue#] SSDWSSP-275
[Bug/Feature] authorize_SS_API_caller_socket functionalities
are not covered by tests.
[Cause] N/A
[Solution] Added tests for Smack label checking.
[Verification] Running security-server tests.
*** WARNING ***
This test should fail until Smack label checking (SSDWSSP-272)
is not enable. At the moment SS doesn't check return code from
authorize_SS_API_caller_socket()
Change-Id: Id7c6d75d2cdfb03965d0a6ec8e0bb3a1f793d8e6
Marcin Niesluchowski [Thu, 20 Jun 2013 13:16:31 +0000 (15:16 +0200)]
All *.c , *.h , *.cpp and *.hpp files changed by stylecheck-for-git.
[Issue#] SSDWSSP-322
[Bug/Feature] Standardization of repository coding style.
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: Iaa411d974d68b16b57423cfe498cb96c206693b2
Marcin Niesluchowski [Thu, 6 Jun 2013 11:48:36 +0000 (13:48 +0200)]
Added privilege_control05_set_app_privilege_osp,
privilege_control05_set_app_privilege_osp_partner,
privilege_control05_set_app_privilege_osp_platform.
[Issue#] SSDWSSP-202
[Bug/Feature] app_set_permissions' functionalities are not all covered by tests.
[Cause] N/A
[Solution] N/A
[Verification] Running libprivilege-control tests.
Change-Id: If0da8acd7e49d3f946627e95e4d2c27ea6a0bae5
Zofia Abramowska [Thu, 6 Jun 2013 12:45:52 +0000 (14:45 +0200)]
Fixing libprivilege-control test cases
[Issue#] SSDWSSP-317
[Bug] Some tests were not implemented properly
[Cause] N/A
[Solution] Commented out test for stub function. Rewrote test
which used getgroups() and wasn't prepared to receive
not unique group numbers. Changed predicted format of rules.
[Verification] Run libprivilege-control tests. All should pass.
Change-Id: Iec15d94c538e0bbbdac956a0b79791d3271d089a
Marcin Niesluchowski [Tue, 4 Jun 2013 14:56:49 +0000 (16:56 +0200)]
Adding complementary tests for libprivilege-control function app_setup_path().
Tests privilege_control18_app_setup_path_public and privilege_control19_app_setup_path_settings
added. Also added access check in privilege_control03_app_label_shared_dir.
[Issue#] SSDWSSP-304
[Bug/Feature] app_setup_path's functionalities are not all covered by tests.
[Cause] N/A
[Solution] N/A
[Verification] Running libprivilege-control tests. Tests should pass.
Change-Id: Ie9d1df5271b430e6859285dbccfd8385c5db9487
Jan Cybulski [Wed, 17 Apr 2013 13:51:46 +0000 (15:51 +0200)]
Change test new_label_from_socket
[Issue#] SDWSSP-189
[Feature] Changing testcase
[Cause] Test failed. Label kept in the socket can be different
than the label of the peer, when the peer changed the label
after creating socket.
[Solution] Changing label before creating socket.
Socket and peer label will stay the same.
[Verification] Successful build. Running the libsmack tests
Change-Id: I79941bc57c883361a6707ce9f486cbdefb0e44fa
Rafal Krypa [Fri, 1 Mar 2013 12:43:14 +0000 (13:43 +0100)]
Implement tests for smack_new_label_from_socket()
[Issue#] N/A
[Feature] Test getting peer label from socket in various scenarios.
[Cause] N/A
[Solution] N/A
[Verification] Build, install, run tests on target.
Change-Id: I8b3a642c190aa4465069008dddfbe1fff7df07cb
Jan Cybulski [Thu, 16 May 2013 10:09:15 +0000 (12:09 +0200)]
Add test for appsetting privilege
[Issue#] SSDWSSP-241
[Feature] N/A
[Cause] New feature in libprivilege.
[Solution] N/A
[Verification] Run libprivilege tests.
Test privilege_control16_appsettings_privilege should pass
Change-Id: Ifd0bffb6595055e806c526ed065f23cfdb983922
Marcin Niesluchowski [Wed, 22 May 2013 12:28:22 +0000 (14:28 +0200)]
Fixing libprivilege-control app_revoke_permissions() test to match actual requirements (file should exist after function call).
[Issue#] SSDWSSP-260
[Bug/Feature] app_revoke_permissions() should not remove permissions file.
[Cause] Comment to function app_revoke_permissions() in libprivilege-control indicated that permissions file should be removed.
[Solution] Tests change.
[Verification] Running tests
Change-Id: I119c370219ac014212269646c531d1f005aeb848
Rafal Krypa [Wed, 22 May 2013 16:51:53 +0000 (18:51 +0200)]
Use new function app_setup_path() in place of old app_label_dir() and app_label_shared_dir().
Change-Id: I75538d3405337a23c307de526d9a68318cb26b68
Bartlomiej Grzelewski [Wed, 29 May 2013 15:57:29 +0000 (17:57 +0200)]
Add test for APP_PATH_ANY_LABEL case in function app_setup_path.
[Issue#] SSDWSSP-307
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Run libprivilege-control tests.
Change-Id: I2a997ed36aa557b8a9410db711eed37433289a9e
Zbigniew Jasinski [Mon, 27 May 2013 12:58:47 +0000 (14:58 +0200)]
Added test cases for chosen security-server functions checking weird input parameters.
[Issue#] SSDWSSP-282
[Cause] N/A
[Solution] N/A
[Problem] N/A
[Verification] Build and run tests.
Change-Id: I42f2683729f4cdd1fbb7a3cd2b3ba1206a622960
Marcin Niesluchowski [Tue, 28 May 2013 13:48:49 +0000 (15:48 +0200)]
Fixing privilege_control05_set_app_privilege_wgt* tests. Tests need slp-info.sec.samsung.net/gerrit/#/c/212155/ libprivilege commit.
[Issue#] N/A
[Bug/Feature] N/A
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: Ib7820b3044873b61c708f232271e3966f5a4661d
Zofia Abramowska [Thu, 23 May 2013 11:25:59 +0000 (13:25 +0200)]
Modyfing tests to new libprivilege feature to file name mapping
[Issue#] SSDWSSP-292
[Feature/Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build. Run libprivilege-control tests. Tests for
add_api_feature should pass
Depends on : http://slp-info.sec.samsung.net/gerrit/#/c/209603/1
Change-Id: I5c225e0bfeba9ce4d5cca2cdfafc9d8278d9273c
Janusz Kozerski [Mon, 27 May 2013 15:17:05 +0000 (17:17 +0200)]
Fix test to pass with libprivilege-control boot optimization.
[Issue#] SSDWSSP-295
[Problem] N/A
[Cause] N/A
[Solution] N/A
[Verification] Run all libprivilege-contorl tests.
Change-Id: I105e28eaac9fbf86c3048c0183806077d2c4305b
Rafal Krypa [Wed, 8 May 2013 08:47:29 +0000 (10:47 +0200)]
Fix bug in privilege_control05_set_app_privilege
Change-Id: Ib077463f2189cbed6164f5317ad0a30a79d5abde
Krzysztof Jackiewicz [Fri, 17 May 2013 08:10:23 +0000 (10:10 +0200)]
Test for app_label_dir
[Issue#] SSDWSSP-233
[Feature] Requirements for app_label_dir
[Problem] N/A
[Cause] N/A
[Solution] Tests updated
[Verification] Run libprivilege-control-test --regexp=app_label_dir
Change-Id: Ia5bbeaad35f34d1fcbb0c01e760805eb2d9c4f9d
Marcin Niesluchowski [Wed, 8 May 2013 12:46:02 +0000 (14:46 +0200)]
Test privilege_control05_set_app_privilege_wgt, privilege_control05_set_app_privilege_wgt_partner, privilege_control05_set_app_privilege_wgt_platform added.
[Issue#] SDWSSP-202
[Bug/Feature] Additional test cases for set_app_privilege() for widgets
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: Id4734deb3667306f1af017fef59e7e4fbaf91daa
Janusz Kozerski [Wed, 22 May 2013 09:24:45 +0000 (11:24 +0200)]
Fix test to pass with smack_pid_have_access function.
[Issue#] SSDWSSP-220
[Problem] N/A
[Cause] N/A
[Solution] N/A
[Verification] Run all security-server tests. All test should pass.
Change-Id: I1a6e61074d086867d4f730b7bb28515f452618a9
Bartlomiej Grzelewski [Fri, 10 May 2013 16:39:08 +0000 (18:39 +0200)]
Remove compilation warrnings.
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: Iacdf1ad61889dea08d0eeb34aaa50db9dace803c
Krzysztof Jackiewicz [Thu, 9 May 2013 13:26:43 +0000 (15:26 +0200)]
Multiple security server clients stress test added.
[Issue#] SSDWSSP-237
[Problem] N/A
[Cause] N/A
[Solution] Stress test added.
[Verification] Run security-server-tests-mt --output=text
Change-Id: If15ebf15431557cb5c53ccf244e65963f3eba37b
Marcin Niesluchowski [Tue, 14 May 2013 16:17:00 +0000 (18:17 +0200)]
Test for app_add_friend() changed - friends should be made even with nonexisting friend. Test for app_enalble_permissions() changed - without persistent mode rule file should exist but rules should not be written to that file.
[Issue#] SSDWSSP-260
[Bug/Feature] Fix libprivilege-control tests
[Cause] N/A
[Solution] N/A
[Verification] Run privilege_control11_app_enable_permissions and privilege_control14_app_add_friend libprivilege-control tests (should pass)
Change-Id: I6d893de9e5060e69f8a851cd9791644e228770a9
Jan Cybulski [Tue, 14 May 2013 11:01:28 +0000 (13:01 +0200)]
Add perf tool for performance test
[Issue#] SSDWSSP-172
[Feature] N/A
[Cause] N/A
[Solution] Adding performance tool perf.
[Verification] Run test-performacne-check.sh
Change-Id: Id41472a24053e3bef4a864b70bc7cf5ffb5255bd
Jan Cybulski [Mon, 13 May 2013 13:33:20 +0000 (15:33 +0200)]
Add smack performance test
[Issue#] SSDWSSP-172
[Feature] N/A
[Cause] N/A
[Solution] Adding performance test using perf tool.
[Verification] Run test-performacne-check.sh
Change-Id: I4ed7d10ce7952bac5e2ab7f91dc5cc14edbc1247
Zofia Abramowska [Mon, 13 May 2013 14:27:11 +0000 (16:27 +0200)]
Removing test for revoking access given by app_give_access
[Issue#] SSDWSSP-229
[Bug/Feature] N/A
[Cause] Reimplementing process_app_give_access in security server
[Solution] Commented out test for revoking access given by
security_server_app_give_access
[Verification] Successful build
Change-Id: Ia4b2ba2b532adaf27d0d3f703520f7d2a90b0b47
Krzysztof Jackiewicz [Fri, 10 May 2013 15:44:56 +0000 (17:44 +0200)]
Label comparison fixed
[Issue#] N/A
[Problem] Test is sometimes failing
[Cause] Wrong comparison method
[Solution] Strcmp has been used.
[Verification] Run security-server-tests-label
Change-Id: Ib9bbe59c2b2e2e61c18726e479a7642ce8ad1238
Marcin Niesluchowski [Mon, 29 Apr 2013 14:45:59 +0000 (16:45 +0200)]
5 tests added - 1 smack_accesses_clear() test; 1 smack_revoke_subject() test; 1 smack_accesses_add_modify() test; 1 test for adding, removing rules; 1 test for saving, loading rules from file.
[Issue#] SSDWSSP-58
[Bug/Feature] Create additional 5 test cases for libsmack
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: Ia3484d6ebdb48ba27e22018ca9c0e7dab5470db8
Marcin Niesluchowski [Wed, 24 Apr 2013 08:29:39 +0000 (10:29 +0200)]
Tests added to 5 functions (app_id_from_socket(), app_enable_permissions(), app_disable_permissions(), app_reset_permissions(), app_add_friend()) in libprivilege control and added file check in app_revoke_permissions().
[Issue#] SSDWSSP-199
[Bug/Feature] Tests to 5 functions.
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: I8271f0c5f2f15f94ce185b9a3bf7ac77e02af03f
Krzysztof Jackiewicz [Tue, 7 May 2013 08:28:13 +0000 (10:28 +0200)]
Second app_install attempt should succeeed
[Issue#] N/A
[Problem] Test fails since multiple app_install calls have been allowed
[Cause] Test was not updated
[Solution] Test updated
[Verification] libprivilege-control-test --regexp=app_install
Change-Id: I23ee02848e43001376b90f50d3e746d9d56f119d
Marcin Niesluchowski [Tue, 7 May 2013 13:35:00 +0000 (15:35 +0200)]
tc04_security_server_get_gid_client_is_not_allowed changed
[Issue#] SSDDWSSP-225
[Bug/Feature] test tc04_security_server_get_gid_client_is_not_allowed fails.
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: If1baf00bb89a0b7482b4f5c093daf2b2ca877b17
Zofia Abramowska [Fri, 26 Apr 2013 14:20:03 +0000 (16:20 +0200)]
Fixing klocwork bugs
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build and run tests
Change-Id: I651ac1a7d409024751952a11336b77561a7080cc
Marcin Niesluchowski [Thu, 2 May 2013 09:23:50 +0000 (11:23 +0200)]
Changed test to app_register_av() in tests to libprivilege-control
[Issue#] SSDWSSP-223
[Bug/Feature] Should fix bug in app_register_av() in libprivilege-control, but test needs to be fixed first
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: I78005e206a860814683956b776dba8461d4b758e
Bartlomiej Grzelewski [Tue, 30 Apr 2013 14:56:15 +0000 (16:56 +0200)]
Add additional test for app_give_access.
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build.
Change-Id: I1227696cb0ab5480c15e7dd9c9c09ce4165ede11
Jan Cybulski [Tue, 23 Apr 2013 11:11:42 +0000 (13:11 +0200)]
Add test for security_server_get_smacklabel_sockfd
[Issue#] SSDWSSP-198
[Feature/Bug] security_server_get_smacklabel_sockfd has no tests yet
[Problem] N/A
[Cause] N/A
[Solution] Add test for API in existing testcase tc06_check_privilege_by_sockfd
[Verification] build, run the test, verify if it pass.
Change-Id: I2cbc713c37ff77270e83855d51bddc5048cbd233
Bartlomiej Grzelewski [Mon, 22 Apr 2013 16:23:37 +0000 (18:23 +0200)]
Test to: Implemet data control solution for OSP apps.
[Issue#] SSDWSSP-177
[Bug] N/A
[Cause] OPS application need to share memory.
[Solution] Add cross rules between OSP application.
Change-Id: I29b24d3fa8410b0f444f494d45e1c283605ce2af
Jan Cybulski [Thu, 18 Apr 2013 13:41:42 +0000 (15:41 +0200)]
Fixed tests for app_shared_dir_add_readers()
[Issue#] SSDWSSP-196
[Feature/Bug] app_shared_dir_add_readers() has to accept NULL in an argument list 'app_list'. Also added test to check what happens if the label in 'app_list' is not correct SMACK label
[Problem] N/A
[Cause] N/A
[Solution] As above mentioned.
[Verification] libprivilege-control-test --output=text
Change-Id: If53fc929d4900cefda345b240fce8d8d26250505
Jan Cybulski [Mon, 15 Apr 2013 13:00:39 +0000 (15:00 +0200)]
Change test tc07_check_privilege_by_sockfd
[Issue#] SDWSSP-189
[Feature] Changing testcase
[Cause] Test failed. Label kept in the socket can be different
than the label of the peer, when the peer changed the label
after creating socket.
[Solution] Changing label before creating socket.
Socket and peer label will stay the same.
[Verification] Successful build. Running the security server tests
Change-Id: I7f409492ea33cfa0a354d2527ae2752fe04e749e
Krzysztof Jackiewicz [Wed, 17 Apr 2013 17:47:04 +0000 (19:47 +0200)]
Tests for libprivilege add_new_feature API including guids
[Issue#] N/A
[Problem] N/A
[Cause] Tests for new API needed
[Solution] tests implemented
[Verification] libprivilege-control-test --output=text --regexp=add_api_feature
should pass
Change-Id: I2908f4a60da91bf21225527ff0044398f1f06c78
Jan Cybulski [Tue, 2 Apr 2013 11:09:41 +0000 (13:09 +0200)]
Added test for app_label_shared_dir on same subject as object behaviour
[Issue#] SSDWSSP-154
[Feature] Tests for new functionalities.
[Cause] Change in libsmack.
[Solution] Test checks what the function does when labels are equal
[Verification] Successful build. Running the tests
Change-Id: I59adbe589817172594187473d51a22fb5b2cc1d8
Jan Cybulski [Wed, 17 Apr 2013 16:38:47 +0000 (18:38 +0200)]
Add test privilege_control05_add_shared_dir_readers
[Issue#] SSDWSSP-154
[Feature] Tests the functionality of a new API add_shared_dir_readers.
[Verification] Successful build, running the libprivilige tests.
Change-Id: I25c6c9c0f4ae072477b6177e6dd6d2d7a92e702e
Pawel Polawski [Mon, 15 Apr 2013 15:01:56 +0000 (17:01 +0200)]
Add new tests for new security-server api function
[Issue#] SSDWSSP-185
[Feature] New security-server API
[Problem] N/A
[Cause] N/A
[Solution] N/A
[Verification] New test should not fail
Change-Id: Ie733c0b47545f874b7b7856fc479ccda204cfdbd
Rafal Krypa [Wed, 17 Apr 2013 15:59:36 +0000 (17:59 +0200)]
Modify, systematize and reorder tests related the following libprivilege-control APIs:
- app_install
- app_add_permissions
- app_revoke_permissions
- set_app_privilege
- app_uninstall
They now depend on each other and use the same app_id. Current tests conform
to latest libprivilege-control requirements and design.
Change-Id: I13f675b8d8840d9cb6d0ee538e33409b025c7648
Janusz Kozerski [Mon, 8 Apr 2013 15:44:13 +0000 (17:44 +0200)]
Add API app_register_av and app_install function test cases. Change tests that drops privileges to "RUNNER_CHILD_TEST".
[Issue#] SSDWSSP-176
[Feature] 2 new testcases.
[Cause] N/A
[Solution] N/A
[Verification] Needs commit: http://slp-info.sec.samsung.net/gerrit/#/c/178794/
Change-Id: Ie727f0ce172aeced6cde1d473220452e3c5b1975
Bartlomiej Grzelewski [Tue, 16 Apr 2013 11:53:51 +0000 (13:53 +0200)]
Test of function security_server_app_give_access.
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Two test has been added to
security_server_app_give_access. First must pass.
Change-Id: Ic28b713bb4cb3f0ac419bbdd1d56ea4f70abecfa
Zofia Abramowska [Mon, 15 Apr 2013 11:46:53 +0000 (13:46 +0200)]
Fixing Klocwork bugs
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Successful build, tests passed
Change-Id: I206403dacfa4211f5f8367203fbdadccd511687b
Jan Cybulski [Thu, 11 Apr 2013 13:50:18 +0000 (15:50 +0200)]
Revert "Test binaries added to middleware list"
[Issue#] SSDWSSP-186
[Feature] This reverts commit
55543351efa199b142aa017d907605d3ab87866d. Middleware list is no longer used in security-server.
[Verification] Successful build.
Change-Id: I9040e5ff52044526f6795cdabcf6982c853404f8
Krzysztof Jackiewicz [Thu, 11 Apr 2013 08:27:02 +0000 (10:27 +0200)]
Test case for libprivilegecontrol add_api_feature API
[Issue#] N/A
[Feature] Unit tests for new API
[Problem] N/A
[Cause] N/A
[Solution] Unit tests implemented
[Verification] Run libprivilege-control-test --output=text
--regexp=add_api_feature
Change-Id: I6a0dd071b1acf3dda717669990a2cddeca89af86
Bartlomiej Grzelewski [Wed, 10 Apr 2013 14:32:50 +0000 (16:32 +0200)]
Test for app_give_access, app_revoke_access function.
[Issue#] SSDWSSP-177
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build. Run libprivilege-control tests.
New test has been added and it should pass.
Change-Id: I5877111a60f2b95d871df45095eaf00da6e4f3f5
Krzysztof Jackiewicz [Fri, 29 Mar 2013 10:31:59 +0000 (11:31 +0100)]
Test binaries added to middleware list
[Issue#] N/A
[Feature/Bug] N/A
[Problem] security-server tests binaries are not present in allowed middleware
list. Because of that tests fail on rsa image.
[Cause] N/A
[Solution] Test binaries are added in postinstall
[Verification] Build and install test package on rsa image. Check
/usr/share/security-server/mw-list. Test binaries should be added to the list.
Install package again. There should be no duplicates. Run tests for
client-smack, label and server. Results should be identical to those from slp
image.
Change-Id: Idc66e54ffbe3a430ceff6602856863c1e27148eb
Pawel Polawski [Thu, 7 Feb 2013 17:54:26 +0000 (18:54 +0100)]
Fix security-server passwor failing tests.
[Issue#] SSDWSSP-85
[Cause] Fix security-server-password failing tests.
[Problem] Some of security-server password tests fails.
[Solution] Tests fixed.
[Verification] None of security-server password tests should fail.
Change-Id: Ibd111e61bf0ea255ae6b3884e4a4ffe9cca3e19f
Bartlomiej Grzelewski [Tue, 26 Mar 2013 16:45:25 +0000 (17:45 +0100)]
Fix build break on i586 architecture.
[Issue#] N/A
[Problem] Build break on i586 arch.
[Cause] System header sys/time.h was not included in tests.
[Solution] Add header file to tests.
[Verification] Successful build.
Change-Id: I845a562c1d132cb9e8df3516deb701271ca8436c
Krzysztof Jackiewicz [Thu, 21 Mar 2013 09:20:47 +0000 (10:20 +0100)]
Release version 0.0.45
[model] REDWOOD
[binary_type] PDA
[customer] OPEN
[issue#] N/A
[problem] N/A
[cause] Bugfixes and refactoring
[solution] Released
[team] SRPOL Security
[request] N/A
[horizontal_expansion] N/A
[Verification] Build package. Check version.
Change-Id: I1ed10729aa0298628d69c71689ec747ab18c7471
Zofia Abramowska [Thu, 21 Feb 2013 13:47:48 +0000 (14:47 +0100)]
Fix security-server failing tests in ss-server tests
[Issue#] SSDWSSP-84
[Bug] Failing tests
[Cause] Two test cases not independent and one incorrect test
[Solution] Rewritten two cases and deleted incorrect test
[Verification] Build, install on target and run
security-server-test-server. All test cases should pass.
Change-Id: I9462a4abc121d859e1826e110130f486d86af93a
Janusz Kozerski [Mon, 11 Feb 2013 11:00:29 +0000 (12:00 +0100)]
Remove duplicated tests
[Issue#] SSDSWSSP-82
[Cause] Duplicated tests: SS Client and SS Client Smack
[Solution] Remove tests
[Problem] N/A
[Verification] Run all security test. And run ss client smack test (security-tests.sh ss-client-smack --output=text), 6 test should pass.
Change-Id: Id916134ec8821528c76e21a446c6a7db326aa78d
Bartlomiej Grzelewski [Wed, 6 Feb 2013 12:47:45 +0000 (13:47 +0100)]
security-server-tests-client-smack refactoring.
[Issue#] SSDSWSSP-83
[Cause] N/A
[Solution] N/A
[Problem] N/A
[Verification] Run security-server-tests-client-smack.
6 tests must pass.
Change-Id: Iee41a0520ba92435bc2084e7af5d9e312d43a835
Rafal Krypa [Tue, 5 Feb 2013 16:20:56 +0000 (17:20 +0100)]
Verify proper handling of symlinks by set_app_privilege().
[Issue#] SSDWSSP-80
[Feature] Verify proper handling of symlinks by set_app_privilege().
[Cause] Requirements about following symlinks for Smack exec labels have been given.
[Solution] Use symlink for running app, label symlink and its target differently.
[Verification] Build, install, run libprivilege-control tests.
Change-Id: Ia6fd9c76538a55e44f19c410b36f0ee535d08f0a
Rafal Krypa [Tue, 5 Feb 2013 15:35:46 +0000 (16:35 +0100)]
libprivilege-control-tests: rewrite test of app_label_dir(), new test for app_label_shared_dir()
[Issue#] SSDWSSP-70
[Feature] Tests for new libprivilege-control API.
[Cause] New API requested by Bumjin.
[Solution] Two new tests added.
[Verification] Build, install, run libprivilege-control tests.
Change-Id: Ic487fb83ec82e63b9e696b8c9ade60cd9f8089cb
Rafal Krypa [Fri, 1 Feb 2013 16:49:21 +0000 (17:49 +0100)]
libsmack-tests: change expected result for revoking unknown subject.
[Issue#] N/A
[Bug] Libsmack test expects revoking of unknown subject to fail.
[Cause] That behaviour was present in kernel, but improper.
[Solution] Expect revoke to succeed. The kernel has been fixed already.
[Verification] Build, install, run libsmack tests.
Change-Id: Ib0d9e3b3564288f6c4f32398545e1ef8325d5850
Bartlomiej Grzelewski [Tue, 5 Feb 2013 10:59:25 +0000 (11:59 +0100)]
Add security-server tests to security-tests-all.sh script.
[Issue#] SSDWSSP-62
[Casue] N/A
[Problem] New tests have been added to security-server.
All these tests should be run by security-test-all.sh
script.
[Solution] Add tests to scripts.
[Verification] Run security-tests-all.sh script - additional test
suites should be executed.
Change-Id: I2b166f1a6061e8394ebaea4f3d4da906070e0330
Mariusz Domanski [Wed, 23 Jan 2013 09:41:37 +0000 (10:41 +0100)]
security-server tests on DPL framework
based on security_server_tests form security-server repository
[Issue] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build and run tests. The new tests are named security-server-tests*
Change-Id: I2dd47aad5363e7c595f7df03a46899638ec7f5bb
Bartlomiej Grzelewski [Fri, 1 Feb 2013 10:19:13 +0000 (11:19 +0100)]
Add smack and libprivilege-control tests to security-tests.
Remove vcore, cert-svc, ace, security-daemon tests from security-tests.
[Issue#] SSDWSSP-62
[Bug] N/A
[Problem] N/A
[Solution] N/A
Change-Id: I9ba672e49bfdbea51bf360c4ce20945d8dd7fe54
Jan Olszak [Fri, 25 Jan 2013 15:14:27 +0000 (16:14 +0100)]
Added libprivilege-control set_app_privilege tests.
[Issue] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build, run tests: security-tests.sh pc --output=text
Change-Id: I2bc6ed25e250d0f54d1939683b2f11c6017d927f
Jan Olszak [Fri, 18 Jan 2013 13:38:16 +0000 (14:38 +0100)]
Added libprivilege-control tests.
[Issue] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build, run tests: security-tests.sh pc --output=text
Change-Id: I98e81ccf506ed29d9ec79a336b8ee2990d9524b8
Jan Olszak [Tue, 22 Jan 2013 15:46:46 +0000 (16:46 +0100)]
Added test cases for smack_accesses_add_modify() from libsmack
[Issue] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build and run tests. The new tests are named smack_accesses_add_modify_test.
Change-Id: Ie8043840dd2ceca97af9c333f95f5c0c7229a063
Pawel Polawski [Fri, 11 Jan 2013 10:58:59 +0000 (11:58 +0100)]
Moved SMACK test from wrt-security repository.
[Issue#] LINUXSWAP-444
[Cause] Move SMACK tests to new security-tests repository.
[Problem] SMACK tests must be removed from wrt-security.
[Solution] SMACK tests moved to security-tests repository.
[Verification] Succesfuul compilation and run SMACK tests.
Change-Id: Ia54493b989e8cc3eca0b68dbecc316dbd68abf0b
Jung Minsun [Fri, 11 Jan 2013 08:30:56 +0000 (17:30 +0900)]
Initial empty repository