universal7580: sepolicy: allow fsck ioctls on /dev/block/mmcblk0p* devices
authorDanny Wood <danwood76@gmail.com>
Tue, 3 Dec 2019 12:42:48 +0000 (12:42 +0000)
committerDanny Wood <danwood76@gmail.com>
Tue, 10 Mar 2020 15:25:58 +0000 (15:25 +0000)
Change-Id: Ib82d00c9d62ab61eb52b75ea80a66241fa96c571

sepolicy/fsck.te

index fe4fe2ee33dd25e3393809cde1c54d610a54f43b..6185843ed220bad385f361e83e38dd92321ceacf 100644 (file)
@@ -1,2 +1,3 @@
-# /dev/block/mmcblk0p3
+# /dev/block/mmcblk0p[0-9]*
 allow fsck emmcblk_device:blk_file rw_file_perms;
+allowxperm fsck emmcblk_device:blk_file ioctl { BLKDISCARDZEROES BLKROGET };