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

Commit 1504cb5b authored by Tim Murray's avatar Tim Murray Committed by Suren Baghdasaryan
Browse files

Set /proc/pressure/memory file permissions



Change access mode and ownership for /proc/pressure/memory file
to allow system components access memory pressure information.

Bug: 129476847
Change-Id: I25b6bc9d47aee857936f050b66e7bee6363b53be
Signed-off-by: default avatarTim Murray <timmurray@google.com>
parent b86e248e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -222,6 +222,9 @@ on init
    chmod 0664 /dev/cpuset/restricted/tasks
    chmod 0664 /dev/cpuset/tasks

    # make the PSI monitor accessible to others
    chown system system /proc/pressure/memory
    chmod 0664 /proc/pressure/memory

    # qtaguid will limit access to specific data based on group memberships.
    #   net_bw_acct grants impersonation of socket owners.