Result<Success> SetKptrRestrictAction(const BuiltinArguments&) { std::string path = KPTR_RESTRICT_PATH; if (!SetHighestAvailableOptionValue(path, KPTR_RESTRICT_MINVALUE, KPTR_RESTRICT_MAXVALUE)) { LOG(FATAL) << "Unable to set adequate kptr_restrict value!"; return Error(); } return Success(); }
#define KPTR_RESTRICT_PATH “/proc/sys/kernel/kptr_restrict”
#define KPTR_RESTRICT_MINVALUE 2
#define KPTR_RESTRICT_MAXVALUE 4
System\core\init\Security.cpp
Yes
On the android platform, the following points will be set up as 2:
/proc/sys/kernel/kptr_restrict
Yes
Similar Posts:
- C# WinForm: How to Generate two bit random number
- Analysis of Android sleep wake mechanism — wake_ lock
- AS Install Error: Cannot find AVD system path. Please define ANDROID_SDK_ROOT
- Android AVD startup error [How to Solve]
- TypeError: __init__() takes 1 positional argument but 2 were given [How to Solve]
- Solution to NVIDIA driver problem: failed to initialize nvml: Driver / library version mismatch
- [Solved] Android P (9.0) userdebug version failed to execute ADB remount
- Android Studio Emulator: PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (Solved)
- This paper solves the problem that the program published by QT prompts “unable to locate the program input point k32getmodulefilenameexa on the dynamic link library Kernel32. DLL” in XP environment
- Problem solving SDK platform tools component is missing