Skip to content
Snippets Groups Projects
Commit 8d32223b authored by Yifan Hong's avatar Yifan Hong
Browse files

Allow BLKIOMIN and BLKALIGNOFF to super device in update_engine.

These ioctls are similar to BLKGETSIZE64; they return benign information
about the partition's alignment, and are used by liblp to optimally
align dynamic partition extents.

The system_block_device is included here because on retrofit devices,
the "super" partition is mapped to the system partition.

Test: manual OTA on retrofit device
Bug: 118506262
Change-Id: I3dd3c99d86d63f97bcd393cff374e27f5ed2da2e
parent 554f1816
No related branches found
No related tags found
No related merge requests found
...@@ -64,3 +64,12 @@ allow update_engine_common dm_device:blk_file rw_file_perms; ...@@ -64,3 +64,12 @@ allow update_engine_common dm_device:blk_file rw_file_perms;
# read / write metadata on super device to resize partitions # read / write metadata on super device to resize partitions
allow update_engine_common super_block_device:blk_file rw_file_perms; allow update_engine_common super_block_device:blk_file rw_file_perms;
# ioctl on super device to get block device alignment and alignment offset
allowxperm update_engine_common {
system_block_device
super_block_device
}:blk_file ioctl { BLKIOMIN BLKALIGNOFF };
# get physical block device to map logical partitions on device mapper
allow update_engine_common 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