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

Commit 92bef239 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Rename ro.product.enforce_debugfs_restrictions" am: 5d7cca20 am:...

Merge "Rename ro.product.enforce_debugfs_restrictions" am: 5d7cca20 am: 58d6f5ff am: 1897820c am: 88a3e5ae

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1677194

Change-Id: Ibe25c5b1a465c82db178e1dcd9a4053b8cf0a9e2
parents 5e21a093 88a3e5ae
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2178,13 +2178,13 @@ void Dumpstate::DumpstateBoard(int out_fd) {
    }

    /*
     * mount debugfs for non-user builds with ro.product.enforce_debugfs_restrictions
     * mount debugfs for non-user builds with ro.product.debugfs_restrictions.enabled
     * set to true and unmount it after invoking dumpstateBoard_* methods.
     * This is to enable debug builds to not have debugfs mounted during runtime.
     * It will also ensure that debugfs is only accessed by the dumpstate HAL.
     */
    auto mount_debugfs =
        android::base::GetBoolProperty("ro.product.enforce_debugfs_restrictions", false);
        android::base::GetBoolProperty("ro.product.debugfs_restrictions.enabled", false);
    if (mount_debugfs) {
        RunCommand("mount debugfs", {"mount", "-t", "debugfs", "debugfs", "/sys/kernel/debug"},
                   AS_ROOT_20);