Log details when executor fails to open the sandboxee binary

PiperOrigin-RevId: 330680717
Change-Id: I4ec855861196177321783dc94f2e05a28e84d512
This commit is contained in:
Kevin Hamacher 2020-09-09 02:12:05 -07:00 committed by Copybara-Service
parent 776e34502a
commit 1f8e88586b

View File

@ -86,7 +86,7 @@ pid_t Executor::StartSubProcess(int32_t clone_flags, const Namespace* ns,
if (!path_.empty()) { if (!path_.empty()) {
exec_fd_ = open(path_.c_str(), O_PATH); exec_fd_ = open(path_.c_str(), O_PATH);
if (exec_fd_ < 0) { if (exec_fd_ < 0) {
LOG(ERROR) << "Could not open file " << path_; PLOG(ERROR) << "Could not open file " << path_;
return -1; return -1;
} }
} }