Merge changes Ibe91fd2d,I59e2bd9e am: b0a14f8feb
am: 4ba72d9b73
Change-Id: Ibef0d8859047a82ab6e7c339624d15ed42b289f7
This commit is contained in:
commit
9ef76bdc72
1 changed files with 3 additions and 2 deletions
|
@ -634,7 +634,6 @@ bool Service::Start() {
|
|||
if (!seclabel_.empty()) {
|
||||
scon = seclabel_;
|
||||
} else {
|
||||
LOG(INFO) << "computing context for service '" << name_ << "'";
|
||||
scon = ComputeContextFromExecutable(name_, args_[0]);
|
||||
if (scon == "") {
|
||||
return false;
|
||||
|
@ -926,7 +925,9 @@ Service* ServiceManager::MakeExecOneshotService(const std::vector<std::string>&
|
|||
std::vector<std::string> str_args(args.begin() + command_arg, args.end());
|
||||
|
||||
exec_count_++;
|
||||
std::string name = StringPrintf("exec %d (%s)", exec_count_, str_args[0].c_str());
|
||||
std::string name =
|
||||
"exec " + std::to_string(exec_count_) + " (" + android::base::Join(str_args, " ") + ")";
|
||||
|
||||
unsigned flags = SVC_EXEC | SVC_ONESHOT | SVC_TEMPORARY;
|
||||
CapSet no_capabilities;
|
||||
unsigned namespace_flags = 0;
|
||||
|
|
Loading…
Reference in a new issue