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