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

Commit b912e3e5 authored by Shintaro Kawamura's avatar Shintaro Kawamura
Browse files

Fix permission of zram writeback and idle file

The default permission of "/sys/block/zram0/idle" and
"/sys/block/zram0/writeback" are "0200".

Adding read permission to the files does not make sense because reading
those files fail as EIO error.

We should keep permission as minimum as possible.

Bug: 117682284
Bug: 375432468
Test: ls -la /sys/block/zram0

Change-Id: I11ed5d9eee257002f4698edcd81de39d2c317ea1
parent b6d84eba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1127,9 +1127,9 @@ on boot

    # System server manages zram writeback
    chown root system /sys/block/zram0/idle
    chmod 0664 /sys/block/zram0/idle
    chmod 0220 /sys/block/zram0/idle
    chown root system /sys/block/zram0/writeback
    chmod 0664 /sys/block/zram0/writeback
    chmod 0220 /sys/block/zram0/writeback

    # to access F2FS sysfs on dm-<num> directly
    mkdir /dev/sys/fs/by-name 0755 system system