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

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

Merge \"add a property for controlling perf_event_paranoid\" into mnc-dev

am: 050243df

Change-Id: Ifc1f319c5d81ed9f5735468d14d7a795b836f373
parents 57f5c953 050243df
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -544,6 +544,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.
##