Searched refs:fail_fn (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/jni/ |
D | fd_utils.cpp | 156 static FileDescriptorInfo* CreateFromFd(int fd, fail_fn_t fail_fn); 162 void ReopenOrDetach(fail_fn_t fail_fn) const; 188 void DetachSocket(fail_fn_t fail_fn) const; 194 FileDescriptorInfo* FileDescriptorInfo::CreateFromFd(int fd, fail_fn_t fail_fn) { in CreateFromFd() argument 199 fail_fn(android::base::StringPrintf("Unable to stat %d", fd)); in CreateFromFd() 207 fail_fn("Unable to get socket name"); in CreateFromFd() 211 fail_fn(android::base::StringPrintf("Socket name not whitelisted : %s (fd=%d)", in CreateFromFd() 242 fail_fn(android::base::StringPrintf("Unsupported st_mode for FD %d: %s", fd, mode.c_str())); in CreateFromFd() 248 fail_fn(android::base::StringPrintf("Could not read fd link %s: %s", in CreateFromFd() 254 fail_fn(std::string("Not whitelisted : ").append(file_path)); in CreateFromFd() [all …]
|
D | com_android_internal_os_Zygote.cpp | 432 static void SetGids(JNIEnv* env, jintArray managed_gids, fail_fn_t fail_fn) { in SetGids() argument 439 fail_fn(CREATE_ERROR("Getting gids int array failed")); in SetGids() 443 fail_fn(CREATE_ERROR("setgroups failed: %s, gids.size=%zu", strerror(errno), gids.size())); in SetGids() 451 static void SetRLimits(JNIEnv* env, jobjectArray managed_rlimits, fail_fn_t fail_fn) { in SetRLimits() argument 465 fail_fn(CREATE_ERROR("rlimits array must have a second dimension of size 3")); in SetRLimits() 472 fail_fn(CREATE_ERROR("setrlimit(%d, {%ld, %ld}) failed", in SetRLimits() 536 static void EnableKeepCapabilities(fail_fn_t fail_fn) { in EnableKeepCapabilities() argument 538 fail_fn(CREATE_ERROR("prctl(PR_SET_KEEPCAPS) failed: %s", strerror(errno))); in EnableKeepCapabilities() 542 static void DropCapabilitiesBoundingSet(fail_fn_t fail_fn) { in DropCapabilitiesBoundingSet() argument 549 fail_fn(CREATE_ERROR("prctl(PR_CAPBSET_DROP, %d) failed: %s", i, strerror(errno))); in DropCapabilitiesBoundingSet() [all …]
|
D | fd_utils.h | 82 fail_fn_t fail_fn); 84 void Restat(const std::vector<int>& fds_to_ignore, fail_fn_t fail_fn); 89 void ReopenOrDetach(fail_fn_t fail_fn); 94 void RestatInternal(std::set<int>& open_fds, fail_fn_t fail_fn);
|