Searched refs:kptr_restrict_file (Results 1 – 1 of 1) sorted by relevance
491 const std::string kptr_restrict_file = "/proc/sys/kernel/kptr_restrict"; in CheckKernelSymbolAddresses() local493 if (!android::base::ReadFileToString(kptr_restrict_file, &s)) { in CheckKernelSymbolAddresses()494 PLOG(DEBUG) << "failed to read " << kptr_restrict_file; in CheckKernelSymbolAddresses()500 LOG(ERROR) << "failed to parse " << kptr_restrict_file << ": " << s; in CheckKernelSymbolAddresses()512 if (IsRoot() && android::base::WriteStringToFile("1", kptr_restrict_file)) { in CheckKernelSymbolAddresses()