Fix smack labeling for lib rpk
[platform/core/appfw/app-installers.git] / src / common / step / security / step_recover_security.cc
index c9c061a..a7a62fc 100644 (file)
@@ -79,8 +79,8 @@ Step::Status StepRecoverSecurity::RecoveryUpdate() {
   if (!HasOwnerRwOtherRoPaths(context_->GetPkgPath()))
     return Status::OK;
 
-  if (!RegisterSecurityContextForPath(
-      context_->pkgid.get(), context_->GetPkgPath(), context_->uid.get(),
+  if (!RegisterSecurityContextForPath(context_->pkgid.get(),
+      context_->pkg_type.get(), context_->GetPkgPath(), context_->uid.get(),
       context_->is_readonly_package.get(), &error_message)) {
     if (!error_message.empty()) {
       LOG(ERROR) << "error_message: " << error_message;