Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 983f8a5d authored by Nicolas Geoffray's avatar Nicolas Geoffray
Browse files

Print the fd that isn't whitelisted.

Helps diagnosing issues.

Test: boots

(cherry picked from commit a83cad6a)

Change-Id: I85eb5ea0e29a101ad0d4227e782778f51f614ea0
Merged-In: I6fb4d40b28233a07e679dda91978a4bdec6c2a24
parent 9c2eef98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -238,7 +238,7 @@ FileDescriptorInfo* FileDescriptorInfo::CreateFromFd(int fd, fail_fn_t fail_fn)
  }

  if (!whitelist->IsAllowed(file_path)) {
    fail_fn(std::string("Not whitelisted : ").append(file_path));
    fail_fn(android::base::StringPrintf("Not whitelisted (%d): %s", fd, file_path.c_str()));
  }

  // File descriptor flags : currently on FD_CLOEXEC. We can set these