}
return Status::SECURITY_ERROR;
}
- 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;