cryptfs: run e2fsck/fsck.f2fs in fsck domain
e2fsck and fsck.f2fs must run in the fsck domain. Add call to
setexeccon() to tell selinux to run in the fsck domain on exec.
Addresses:
avc: denied { execute_no_trans } for path="/system/bin/e2fsck" dev="mmcblk0p41" ino=241 scontext=u:r:vold:s0 tcontext=u:object_r:fsck_exec:s0 tclass=file
Bug: 26872236
Change-Id: Ib2a583aeefc667f8aa67532e0ac0ff9619b65461
diff --git a/Android.mk b/Android.mk
index d83e650..8c0771d 100644
--- a/Android.mk
+++ b/Android.mk
@@ -27,6 +27,7 @@
MoveTask.cpp \
Benchmark.cpp \
TrimTask.cpp \
+ secontext.cpp \
common_c_includes := \
system/extras/ext4_utils \