Marcin Niesluchowski [Thu, 16 Jan 2014 06:54:32 +0000 (07:54 +0100)]
Change sensitive names to more proper ones.
[Issue#] N/A
[Bug/Feature] Some names could be registered as trademarks.
[Cause] N/A
[Solution] Changing names.
[Verification] Build. Run tests. Test results should not change.
Change-Id: I167be87d597d05c4785edf814bca6fb3f5aeea4c
Bartlomiej Grzelewski [Thu, 12 Dec 2013 16:20:08 +0000 (17:20 +0100)]
Change name security_server_open_for.cpp to open_for.cpp.
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build, run tests.
Change-Id: Ia6de5176d9df280870599145dea5b49a6f8a0681
Bartlomiej Grzelewski [Tue, 28 Jan 2014 12:49:09 +0000 (13:49 +0100)]
Use ScopedClose instead unique_ptr.
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build, run tests.
Change-Id: Ied85673562f17e6a448503a89ae5a3d3effc7a0b
Zbigniew Jasinski [Tue, 26 Nov 2013 13:07:22 +0000 (14:07 +0100)]
Improved tests for *open_for* functions.
[Issue#] SSDWSSP-398
[Bug/Feature] New SS API function.
[Cause] DataControl issues.
[Solution] Proposal for DataControl issues.
[Verification] Build and run new tests.
Change-Id: Ib8c4d1a39cbd3956ae72254d3d9fc38eb4453cb1
Bartlomiej Grzelewski [Thu, 23 Jan 2014 13:49:20 +0000 (14:49 +0100)]
Remove tracker.
Tracker was replaced with macro RUNNER_ASSERT_MSG_BT which is able
to print full backtrace.
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build, run tests.
Change-Id: Ic5bdd6584ce11edcfa662c54807b042104284062
Lukasz Wojciechowski [Thu, 23 Jan 2014 14:41:00 +0000 (15:41 +0100)]
Fix missing <iostream> header include
[Issue#] N/A
[Bug] missing needed <iostream> include
[Cause] N/A
[Solution] add missing header
[Verification] Build tests
Change-Id: Id20adae2f80b769c42a1e9381f62c35596f06143
Lukasz Wojciechowski [Thu, 9 Jan 2014 13:34:48 +0000 (14:34 +0100)]
Add test for libprivilege-control / perm_add_additional_rules.
[Issue#] SSDWSSP-679
[Feature] Add new tests covering perm_add_additional_rules.
[Cause] Function need to be tested.
[Solution] Add tests checking database.
[Verification] Build security-tests.
Run tests on target:
"security-tests.sh libprivilege-control --output=text \
--regexp=perm_add_additional_rules"
Change-Id: Idcb2f996d55aa1a7b557e830824e78af46a63f0e
Pawel Broda [Mon, 13 Jan 2014 15:51:32 +0000 (16:51 +0100)]
Provides macro for easy backup of libprivilege DB
[Issue#] SSDWSSP-732
[Feature] Implement better DB management in our libprivilege-control tests.
[Cause] It was not possible to withdraw changes done by some of the tests.
As a result some of the DB changes were permanent.
[Solution] Provide a macro which backups DB before each test and copies it back
after the test.
[Verification] Build and run on the target.
Change-Id: I2c46c69ee3cc122bc8567e5f97ed9530940bb508
Bartlomiej Grzelewski [Tue, 21 Jan 2014 15:02:09 +0000 (16:02 +0100)]
Add NULL at the end of array.
[Issue#] N/A
[Bug] Lack of NULL at the end of array may cause segmentation
fault.
[Cause] N/A
[Solution] N/A
[Verification] Build, run tests.
Change-Id: Ie834aab741807bbe8b9974b82adea5fca0ce767a
Bartlomiej Grzelewski [Tue, 21 Jan 2014 13:37:41 +0000 (14:37 +0100)]
Fix compilation problem with gcc 4.8.
[Issue#] N/A
[Bug] Build break.
[Cause] Lack of header files.
[Solution] N/A
[Verification] Build.
Change-Id: Idd057f34c57278ee25841732847b8ade4175696e
Bartlomiej Grzelewski [Mon, 20 Jan 2014 14:29:51 +0000 (15:29 +0100)]
Use pragma to allow test of deprecated functions.
[Issue#] N/A
[Bug] Build break.
[Cause] Usage of deprecated function in tests.
[Solution] Use pragma to remove compilation errors.
[Verifcation] Build, run tests.
Change-Id: Iae1a364ea45cbe1c9763660ed49c8638afd84f57
Pawel Broda [Tue, 7 Jan 2014 13:56:20 +0000 (14:56 +0100)]
Updating test macros (DPL enhancement - line printing in case of error)
[Issue#] SSDWSSP-710
[Feature] Provides backtrace in case of test failure.
[Cause] Old macros (RUNNER_ASSERT & RUNNER_ASSERT_MSG) did not
provide backtrace in case of test failure.
[Solution] Replacing old macros with the new ones providing bactrace.
[Verification] Run tests on the target.
Change-Id: I5c553c8b254c1bf268b7a604c1f6dc833b1f1075
Damian Chromejko [Fri, 6 Dec 2013 14:44:22 +0000 (15:44 +0100)]
Add new test cases for security-server password API.
[Issue#] SSDWSSP-707
[Feature/Buf] New test case.
[Cause] Checking cases not considered before.
[Solution] Added a test checking if security-server behaves as required.
Test tc41_security_server_empty_history_check was reworked in
SSDWSSP-708 to check reusing password after limiting history
because, although technically a part of this issue, it was
necessary for the whole testsuite to pass.
[Verification] Build, install, run tests.
Change-Id: I0218d5fe411c3479140095c05942bb107fcc83df
Damian Chromejko [Fri, 22 Nov 2013 12:00:31 +0000 (13:00 +0100)]
Add tests for perm_app_get_permissions().
[Issue#] SSDWSSP-669
[Feature/Bug] N/A
[Cause] Extension of libprivilege-control API.
[Solution] Added tests for new methods.
[Verification] Build, install and run libprivilege-control-test.
Change-Id: Ia8cc9aa9fe2eb7d8d6421b1cd54a1847333dd061
Damian Chromejko [Thu, 28 Nov 2013 14:20:51 +0000 (15:20 +0100)]
Add tests for perm_app_get_paths().
[Issue#] SSDWSSP-670
[Feature/Bug] New test cases for perm_app_get_paths().
[Cause] Extension of libprivilege-control API
[Solution] Added tests for new methods.
[Verification] Build, install and run libprivilege-control-test.
Change-Id: Ifc280e76022f8c5341fd4dd26a33024e7ad336c8
Sebastian Grabowski [Tue, 5 Nov 2013 10:51:04 +0000 (11:51 +0100)]
Changes in tests regarding libprivilege API change
[Issue#] SSDWSSP-620
[Bug/Feature] Add new API in libprivilege-control and use it in
installators (perm_app_setup_permissions)
[Cause] There is a need that only installators could add
persistent rules
[Solution] Update tests to use new libprivilege api mainly for
perm_app_setup_permissions.
[Verification] Build, install, run tests.
Change-Id: I18ddd5d286988584cd822a4b929419c8bc1c6102
Pawel Broda [Tue, 10 Dec 2013 15:24:09 +0000 (16:24 +0100)]
DPL enhancement - line printing in case of error
[Issue#] SSDWSSP-710
[Feature] Provides backtrace (i.e. source code file name + line number)
in case of error.
[Cause] Info amount in case of test failure was not sufficient
to determine execution path. There was a need of passing
__LINE__ or similar preprocessor macros as arguments.
[Solution] Backtrace printing based on the gdb output (gdb is triggered
after particular test fails).
[Verification] Compile & install on the target. Run without gdb installed too.
Run example tests which fails and examine the output.
Change-Id: I749b8efa9ce457df41baebbaefd6aec869f772a7
Zbigniew Jasinski [Wed, 27 Nov 2013 13:44:06 +0000 (14:44 +0100)]
Fix issue with SS restarting during password tests problem.
[Issue#] SSDWSSP-671
[Bug/Feature] Problem with SS restarting.
[Cause] There is rate limit on service restarts in SystemD (5 in 10 s).
[Solution] Send to SystemD SS service ResetFailed to restart rate counter.
[Verification] Compile, run SS password tests.
Change-Id: I0d67e810f2fc63a740be2f987faf6d66476e0858
Piotr Bartosiewicz [Tue, 17 Dec 2013 13:34:40 +0000 (14:34 +0100)]
Fix broken security server password tests
[Issue#] SSDWSSP-730
[Bug/Feature] N/A
[Cause] N/A
[Solution] Fix passwd_allow test. Enable previously ignored
password tests.
[Verification] Build tests and security-server from devel, install, run
tests. Tests that should pass:
- tc03_check_API_passwd_allow
- tc04_check_API_passwd_denied
- tc06_check_API_middleware_denied
Change-Id: Ia2cf3d5b542ddf8cbc332542500a5d99ced46687
Michal Witanowski [Wed, 20 Nov 2013 10:52:55 +0000 (11:52 +0100)]
Add summary view to all security tests.
[Issue#] SSDWSSP-522
[Bug/Feature] Running security tests via security-tests-all.sh prints
summary view (all tests results summed together).
[Cause] N/A
[Solution] A new results collector for WRT tests runner was created
(SummaryCollector in summary_collector.h). The collector
counts all the test cases results and appends a line to
a temporary file containing: number of all test cases,
succeeded, failed and ignored.
Then, after the tests are executed, tests-summary.sh
sums the columns and prints summary in the console.
[Verification] Build, install, run all security tests via
security-tests-all.sh and wait for summary at the very
end of script output.
Change-Id: Id44cfb90acbc426e17e1971807e6eef0496c7805
Lukasz Wojciechowski [Mon, 9 Dec 2013 15:01:45 +0000 (16:01 +0100)]
Add security server password test that assures absence of retry timeout check
[Issue#] SSDWSSP-709
[Feature/Bug] Need for a new test after removal of retry timeout check.
[Problem] Rapid password check sequences should be possible.
[Cause] Protect from regression.
[Solution] Added new test tc43_security_server_no_retry_timeout.
[Verification] Succesfull build and run of tests:
security-tests.sh ss-password --output=text
Change-Id: Iba375858fd6d158212058b0ced7b26ac9c5c8e84
Bartlomiej Grzelewski [Fri, 13 Dec 2013 17:38:40 +0000 (18:38 +0100)]
Fix tests in security-server-test-client smack.
[Issue#] 724
[Bug/Problem] Enabling socket labels in security-server crashes some
tests.
[Cause] Test cases did not set up smack labels.
[Solution] Fix set up of smack labels.
[Verification] Build, run tests.
Change-Id: I6c56e8df90d47c7d183fa2ac279c157682d0103f
Lukasz Wojciechowski [Mon, 18 Nov 2013 09:53:46 +0000 (10:53 +0100)]
Sqlite3 support for tests. Libprivilege tests: check database
records instead of existance of files.
[Issue#] SSDWSSP-644
[Feature] Tests need database records access
[Cause] Tests should verify libprivilege actions by
checking database records
[Solution] Sqlite3 access API, tests use database instead
of files
[Verification] Build security-tests, run two following
libprivilege-control tests on target:
privilege_control04_add_permissions_nosmack,
privilege_control11_app_enable_permissions_nosmack.
Change-Id: I0c229f67a6791e9f8f850494eedebc925cf63ad3
Bartlomiej Grzelewski [Thu, 12 Dec 2013 19:13:23 +0000 (20:13 +0100)]
Fix tests after bugfix in security-server code.
[Issue#] SSDWSSP-708
[Feature/Bug] Some tests in security_server_tests_password suite were
failing.
[Cause] Behavior of security-server in version 115 changed.
[Solution] Adjusted tests to the new behavior of security-server.
[Verification] Build, install and run security-server-tests-password -
all tests should pass.
Change-Id: I55da674b596446e24e61ec81a6dd99c1fc4136c2
Pawel Polawski [Mon, 4 Nov 2013 14:39:50 +0000 (15:39 +0100)]
Added test cases for SMACK L-access mode
[Issue#] SSDWSSP-502
[Bug/Feature] Verify if L-access mode is working on private images
[Cause] Missing tests for L-access mode
[Solution] Tests for L-access mode added
[Verification] Compile, run tests. They are included to smack tests
Change-Id: I54bbc7b2f3bf235091d98c7b4ea87febd546ba97
Bartlomiej Grzelewski [Mon, 2 Dec 2013 11:08:04 +0000 (12:08 +0100)]
Simple interface for set up rules.
Add classes to smack rules managment.
Refactoring of security_server_tests*.
[Issue#] N/A
[Problem] People set wrong privileges in tests.
[Cause] N/A
[Solution] Create class to help them set proper smack rules.
[Verification] Build, run tests.
Change-Id: Icab5a8f54be9c46ee69fba59f4503d8b4c99b852
Pawel Broda [Wed, 6 Nov 2013 08:28:12 +0000 (09:28 +0100)]
Fix for failing test (smack05_self_label) in libsmack test suite
[Issue#] SSDWSSP-601
[Bug] smack05_self_label in libsmack test suite failed.
Additionally, this fix provides the same smack
labels "_" no matter what type of connection is
used to communicate with the target (ssh or sdb).
[Cause] Smack execute label on /usr/bin/libsmack-test is not
always the same. It depends on the connection type
during istallation.
ssh names it "_" and sdb names it "sdbd".
[Solution] Create "packaging/security-test.manifest" file.
[Verification] Build, install, run test.
Change-Id: Id1cab6bb7d069e4eb8aa068d792e8344613c6986
Michal Witanowski [Thu, 7 Nov 2013 16:44:35 +0000 (17:44 +0100)]
Security server test cases fix
[Issue#] SSDWSSP-604
[Bug/Feature] Two test cases in security_server_test_server.cpp
(tc_ask_for_privilege_with_default_cookie_normal[...]
- now tc_cookie_check_groups_privilege_positive
and tc05_check_API_middleware_allow) were failing
when connecting to a device via SDB.
[Cause] SDB has different enviroment configuration than SSH.
Launching an application via SSH makes it belong to
3 groups ("audio" is one of them), while SDB doesn't.
These two test cases assume that the process belongs
to "audio" group, so launching them via SDB causes
they fail.
[Solution] Add "audio" group to the test's process before
running the test cases (see add_process_group and
remove_process_group).
[Verification] Build, install and run security server tests. The following
test cases, affected by this commit, should pass:
tc_cookie_check_groups_privilege_negative
tc_cookie_check_groups_privilege_positive
tc_ask_for_privilege_with_default_cookie_case_with_wrong_cookie
tc05_check_API_middleware_allow
tc06_check_API_middleware_denied
tc05_check_API_middleware_allow_nosmack
Change-Id: I47a0f4a3715ade527ea9db048f98a1206aefd51a
Michal Witanowski [Wed, 13 Nov 2013 14:55:16 +0000 (15:55 +0100)]
Fix tc03_check_API_passwd_allow
[Issue#] SSDWSSP-559
[Bug/Feature] tc03_check_API_passwd_allow was failing randomly.
[Cause] SS needed to be restarted after clearing
opt/data/security-server/ folder.
[Solution] Fix bugs and adapt the test case to the new security
server in both smack and non-smack test versions.
Additionally, reset_security_server() has beed moved to
security_server_clean_env.cpp.
[Verification] Build, install and run the test case.
Change-Id: I38dbe9d2ea3c18f491b40817422ed922942fd831
Damian Chromejko [Tue, 19 Nov 2013 12:15:11 +0000 (13:15 +0100)]
Add a test for libprivilege_strerror.
[Issue#] SSDWSSP-646
[Bug] N/A
[Cause] Changed API of libprivilege-control.
[Solution] Test if proper error descriptions are returned for error codes.
[Verification] Run libprivilege-control-test.
Change-Id: I0a48348e707311f593aa4b6b7065a3956b1e375d
Krzysztof Jackiewicz [Wed, 27 Nov 2013 11:06:41 +0000 (12:06 +0100)]
Security-client removed
[Issue#] N/A
[Feature/Bug] N/A
[Problem] Security-client is outdated and no longer used
[Cause] N/A
[Solution] Removed
[Verification] Successfull compilation
Change-Id: I5a789109be4c4fed1c239938f9a034b7943fd3cb
Pawel Polawski [Wed, 9 Oct 2013 10:08:18 +0000 (12:08 +0200)]
Rearrange tests for cookies
[Issue#] SSDWSSP-493
[Bug/Feature] Put SS cookie api tests together
[Cause] Tests are scattered in to many files
[Solution] All cookie api tests are now together
[Verification] Compile, run tests. 3 of them should fail due to
disabled full SMACK protection of SS API.
New tests are included in security-server-server.
To run them use "security-tests.sh ss-server
--output=text"
Change-Id: I845fa0e1669914eb34c91600799b8defc2da0368
Bartlomiej Grzelewski [Tue, 26 Nov 2013 10:03:17 +0000 (11:03 +0100)]
Remove test of security_server_get_object_name.
Function security_server_get_object_name will be removed from
security-server.
[Issue#] N/A
[Bug/Problem] Tests of deprecated/unused api.
[Cause] N/A
[Solution] Test were removed.
[Verfication] Build, run tests.
Change-Id: Iba39345e8fa6a109c6284d99e4c2eee73d2f9720
Lukasz Kostyra [Mon, 18 Nov 2013 09:56:46 +0000 (10:56 +0100)]
Add new test cases. Correct old tests with history.
[Issue#] N/A
[Feature] Add new test cases that check other unusual situations in security-server
password service. Correct previous tests due to recently found bug related to
incorrect history management.
[Cause] N/A
[Solution] Add tc41 and tc42 test cases. Fixing aforementioned bug changed logic in previous
test cases. This commit fixes those tests aswell.
[Verification] Build, install, run security-server-tests-password --output=text. With new password
service ( http://slp-info.sec.samsung.net/gerrit/#/c/289969/) all tests should pass
Change-Id: I1721c6037f6e2069dcfed7c41c86d2b0021b1353
Bartlomiej Grzelewski [Thu, 21 Nov 2013 13:29:20 +0000 (14:29 +0100)]
Fix broken tests for security-server.
[Issue#] N/A
[Feaute/Bug] N/A
[Cause] Test in security-server test suite was too long.
[Problem] Sometimes tests failes because of timeout.
[Verification] Build, run tests.
Change-Id: I75461afa810a66707624119e123793aa6ef5aad5
Pawel Polawski [Mon, 22 Jul 2013 09:39:26 +0000 (11:39 +0200)]
Added security server stress tests
[Issue#] SSDWSSP-250
[Bug/Feature] N/A
[Cause] Missing stress tests for security server
[Solution] Stress tests added
[Verification] New tests should be avaible after compilation.
They are available through security-server-tests-stress
binary. It is also caled by security-tests-all.sh,
or using security-tests.sh with ss-stress parameter.
Change-Id: I8688d7326c201482928688407c42ff1adf8b4c7f
Zbigniew Jasinski [Wed, 30 Oct 2013 15:57:41 +0000 (16:57 +0100)]
Tests for new Security Server security_server_open_for function.
This function allows to create, if doesn't exist, or open existing file by
Security Server on behalf of calling process in secured directory.
[Issue#] SSDWSSP-398
[Bug/Feature] New SS API function.
[Cause] DataControl issues.
[Solution] Proposal for DataControl issues.
[Verification] Build and run new tests.
Change-Id: I86303926a53092fdcc1c14599bfbfc81cb91e8bc
Marcin Lis [Thu, 3 Oct 2013 14:20:27 +0000 (16:20 +0200)]
Add new Libprivilege and Security-Server API tests.
[Issue#] SSDWSSP-527
[Feature] N/A
[Cause] New API for checking app permission assignment created.
[Solution] Use new API functions in libprivilege-tests and
security-server-tests-server.
Also tc09 and tc10 in ssts are now corrected.
[Verification] Build, install & run tests.
Change-Id: I4fe8b9f3699f60f7a63d92332ba5fa910ca2400d
Marek Smolinski [Tue, 24 Sep 2013 06:24:45 +0000 (08:24 +0200)]
Remove hardcode uid's & gid's
[Issue#] SSDWSSP-532
[Feature/Bug] N/A
[Cause]
[Solution] Add gid's & uid's in common header
[Verification] Build, run tests
Change-Id: I80aae956613896de6f19f82b417cd3a54214a08e
Michal Witanowski [Thu, 17 Oct 2013 12:20:13 +0000 (14:20 +0200)]
Add new test cases for password service v2 for better error checking.
[Issue#] SSDWSSP-593
[Bug/Feature] Add new test cases in order to test security server
behavior in various scenarios.
[Cause] N/A
[Solution] The following test cases have been created:
- tc34_security_server_max_attempts
- tc35_security_server_decrease_max_attempts
- tc36_security_server_challenge_history_passwords
- tc37_security_server_challenge_mixed
- tc38_security_server_history_depth_change
- tc39_security_server_attempts_num_check_after_reset
- tc40_security_server_history_check_after_reset
[Verification] Build, install and run security server's password
tests. All of them should pass without any problems
under new SS (which can be found here:
http://slp-info.sec.samsung.net/gerrit/#/c/289969/).
Change-Id: Ic72a564d49d6919ac3a376cd821bdcdf71940d81
Lukasz Kostyra [Tue, 24 Sep 2013 07:28:08 +0000 (09:28 +0200)]
Adapt security-server tests to new SS password service
[Issue#] N/A
[Bug] N/A
[Cause] Incorrect return values expected by asserts.
[Solution] Correct return values expected by asserts.
[Verification] Build, install, run security-server-tests-password. All tests should pass.
Change-Id: I351655de0e4e3d76b737a38c226d933e878aafa5
Piotr Bartosiewicz [Tue, 12 Nov 2013 16:46:49 +0000 (17:46 +0100)]
Fix set_app_privilege tests
[Issue#] N/A
[Bug/Feature] privilege_control05_set_app_privilege tests fails
[Cause] perm_end fails after perm_app_set_privilege call
[Solution] Remove transaction around perm_app_set_privilege calls
[Verification] Build, install, run tests
Change-Id: Ida1b94eff78180a217f9410f1d168d75a43179e3
Piotr Bartosiewicz [Fri, 18 Oct 2013 14:04:43 +0000 (16:04 +0200)]
Fix libprivilege-control nosmack tests
[Issue#] SSDWSSP-581
[Bug] Many of libprivilege tests fail on nosmack kernel
[Cause] The test cases are not adjusted to the new version of
libprivilege.
[Solution] Don't use deprecated APP_TYPE_OTHER; use DB_BEGIN,
DB_END, perm_app_install, where it is expected; don't
check SMACK_RULES_DIR dir while it is not used amymore.
[Verification] Build, install (with new libprivilege) and check on
smack and no-smack version of kernel.
Change-Id: I8bbf53857c9f1b69a0f40e606c0e9fe795ab0ba2
Marcin Niesluchowski [Mon, 28 Oct 2013 15:27:36 +0000 (16:27 +0100)]
Fixing security-server client nosmack tests.
[Issue#] SSDWSSP-603
[Bug/Feature] Security-server client smack tests fail.
[Cause] Incorrect and redundant use of smack_set_label_for_self function.
[Solution] Separating tests for smack enabled and disabled removing unwanted
functions.
[Verification] Running tests. All security-server client tests *_get_uid_* and
*_get_gid_* tests should pass.
Change-Id: Iee48bc2e3bddc7f23cd9392febe385a8021a373a
Marcin Lis [Fri, 25 Oct 2013 08:38:05 +0000 (10:38 +0200)]
Upgrade libsmack npruntime tests.
[Issue#] SSDWSSP-599
[Feature] N/A
[Cause] libprivilege-control and smack-privilege-config changed.
[Solution] Test case nr 20 changed from general to SMACK version, few
instructions added. New NOSMACK version of this test case is
now created.
[Verification] Build, install and run tests including the following commits:
http://slp-info.sec.samsung.net/gerrit/#/c/315582/
http://slp-info.sec.samsung.net/gerrit/#/c/315493/
Run tests on target without smack also.
Change-Id: Id156de668557d590155970e8b91145cf8a5217f9
Marcin Lis [Wed, 23 Oct 2013 10:44:29 +0000 (12:44 +0200)]
Implement test for adding new WRT rules in libprivilege-control
[Issue#] SSDWSSP-599
[Feature] New test for perm_app_setup_path with
new option PERM_APP_PATH_RUNTIME.
[Cause] New functionality.
[Solution] New test case nr 20 in libprivilege tests.
Currently ignored tc 20 switched to tc 21.
[Verification] Build, install, run:
# libprivilege-control-test --output=text
Verify that tc20 npruntime is passing and no
other test cases are affected.
Synchronize libprivilege with the following commit:
http://slp-info.sec.samsung.net/gerrit/#/c/314185/
Change-Id: I468a6091997d608ff2b10ebd893b88fca8bf641f
Piotr Bartosiewicz [Tue, 8 Oct 2013 14:51:06 +0000 (16:51 +0200)]
Checking whether required application is installed
[Issue#] SSDWSSP-573
[Bug/Feature] Poor assertion message when wrt or osp application is
not installed correctly.
[Cause] Tested process calls exit so there is printed useless
message 'Reading pipe error'.
[Solution] Additional checks are added before api call.
[Verification] Build, install, run tests.
Change-Id: Ia25efb5d8d5ca6450277d11b84b5345efa92a636
Lukasz Kostyra [Thu, 12 Sep 2013 08:32:22 +0000 (10:32 +0200)]
Add antivirus privilege test cases
[Issue#] SSDWSSP-491
[Feature] Add test cases checking if AV has access to every type of folders set by
perm_app_setup_path - GROUP_RW, SETTINGS_RW, PUBLIC_RO. Both SMACK and NOSMACK
version of tests was added.
[Cause] N/A
[Solution] N/A
[Verification] Build and run libprivilege-control-test. Test should pass both on SMACK and NOSMACK
environment.
Change-Id: Ie073095f4ca78e86f9d7a7e1d5ec5e7014229504
Marcin Lis [Tue, 24 Sep 2013 10:49:23 +0000 (12:49 +0200)]
Add DB::Transaction class. Change tests to use new libprivilege API.
[Issue#] SSDWSSP-183
[Bug/Feature] N/A
[Cause] N/A
[Solution] Added class DB::Transaction which opens and closes transaction.
Added macros DB_BEGIN and DB_END that determine DB::Transaction
class object lifetime which in turn start and commit
db transactions.
Also macros used in tests to reduce test-execution time.
[Verification] Build, install, run tests.
Change-Id: I90b48c27e352fb24e9c57ec7b1bb9005d8f0fd2d
Jan Cybulski [Wed, 2 Oct 2013 13:28:39 +0000 (15:28 +0200)]
Add README file
[Issue#] SSDWSSP-528
[Bug/Feature] Added README file.
[Cause] N/A
[Solution] N/A
[Verification] N/A
Change-Id: I450c156bc8a133808babd7321ef9e4ddc11e5553
Marcin Niesluchowski [Mon, 23 Sep 2013 15:25:02 +0000 (17:25 +0200)]
Fixing client smack tests.
[Issue#] SSDWSSP-543
[Bug/Feature] Root privileges are dropped in main test process and remaining
tests in SECURITY_SERVER_TESTS_CLIENT_SMACK group run with them
and fail when line with RUNNER_IGNORED_MSG deleted.
[Cause] Changing test macros from RUNNER_CHILD* to RUNNER_MULTIPROCESS*
on one smack and one nosmack test resulted in passing dropped
root privileges in main process to tests run after those. Those
privileges were held by RUNNER_CHILD* macros.
[Solution] Keeping that macros for collecting result puposes and running
both processes droping root privilege in child.
[Verification] Building and running security-tests.sh ss-clientsmack. No tests
should fail.
Change-Id: I7b1b4974dedd9a9d1d96e952411aa01cd4f3399b
Marcin Lis [Fri, 20 Sep 2013 11:55:21 +0000 (13:55 +0200)]
Compilation flags 'verbose' mode
[Issue#] SSDWSSP-496
[Bug/Feature] N/A
[Cause] Potential bug - CMAKE_VERBOSE_MAKEFILE is not turned ON in
packaging spec file, so the default value is used.
[Solution] Turn ON the flag explicitly.
Also, now it is possible to choose "built_type" using gbs.
[Verification] Build, verify that compile flags passed to gcc are visible
using different build types (in gbs: --define "build_type ...").
Change-Id: I16dc7e13c86de27617f742ebb360f77cf81a4a16
Marcin Lis [Thu, 19 Sep 2013 08:58:36 +0000 (10:58 +0200)]
Remove useless nosmack tests
[Issue#] N/A
[Bug/Feature] Clean up tests.
[Cause] Some tests use deprecated or not implemented
functions from libprivilege API.
[Solution] Two test cases removed.
[Verification] Build, install, run tests.
Change-Id: I47f51f404a128a9517ef02b7a2af70faaed14d9c
Krzysztof Jackiewicz [Wed, 18 Sep 2013 12:35:59 +0000 (14:35 +0200)]
Big gid check fixed
[Issue#] N/A
[Feature/Bug] N/A
[Problem] Failing test tc04_security_server_check_privilege_weird_input_case
[Cause] Test was checking if big (>2^16) gid values are acceptable, but there
was no privilege for given gid.
[Solution] Expected value changed from SECURITY_SERVER_API_SUCCESS to
SECURITY_SERVER_API_ERROR_ACCESS_DENIED.
[Verification] Run tests. tc04_security_server_check_privilege_weird_input_case should pass.
Change-Id: Ibc7e624cfceb6d9018b685fb83340e693bcf93e0
Bartlomiej Grzelewski [Wed, 18 Sep 2013 13:28:05 +0000 (15:28 +0200)]
Fix tests scripts.
[Issue#] N/A
[Bug] Test scripts failed.
[Cause] security-server-tests-label has been removed.
[Solution] remove call of security-server-test-label from scripts.
[Verification] Build, run tests.
Change-Id: I72bcbdc0970c2b4080279abe4d98f6539ed8ae81
Zofia Abramowska [Fri, 13 Sep 2013 18:15:29 +0000 (20:15 +0200)]
Clean up libprivilege-control test cases
[Issue#] N/A
[Bug/Feature] N/A
[Cause] All test cases were in one file of 4200 lines.
[Solution] Divided test cases by functionalities tested :
normaln, nosmack, incorrect parameters, stress tests. Put them
in different source files, removed unused includes and macros,
created commons containing macros/functions used by different tests.
Created RUNNER GROUP for every funcionality.
[Verification] Build. Run libprivilege-control-test --output=text
--runignored - all tests should pass except for 4 ignores.
Change-Id: Iaf905e0cdcda043974958d294cc85e60e8d40752
Zofia Abramowska [Wed, 11 Sep 2013 15:03:27 +0000 (17:03 +0200)]
Moving ss-label to ss-client-smack
[Issue#] N/A
[Feature/Bug] N/A
[Cause] Unnecessary separate binary for one test.
[Solution] Moved ss-label to ss-client-smack test cases.
[Verification] Build. Install. Run ss-client-smack (should be 8
passing tests).
Change-Id: I63e194dfa3eae7f07ead130f85820ecf018a5e19
Bartlomiej Grzelewski [Tue, 10 Sep 2013 15:19:29 +0000 (17:19 +0200)]
Fix tests for new api get_cookie_gid/get_cookie_uid.
[Issue#] N/A
[Bug] N/A
[Problem] Test did not work.
[Solution] N/A
[Verification] Build, run tests security-server-tests-client-smack
Change-Id: If94615d5481386cfda6f6c45aa70b3bcc318988f
Pawel Polawski [Mon, 9 Sep 2013 17:01:46 +0000 (19:01 +0200)]
Added test cases for new security server API
[Issue#] Test cases for get_gid, get_uid API
[Bug/Feature] New test cases
[Cause] New API added and need tests
[Solution] New tests added
[Verification] Compile, run tests
Change-Id: I846ba6934aa47be0033bcd706e5ac6391936998a
Bartlomiej Grzelewski [Thu, 12 Sep 2013 09:52:58 +0000 (11:52 +0200)]
Turn on -Werror flag during compilation.
[Issue#] N/A
[Bug] N/A
[Problem] New code adds compilation warnings.
[Solution] Warnings will be treated as errors.
[Verification] Successful build.
Change-Id: I2edd170f5ed3bbe4fcb189579274908ae76ec1f5
Marcin Niesluchowski [Tue, 27 Aug 2013 16:42:37 +0000 (18:42 +0200)]
Changing tests to run properly on RUNNER_MULTIPROCESS_TEST macro.
[Issue#] SSDWSSP-438
[Bug/Feature] While failing, test case exits with several processes. Tests
are duplicated.
[Cause] No multiprocessing assert handling.
[Solution] Adding new test case types to wrt-commons:
http://slp-info.sec.samsung.net/gerrit/#/c/267716/
[Verification] Building wrt-commons and running tests. If failing, shold exit
properly (one process at the end of the test case).
Change-Id: Ib373141bdf577c00cf1c66fe54ad97e0d3e2701c
Jan Olszak [Thu, 29 Aug 2013 16:22:33 +0000 (18:22 +0200)]
Tests of new implementation of libprivilege.
[Issue#] SSDWSSP-183
[Problem] Tests for new implementation of libprivilege failed
[Cause] N/A
[Solution] N/A
[Verification] Build and run tests.
Change-Id: I08eb090eaaf327e4b66b9554676e9e2c5e54e81d
Krzysztof Jackiewicz [Wed, 4 Sep 2013 15:31:13 +0000 (17:31 +0200)]
Additional asserts for ~APP~ label
[Issue#] N/A
[Feature/Bug] N/A
[Problem] Currently it is possible to use ~APP~ as a label
[Cause] smack_label_is_valid has been adjusted to allow such label for new
features but it's also used elsewhere
[Solution] Test cases extended to cover such situation
[Verification] Launch tests. Tests 21f-21j will fail. They should all pass
after libprivilege is fixed
Change-Id: I530f1939ec6ad4f3b9232aa1492fe5a81989bec4
Marcin Lis [Fri, 30 Aug 2013 10:45:29 +0000 (12:45 +0200)]
Correct tests due to change in Security Server password validity calculation
[Issue#] SSDWSSP-332
[Bug] Two tests fails after correction in Security Server
[Cause] Test cases tc10 and tc18 use UINT_MAX as a value of valid_days
for password setting. This value is now rejected by SS pwd,
because it causes overflow when changing number of days to
seconds.
[Solution] Checking if UINT_MAX is correctly rejected when trying to set pwd
Added calculation of proper max number of valid days that will
not cause unsigned int overflow while changing to seconds.
[Varification] Build and run tests.
Change-Id: I25139243d11eba4eb58e79db0fc3b869eedb26e6
Marcin Lis [Wed, 21 Aug 2013 15:49:51 +0000 (17:49 +0200)]
Create stress test for libprivilege-control API
[Issue#] SSDWSSP-405
[Feature] New stress tests
[Cause] This kind of test did not exist previously
[Solution] Two test cases added:
* Install and uninstall the same app 100 times, each time
app gets some privileges (to shared folders & from api features)
* Install and uninstall set of 10 apps 10 times.
Installed applications have various kind of permissions
to each other from api-features and shared folders.
[Verification] Build and run all tests:
* Previous tests should not be affected
* New test case should pass.
Change-Id: I5003981456f502a89e334e320e89500fb4647a7f
Lukasz Kostyra [Wed, 28 Aug 2013 08:31:53 +0000 (10:31 +0200)]
Remove compilation warnings from libprivilege-control tests
[Issue#] SSDWSSP-482
[Bug] Libprivilege-control tests displayed warnings during compilation.
[Cause] N/A
[Solution] Replace deprecated functions with their replacements, supress warnings for functions
that have no replacements, remove other warnings.
[Verification] Build package - no warnings should appear. Run libprivilege-control-tests, all tests
should pass just as they did earlier.
Change-Id: I41e2f69ad7fb1ff38b04eb7bcdfefcb7248fc0a9
Lukasz Kostyra [Tue, 13 Aug 2013 06:06:07 +0000 (08:06 +0200)]
Add security-server tests for NOSMACK environment.
[Issue#] SSDWSSP-417
[Feature] Add new security-server tests that test security-server behaviour on NOSMACK
environment.
[Cause] When previous tests were launched on NOSMACK environment they returned false errors
because the system behaved differently with SMACK turned off.
[Solution] Creating new tests that would expect different behaviour from security-server.
[Verification] After successful compilation launch security-server tests on NOSMACK environment.
Tests that previously failed and were turned off in one of my previous commits
should appear with "_nosmack" ending in name.
Change-Id: I8c03ed8d97ff970f684466f6927a6e01f0c43d46
Lukasz Kostyra [Wed, 7 Aug 2013 13:18:06 +0000 (15:18 +0200)]
Add libsmack tests for NOSMACK environment.
[Issue#] SSDWSSP-417
[Feature] Add new libsmack tests that test libsmack behaviour on NOSMACK environment.
[Cause] When previous tests were launched on NOSMACK environment they returned false errors
because the system behaved differently with SMACK turned off.
[Solution] Creating new tests that would expect different behaviour from libsmack.
[Verification] After successful compilation launch libsmack tests on NOSMACK environment.
Tests that previously failed and were turned off in one of my previous commits
should appear with "_nosmack" ending in name.
Change-Id: I8a8df3d92efb2a373aeef10c73c24e635d85229f
Lukasz Kostyra [Wed, 7 Aug 2013 14:38:35 +0000 (16:38 +0200)]
Add libprivilege-control tests for NOSMACK environment.
[Issue#] SSDWSSP-417
[Feature] Add new libsprivilege-control tests that test libprivilege-control behaviour on
NOSMACK environment. Remove stub test cases used to test macros for different
testing environments.
[Cause] When previous tests were launched on NOSMACK environment they returned false errors
because the system behaved differently with SMACK turned off.
[Solution] Creating new tests that would expect different behaviour from libprivilege-control.
[Verification] After successful compilation launch libprivilege-control tests on NOSMACK env.
Tests that previously failed and were turned off in one of my previous commits
should appear with "_nosmack" ending in name.
Change-Id: Ib15fcf5b6a7d60b55aef596c17475f170bfe4a1b
Lukasz Kostyra [Thu, 18 Jul 2013 11:14:44 +0000 (13:14 +0200)]
Add test cases which check libprivilege-control params
[Issue#] SSDWSSP-376
[Feature] Test cases which call libprivilege-control functions with incorrect arguments.
[Cause] Many libprivilege-control API functions didn't check for incorrect arguments and
could cause crashes this way.
[Solution] A new test cases were added: one for regular API functions, one for deprecated API
functions, one for not completed API functions (the latter one is ignored).
[Verification] Run libprivilege-control-test.
Change-Id: I911cc58c3acb2883c41a8e31360010ce57ace1f7
Bartlomiej Grzelewski [Thu, 18 Jul 2013 13:01:56 +0000 (15:01 +0200)]
Update tests after wrt-commons path.
Wrt-commons supports RUNNER_IGNORE_MSG in child test now.
[Issue#] N/A
[Bug] N/A
[Problem] N/A
[Solution] N/A
[Verification] Build & run.
Change-Id: I821e86e0057bc09ad2dca3441dc6871cbe0dcafd
Marcin Lis [Wed, 21 Aug 2013 15:46:59 +0000 (17:46 +0200)]
Correct api-feature tests
[Issue#] SSDWSSP-405
[Bug] Bad string formats
[Cause] Bug in libprivilege
[Solution] Removed incorrect characters " ------" form checks
[Verification] Build and run all tests
Change-Id: I906756a14bfc8a136338778464e7e430c7747495
Marcin Lis [Fri, 2 Aug 2013 11:00:11 +0000 (13:00 +0200)]
Remove unused test for PID reusage
[Issue#] SSDWSSP-423
[Bug/Feature] -
[Cause] This test suite is no longer needed
[Solution] Removing files and build entries associated with this test
suite
[Verification] Build and run all tests.
Verify that the test suite: security-server-tests-pid-reuser
is no longer present in test scripts and system binaries.
Change-Id: I9448fc298c64c8aad451441e9eff949d0222a898
Jan Cybulski [Thu, 25 Jul 2013 09:42:58 +0000 (11:42 +0200)]
Adapt tests for a new libsmack API
[Issue#] SSDWSSP-433
[Bug] N/A
[Cause] Changed API of libsmack.
[Problem] Function smack_new_label_from_socket() is now returning value greater than 0 on success, not 0 as it was before.
[Solution] Changes of expected function results
[Verification] Run tests.
Change-Id: I713319cddd53306be609e4dc33fdf7c2b74f457a
Marcin Niesluchowski [Thu, 8 Aug 2013 12:20:43 +0000 (14:20 +0200)]
Changing security-server tests to match no empty password string case.
New empty password given should return SECURITY_SERVER_API_ERROR_INPUT_PARAM.
[Issue#] SSDWSSP-422
[Bug/Feature] Security-server empty password issue was unclear.
[Cause] N/A
[Solution] N/A
[Verification] Run ss-password tests based on security-server
http://slp-info.sec.samsung.net/gerrit/#/c/259876/ commit.
Change-Id: Iaa44daba668f7aa1149e0c55adf993504eec8c07
Lukasz Kostyra [Wed, 31 Jul 2013 09:26:37 +0000 (11:26 +0200)]
Split existing tests into environment categories.
[Issue#] SSDWSSP-416
[Feature] Split existing tests into two categories: those that pass only on SMACK environment
and those that pass no matter if SMACK exists on the system or not.
[Cause] Launching tests on NOSMACK environment caused them to fail, because the environment
behaved differently when SMACK was turned off. Failing tests expected different
results than they should have.
[Solution] Using recently added macros RUNNER_TEST_SMACK and RUNNER_CHILD_TEST_SMACK tests were
split into two categories mentioned above in Feature section.
[Verification] Run tests on an image with SMACK turned on and off. There should be less tests on an
environment with SMACK turned OFF, others should pass (or fail) just as they do with
SMACK turned on.
Change-Id: Ic313214eb578ce00f2156d434cd8358ad526c03f
Lukasz Kostyra [Fri, 19 Jul 2013 09:51:51 +0000 (11:51 +0200)]
Add test case macros for different environments
[Issue#] SSDWSSP-415
[Feature] Adds test case macros - RUNNER_TEST_SMACK, RUNNER_TEST_NOSMACK,
RUNNER_CHILD_TEST_SMACK and RUNNER_CHILD_TEST_NOSMACK for different testing
environments.
[Cause] Tests that fail when launched on NOSMACK environment
[Solution] Create macros that will launch tests only on SMACK or NOSMACK environment.
[Verification] Run libprivilege-control-test. Tests 24a and 24c should appear on SMACK environment,
tests 24b and 24d should appear on NOSMACK environment.
Change-Id: I2cb9a5bd6aa9634e019726eb536744f3c9e43288
Pawel Polawski [Sat, 27 Jul 2013 12:17:22 +0000 (14:17 +0200)]
Tests for new security server permissions API
[Issue#] SSDWSSP-155
[Bug/Feature] New API added to SS
[Cause] New API has no tests
[Solution] New tests added
[Verification] Test number incresed by two new one
Change-Id: I2bf27b7e99f3f10fd1e404cf7437a21b9199f477
Bartlomiej Grzelewski [Thu, 1 Aug 2013 14:20:27 +0000 (16:20 +0200)]
Fix security-server-tests.
[Issue#] N/A
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build. Run tests.
Change-Id: Ia338f400cf05bf4c01990ad853b6135b15c0fd61
Jan Cybulski [Thu, 1 Aug 2013 08:02:46 +0000 (10:02 +0200)]
Test for enabling permissions for EFL apps
[Issue#] SSDWSSP-436
[Feature] Tests for privileges efl applications.
[Cause] Adding EFL app type in libprivilege-control.
[Solution] Simple testing wether perm_app_enable_permissions works with APP_TYPE_EFL.
[Verification] Run the tests.
Change-Id: I36370e78f97670ee5185d843d862aefea6f824e0
Rafal Krypa [Fri, 26 Jul 2013 11:14:38 +0000 (13:14 +0200)]
libprivilege-control-tests: adjust tests for kernel with l access mode support.
[Issue#] SSDWSSP-372
[Bug] Tests fail on kernel with sixth access mode for locks.
[Cause] Modification to kernel extend Smack interface.
[Solution] Adjust permissions in test, test for new mode.
[Verification] Run the tests.
Change-Id: I8e4edafa6617955deca9968eaca8b24ff86c3fe4
Rafal Krypa [Tue, 23 Jul 2013 11:44:30 +0000 (13:44 +0200)]
libsmack-tests: adjust tests for kernel with l access mode support.
[Issue#] SSDWSSP-372
[Bug] Tests fail on kernel with sixth access mode for locks.
[Cause] Modification to kernel extend Smack interface.
[Solution] Adjust permissions in test, test for new mode.
[Verification] Run the tests.
Change-Id: Iab81162c53960f0ad110a46ca0e0fffd9aa6f045
Rafal Krypa [Wed, 24 Jul 2013 14:49:08 +0000 (16:49 +0200)]
libprivilege-control-tests: adjust path to SMACK_STARTUP_RULES_FILE.
[Issue#] SSDWSSP-372
[Bug] Test case privilege_control20_early_rules fails.
[Cause] Implementetion of early rules in libprivilege-control has changed.
[Solution] Adapt the test case.
[Verification] Run libprivilege-control-tests with changed libprivilege-control.
Change-Id: I42511e68e923f5a28b77fc8f24932998d02cc7fa
Bartlomiej Grzelewski [Fri, 19 Jul 2013 16:13:26 +0000 (18:13 +0200)]
Remove tests connected with app_give_access func.
[Issue#] N/A
[Bug] N/A
[Cause] Function was removed from libprivilege-control.
[Solution] Tests must be revoved to prevent build break.
[Veryfication] Build.
Change-Id: I0d64124380e74fdfdd3460311088b4199bf77ff4
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