From 5b4717fce0a62ea914c3012cec1ba7637b39ccd6 Mon Sep 17 00:00:00 2001 From: "seolhee, kim" Date: Mon, 9 May 2016 14:00:30 +0900 Subject: [PATCH] Add implementations for location policy Change-Id: I11a8ba5bfdd4faa9f38d9109b626187c2da79e3e Signed-off-by: seolhee, kim --- server/location.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/location.cpp b/server/location.cpp index d02700a..6976ec7 100644 --- a/server/location.cpp +++ b/server/location.cpp @@ -14,6 +14,8 @@ * limitations under the License */ +#include + #include "restriction.hxx" #include "policy-helper.h" #include "audit/logger.h" @@ -36,6 +38,9 @@ static void CONSTRUCTOR ContributeRestrictionPolicy() int RestrictionPolicy::setLocationState(int enable) { + if (location_manager_enable_restriction(!enable) != LOCATIONS_ERROR_NONE) + return -1; + SetPolicyAllowed(context, "location", enable); return 0; } -- 2.7.4