mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
fix(afl-fuzz-init): ensure proper permissions for setting CPU governor
The previous command used tee without sudo, which could fail due to insufficient permissions. Signed-off-by: Yuvraj Saxena <ysaxenax@gmail.com>
This commit is contained in:
@ -2601,7 +2601,7 @@ void check_cpu_governor(afl_state_t *afl) {
|
|||||||
" afl-fuzz. To keep things moving, run these commands as root:\n\n"
|
" afl-fuzz. To keep things moving, run these commands as root:\n\n"
|
||||||
|
|
||||||
" cd /sys/devices/system/cpu\n"
|
" cd /sys/devices/system/cpu\n"
|
||||||
" echo performance | tee cpu*/cpufreq/scaling_governor\n\n"
|
" echo performance | sudo tee cpu*/cpufreq/scaling_governor\n\n"
|
||||||
|
|
||||||
" You can later go back to the original state by replacing "
|
" You can later go back to the original state by replacing "
|
||||||
"'performance'\n"
|
"'performance'\n"
|
||||||
|
Reference in New Issue
Block a user