Fixing some security-server cookie service functions to work on smack disabled.
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Mon, 28 Oct 2013 07:08:49 +0000 (08:08 +0100)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:13:23 +0000 (17:13 +0100)
commitd8bb6ff12694e7c1068bf995809e9c3bfe4a8ecd
treed439edee17a53e2bbe21fa816fc7f1f80b5e2480
parent526d2e965fa54ce5e1a5cda8e09a7ca5fd22b5d1
Fixing some security-server cookie service functions to work on smack disabled.

[Issue#]        SSDWSSP-603
[Bug/Feature]   Nosmack security-server client tests fail due to incorrect
                security-server implementation for smack disabled.
[Cause]         Security-server cookie service generates incorrect label for
                nosmack and privilegeByCookieRequest does not check for smack.
[Solution]      Changing label to empty string and adding smack_check().
[Verification]  Running nosmack security-server client tests. Test
                tc05_check_privilege_by_cookie_nosmack and
                tc_security_server_get_smacklabel_cookie_nosmack should pass.

Change-Id: Ibf1ea7976d9442c56f718f8e4ca11939391cc8cd
src/server2/service/cookie-jar.cpp
src/server2/service/cookie.cpp