Hi, All When I run "mkfs.ext2 /dev/block/loop7" with 4.14 kernel on AOSP master build, i got the following denials:
[ 3004.028178] type=1400 audit(1525358655.127:5624): avc: denied { read } for pid=2868 comm="loop7" path="/data/local/tmp/fstest/fstest.img" dev="mmcblk0p10" ino=130561 scontext=u:r:kernel:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file permissive=0 but not get such denials with 4.9 kernel. The only change is the kernel version, the userspace of Android is the same. For details, please check the links here: 4.14-mkfs.ext2 https://pastebin.ubuntu.com/p/yBzz7TXjGy/ 4.9-mkfs.ext2 https://pastebin.ubuntu.com/p/JCHYznxHww/ I guess there is more strict check related to the mkfs operation in kernel side, but I could not find out which operation yet. not sure if anyone knows any clues about this problem. Thanks in advance! BTW, mkfs.vfat does not have this problem with 4.14, mkfs.ext4 has the same problem. -- Best Regards, Yongqin Liu --------------------------------------------------------------- #mailing list linaro-andr...@lists.linaro.org <linaro-...@lists.linaro.org> http://lists.linaro.org/mailman/listinfo/linaro-android