Merge "gsid: Allow reading the size of super block device" am: 92eeceafd3 am: 04b0095861 am: c5ba3e32b6 am: d44b25c751 am: ae670cc301
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1879536
Change-Id: Idb0cf5b7762658c095c8825e976d540b12fea684
diff --git a/private/gsid.te b/private/gsid.te
index 2ccc51c..fa76da0 100644
--- a/private/gsid.te
+++ b/private/gsid.te
@@ -55,8 +55,15 @@
# Needed to stat /data/gsi/* and realpath on /dev/block/by-name/*
allow gsid block_device:dir r_dir_perms;
+# Allow querying the size of super_block_device_type.
+allow gsid super_block_device_type:blk_file r_file_perms;
+
# liblp queries these block alignment properties.
-allowxperm gsid { userdata_block_device sdcard_block_device }:blk_file ioctl {
+allowxperm gsid {
+ userdata_block_device
+ sdcard_block_device
+ super_block_device_type
+}:blk_file ioctl {
BLKIOMIN
BLKALIGNOFF
};