diff --git a/prebuilts/api/30.0/public/sgdisk.te b/prebuilts/api/30.0/public/sgdisk.te index 9d7124983..e5a9152e2 100644 --- a/prebuilts/api/30.0/public/sgdisk.te +++ b/prebuilts/api/30.0/public/sgdisk.te @@ -17,6 +17,8 @@ allowxperm sgdisk vold_device:blk_file ioctl { HDIO_GETGEO }; allowxperm sgdisk vold_device:blk_file ioctl { BLKGETSIZE }; # Force a re-read of the partition table. allowxperm sgdisk vold_device:blk_file ioctl { BLKRRPART }; +# Allow reading of the physical block size. +allowxperm sgdisk vold_device:blk_file ioctl { BLKPBSZGET }; # Inherit and use pty created by android_fork_execvp() allow sgdisk devpts:chr_file { read write ioctl getattr }; diff --git a/public/sgdisk.te b/public/sgdisk.te index 9d7124983..e5a9152e2 100644 --- a/public/sgdisk.te +++ b/public/sgdisk.te @@ -17,6 +17,8 @@ allowxperm sgdisk vold_device:blk_file ioctl { HDIO_GETGEO }; allowxperm sgdisk vold_device:blk_file ioctl { BLKGETSIZE }; # Force a re-read of the partition table. allowxperm sgdisk vold_device:blk_file ioctl { BLKRRPART }; +# Allow reading of the physical block size. +allowxperm sgdisk vold_device:blk_file ioctl { BLKPBSZGET }; # Inherit and use pty created by android_fork_execvp() allow sgdisk devpts:chr_file { read write ioctl getattr };