Merge "Allow BLKIOMIN and BLKALIGNOFF ioctls to the super device in fastbootd."
diff --git a/public/fastbootd.te b/public/fastbootd.te
index 783d2bd..fe1005e 100644
--- a/public/fastbootd.te
+++ b/public/fastbootd.te
@@ -48,6 +48,11 @@
}: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
}:blk_file ioctl { BLKSECDISCARD BLKDISCARD };