App-installers binaries should be run with
normal user or tizenglobalapp.
Change-Id: I0b13457e6760678fe21843a60bb98f035d5f50f8
return Status::OK;
}
+Step::Status StepConfigure::precheck() {
+ if (getuid() == 0) {
+ LOG(ERROR) << "App-installer should not run with superuser!";
+ return Status::ERROR;
+ }
+ return Status::OK;
+}
+
bool StepConfigure::SetupRootAppDirectory() {
if (context_->root_application_path.get().empty()) {
std::string root_app_path =
Status process() override;
Status clean() override { return Status::OK; }
Status undo() override { return Status::OK; }
- Status precheck() override { return Status::OK; }
+ Status precheck() override;
private:
bool SetupRootAppDirectory();