return false;
}
+ return true;
+}
+
+bool SetExecPermission(application_x* app) {
+ boost::system::error_code boost_error;
// Give an execution permission to the original executable
LOG(DEBUG) << "Giving exec permission to " << app->exec;
bf::permissions(bf::path(app->exec), bf::owner_all |
LOG(ERROR) << "Permission change failure";
return false;
}
+
return true;
}
Status StepCreateSymbolicLink::process() {
manifest_x* m = context_->manifest_data.get();
for (application_x* app : GListRange<application_x*>(m->application)) {
+ if (!SetExecPermission(app))
+ return Status::ERROR;
// filter out non-tpk apps as this step is run for hybrid backend too
if (strcmp("capp", app->type) != 0)
continue;
manifest_x* m = context_->manifest_data.get();
Step::Status ret = Status::OK;
for (application_x* app : GListRange<application_x*>(m->application)) {
+ if (!SetExecPermission(app))
+ return Status::ERROR;
// filter out non-tpk apps as this step is run for hybrid backend too
if (strcmp("capp", app->type) != 0)
continue;