Skip to content
Snippets Groups Projects
Commit bf0bf05a authored by David Anderson's avatar David Anderson
Browse files

Allow BLKIOMIN and BLKALIGNOFF ioctls to the super device in fastbootd.

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.

Bug: 116802789
Test: fastboot flashall
Change-Id: I38282904828105cf5f16ce9d4b5884d2b0e89d38
parent 581e6c47
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,11 @@ recovery_only(`
userdata_block_device
}:blk_file { w_file_perms getattr ioctl };
allowxperm fastbootd {
system_block_device
super_block_device
}:blk_file ioctl { BLKIOMIN BLKALIGNOFF };
allowxperm fastbootd {
metadata_block_device
userdata_block_device
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment