From 4ae8fe9b842f3d51f0ae7abbb419304fb935c550 Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju <hridya@google.com> Date: Fri, 17 Aug 2018 11:07:09 -0700 Subject: [PATCH] Define 'super_block_device' type Bug: 78793464 Test: fastboot getvar partition-size:super 'super_block_device' corresponds to the super partition required for flashing dynamic partitions. Change-Id: I323634b6797ead7c5face117a7028bf9ab947aea --- private/compat/26.0/26.0.ignore.cil | 1 + private/compat/27.0/27.0.ignore.cil | 1 + private/compat/28.0/28.0.ignore.cil | 1 + public/device.te | 3 +++ public/fastbootd.te | 1 + 5 files changed, 7 insertions(+) diff --git a/private/compat/26.0/26.0.ignore.cil b/private/compat/26.0/26.0.ignore.cil index d52b41b94..1594979b6 100644 --- a/private/compat/26.0/26.0.ignore.cil +++ b/private/compat/26.0/26.0.ignore.cil @@ -114,6 +114,7 @@ statsdw_socket statscompanion_service storaged_data_file + super_block_device sysfs_fs_ext4_features system_boot_reason_prop system_lmk_prop diff --git a/private/compat/27.0/27.0.ignore.cil b/private/compat/27.0/27.0.ignore.cil index 8e5370ce5..d56de6861 100644 --- a/private/compat/27.0/27.0.ignore.cil +++ b/private/compat/27.0/27.0.ignore.cil @@ -101,6 +101,7 @@ statsdw statsdw_socket storaged_data_file + super_block_device system_boot_reason_prop system_lmk_prop system_suspend_hwservice diff --git a/private/compat/28.0/28.0.ignore.cil b/private/compat/28.0/28.0.ignore.cil index 5386bee7d..c40ea06d3 100644 --- a/private/compat/28.0/28.0.ignore.cil +++ b/private/compat/28.0/28.0.ignore.cil @@ -16,6 +16,7 @@ mnt_product_file overlayfs_file recovery_socket + super_block_device system_lmk_prop system_suspend_hwservice time_prop diff --git a/public/device.te b/public/device.te index 231c83938..c68b515cc 100644 --- a/public/device.te +++ b/public/device.te @@ -104,3 +104,6 @@ type metadata_block_device, dev_type; # The 'misc' partition used by recovery and A/B. type misc_block_device, dev_type; + +# 'super' partition to be used for logical partitioning. +type super_block_device, dev_type; diff --git a/public/fastbootd.te b/public/fastbootd.te index 82ae47bc5..1d39d5090 100644 --- a/public/fastbootd.te +++ b/public/fastbootd.te @@ -38,6 +38,7 @@ recovery_only(` allow fastbootd dm_device:chr_file rw_file_perms; allow fastbootd dm_device:blk_file rw_file_perms; + allow fastbootd super_block_device:blk_file rw_file_perms; allow fastbootd system_block_device:blk_file rw_file_perms; allow fastbootd boot_block_device:blk_file rw_file_perms; -- GitLab