Allow sgdisk to use BLKPBSZGET ioctl
The gpt_fdisk project was updated recently, but sepolicy was not updated with it :) Now sgdisk can use BLKPBSZGET to detect the physical block size. Seen on cuttlefish when adding external SD Card support to it. avc: denied { ioctl } for comm="sgdisk" path="/dev/block/vold/disk:252,16" dev="tmpfs" ino=8625 ioctlcmd=0x127b scontext=u:r:sgdisk:s0 tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0 Bug: 156286088 Change-Id: I9f2df88ee253261b52f3022838380fbb1cab6da0
This commit is contained in:
parent
d895b40f2e
commit
35895ddb79
2 changed files with 4 additions and 0 deletions
|
@ -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 };
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue