Skip to content
Snippets Groups Projects
Commit 558c1b8d authored by Martijn Coenen's avatar Martijn Coenen
Browse files

Allow apexd to flush block devices.

To work around a kernel bug where pages that are read before changing
the loop device offset are not invalidated correctly.

Bug: 120853401
Test: apexd mounts APEX files on gphone_sdk_x86_64
Change-Id: I89f23f8f9d472e599f053553b73cc0618dcb3747
parent c2dbce06
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ allowxperm apexd loop_device:blk_file ioctl { ...@@ -21,6 +21,7 @@ allowxperm apexd loop_device:blk_file ioctl {
LOOP_SET_BLOCK_SIZE LOOP_SET_BLOCK_SIZE
LOOP_SET_DIRECT_IO LOOP_SET_DIRECT_IO
LOOP_CLR_FD LOOP_CLR_FD
BLKFLSBUF
}; };
# allow apexd to access /dev/block # allow apexd to access /dev/block
allow apexd block_device:dir r_dir_perms; allow apexd block_device:dir r_dir_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