security-manager: fix privilege-to-gid mapping tests 40/57040/3
authorRafal Krypa <r.krypa@samsung.com>
Thu, 14 Jan 2016 14:56:39 +0000 (15:56 +0100)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Fri, 5 Feb 2016 16:24:20 +0000 (17:24 +0100)
Verification whether privileges are correctly mapped to grouops is based
on an assumption that the privileges used (camera, location) are not mapped
to any groups in the real configuration. But recently the camera privilege has
been mapped to a group "priv_camera" on the image.
To keep the test working, it now uses a different privilege instead ("nfc") that
doesn't have a group associated to it.

Change-Id: I3cb6ae7911abb5c7efab6558ffdb8043714fbce7
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/security-manager-tests/security_manager_tests.cpp

index 52740ad4733a1c491f1b0910058b9994ec203658..1fa100ebda7d515ec290d6f2b8fe8a72a5dfc395 100644 (file)
@@ -49,7 +49,7 @@ DEFINE_SMARTPTR(tzplatform_context_destroy, tzplatform_context, TzPlatformContex
 
 static const privileges_t SM_ALLOWED_PRIVILEGES = {
     "http://tizen.org/privilege/location",
-    "http://tizen.org/privilege/camera"
+    "http://tizen.org/privilege/nfc"
 };
 
 static const privileges_t SM_DENIED_PRIVILEGES  = {