Assume privilege level as platform when partial install case 92/103592/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 9 Dec 2016 01:42:32 +0000 (10:42 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 9 Dec 2016 01:42:46 +0000 (10:42 +0900)
Change-Id: Iec93a26d11e8ebb7f9416830528a52361a530313
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/common/step/security/step_check_background_category.cc

index 696e497..3f69284 100644 (file)
@@ -196,7 +196,8 @@ void StepCheckBackgroundCategory::RemoveContextBackgroundCategories(
 
 ci::Step::Status StepCheckBackgroundCategory::process() {
   std::string str_ver(context_->manifest_data.get()->api_version);
-  ci::PrivilegeLevel privilege_level = context_->privilege_level.get();
+  ci::PrivilegeLevel privilege_level = (context_->partial_rw.get()) ?
+      ci::PrivilegeLevel::PLATFORM : context_->privilege_level.get();
   bool background_supt = GetBackgroundSupport();
   utils::VersionNumber version(str_ver);