Add privilege level check for "nodisplay" attribute
authorsung-su.kim <sung-su.kim@samsung.com>
Wed, 30 Oct 2013 07:11:30 +0000 (16:11 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Thu, 31 Oct 2013 03:24:24 +0000 (12:24 +0900)
[Issue#]   N/A
[Problem]  All privileges were available for "nodisplay" attribute.
[Cause]    N/A
[Solution] Verify privilege level for using "nodisplay" attribute.
           Only available when "PARTNER" privilege level or above.

[SCMRequest] N/A
[Verification]
    1. Add "<tizen:setting nodisplay="true"/>" attribute in config.xml
    2. Try to install web app with "unknown" or "public" privilege level
    3. Widget should not be installed with privilege level violation error

Change-Id: I9d5283eca6efc2ace6b29b6cb9e3648856a724b8

src/jobs/widget_install/task_certify_level.cpp

index fd696e0..c8a8f38 100644 (file)
@@ -186,9 +186,9 @@ bool TaskCertifyLevel::checkSettingLevel(
     TaskCertifyLevel::Level level)
 {
     secureSettingMap data = {
-        {"sound-mode", Level::PARTNER}
+        {"sound-mode", Level::PARTNER},
+        {"nodisplay", Level::PARTNER}
     };
-
     FOREACH(it, m_contextData.widgetConfig.configInfo.settingsList) {
         secureSettingIter ret = data.find(DPL::ToUTF8String(it->m_name));
         if (ret != data.end()) {