msm8974-common: sepolicy: Allow ioctls necessary for physical sdcard operations

* Note: 0x1271 is note defined in system/sepolicy/public/ioctl_defines

avc: denied { ioctl } for path="/dev/block/vold/public:179,65"
dev="tmpfs" ino=19222 ioctlcmd=125e scontext=u:r:vold:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0

avc: denied { ioctl } for path="/dev/block/vold/public:179,65"
dev="tmpfs" ino=20176 ioctlcmd=1271 scontext=u:r:vold:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0

avc: denied { ioctl } for path="/dev/block/vold/public:179,65"
dev="tmpfs" ino=27110 ioctlcmd=125e scontext=u:r:fsck_untrusted:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0

avc: denied { ioctl } for path="/dev/block/vold/public:179,65"
dev="tmpfs" ino=27110 ioctlcmd=1271 scontext=u:r:fsck_untrusted:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0

Change-Id: I7bf2346b9517196160e4dde51baa550fb343bfdf
This commit is contained in:
Kevin F. Haggerty 2020-09-04 14:51:35 -06:00
parent 61d3a4eafa
commit 7bfaa1d75f
No known key found for this signature in database
GPG Key ID: 6D95512933112729
2 changed files with 6 additions and 0 deletions

View File

@ -2,3 +2,6 @@ allow fsck_untrusted block_device:dir getattr;
# /data/media
allow fsck_untrusted media_rw_data_file:dir getattr;
allowxperm fsck_untrusted vold_device:blk_file ioctl 0x1271;
allowxperm fsck_untrusted vold_device:blk_file ioctl BLKROGET;

View File

@ -7,3 +7,6 @@ allow vold {
efs_block_device
system_block_device
}:blk_file getattr;
allowxperm vold vold_device:blk_file ioctl 0x1271;
allowxperm vold vold_device:blk_file ioctl BLKROGET;