diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2019-06-11 17:47:16 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2019-06-14 13:38:01 +0100 |
commit | 983f8a5d9c24d4e7aac6e04a4855f6b142310e69 (patch) | |
tree | e0a41bff7ba39e010bce339a41d92187b1d1e3ee /core/jni/fd_utils.cpp | |
parent | 9c2eef9841b8d9a8e71fa4923279e06b639c6506 (diff) |
Print the fd that isn't whitelisted.
Helps diagnosing issues.
Test: boots
(cherry picked from commit a83cad6ac5fab5d1536563dd29d9b5d68421e3cd)
Change-Id: I85eb5ea0e29a101ad0d4227e782778f51f614ea0
Merged-In: I6fb4d40b28233a07e679dda91978a4bdec6c2a24
Diffstat (limited to 'core/jni/fd_utils.cpp')
-rw-r--r-- | core/jni/fd_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/fd_utils.cpp b/core/jni/fd_utils.cpp index 2071b989aef7..6d10fc2b37db 100644 --- a/core/jni/fd_utils.cpp +++ b/core/jni/fd_utils.cpp @@ -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 |