Skip to content
Snippets Groups Projects
Commit 57927190 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

zram: allow zram writeback


This allows fs_mgr in init to build loopback device and its control.

Bug: 74582279
Change-Id: I039cd57d4638870a59dd38c952d3ab9b671be545
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@google.com>
parent 2d86b650
No related branches found
No related tags found
No related merge requests found
......@@ -362,6 +362,17 @@ allow init {
sysfs_zram
}:file rw_file_perms;
# allow init to create loop devices with /dev/loop-control
allow init loop_control_device:chr_file rw_file_perms;
allow init loop_device:blk_file rw_file_perms;
allowxperm init loop_device:blk_file ioctl {
LOOP_SET_FD
LOOP_CLR_FD
LOOP_CTL_GET_FREE
LOOP_SET_BLOCK_SIZE
LOOP_SET_DIRECT_IO
};
# Allow init to write to vibrator/trigger
allow init sysfs_vibrator:file w_file_perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment