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

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

Merge "add a property for controlling perf_event_paranoid" am: 9292d7da am: a6d6f450

am: 680b2f3c

* commit '680b2f3c':
  add a property for controlling perf_event_paranoid

Change-Id: I23b928d61d2fa81637aefa09c34bf0e20777ad55
parents d978d449 680b2f3c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -596,6 +596,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.
##