Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52ebee98 authored by Daniel Micay's avatar Daniel Micay Committed by android-build-merger
Browse files

add a property for controlling perf_event_paranoid

am: fe01f56c

* commit 'fe01f56c':
  add a property for controlling perf_event_paranoid

Change-Id: I1059ecb2c1d1aba95cd3c93f208ae7ca904cf95e
parents cdc503c1 fe01f56c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -603,6 +603,11 @@ on property:sys.sysctl.extra_free_kbytes=*
on property:sys.sysctl.tcp_def_init_rwnd=*
    write /proc/sys/net/ipv4/tcp_default_init_rwnd ${sys.sysctl.tcp_def_init_rwnd}

on property:security.perf_harden=0
    write /proc/sys/kernel/perf_event_paranoid 1

on property:security.perf_harden=1
    write /proc/sys/kernel/perf_event_paranoid 3

## Daemon processes to be run by init.
##