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

Commit 9e27cab6 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

Merge "init.rc: Disable sysrq from the keyboard"

parents a3ae129f d28a535d
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -13,6 +13,9 @@ on early-init
    # Set init and its forked children's oom_adj.
    # Set init and its forked children's oom_adj.
    write /proc/1/oom_score_adj -1000
    write /proc/1/oom_score_adj -1000


    # Disable sysrq from keyboard
    write /proc/sys/kernel/sysrq 0

    # Set the security context of /adb_keys if present.
    # Set the security context of /adb_keys if present.
    restorecon /adb_keys
    restorecon /adb_keys