From e8df074a73659d520920bcb62e638dcc0ff11283 Mon Sep 17 00:00:00 2001 From: "gs_.jung" Date: Wed, 23 Oct 2013 11:41:24 +0900 Subject: [PATCH 1/1] Add privilege check code. Change-Id: I0cad394115943477ad32b2aa06f2201e3b2b62c9 --- src/system/FSysSettingInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/FSysSettingInfo.cpp b/src/system/FSysSettingInfo.cpp index 751b562..786b125 100644 --- a/src/system/FSysSettingInfo.cpp +++ b/src/system/FSysSettingInfo.cpp @@ -116,6 +116,9 @@ SettingInfo::SetVolume(const String& soundCategory, int level) result SettingInfo::GetValueForPrivilegedKey(const String& key, bool& value) { + result r = _AccessController::CheckUserPrivilege(_PRV_SETTINGMANAGER_READ); + SysTryReturn(NID_SYS, r == E_SUCCESS, E_PRIVILEGE_DENIED, E_PRIVILEGE_DENIED, ("[E_PRIVILEGE_DENIED] The application does not have the privilege to call this method.")); + return _SettingInfoImpl::GetValueForPrivilegedKey(key, value); } -- 2.7.4