[Xiaomi Redmi 3 Questions & Answers] Ankurcul:
Hello,

I was compiling Lineage 15.1 for kenzo and had the following error during compilation.

[ 34% 33742/97054] build /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil

/home/ankurrulez/Lineage_OS/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.conf

/home/ankurrulez/Lineage_OS/out/host/linux-x86/bin/checkpolicy: policy configuration loaded

/home/ankurrulez/Lineage_OS/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil

[ 34% 33743/97054] build /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil

FAILED: /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil

/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/ankurrulez/Lineage_OS/out/host/linux-x86/bin/checkpolicy -C -M -c 30 -o /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil.tmp /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy.conf ) && (grep -Fxv -f /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil.tmp > /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil )"

device/xiaomi/msm8956-common/sepolicy/platform_app.te:2:ERROR 'unknown type fuseblk' at token ';' on line 51585:

allow platform_app fuseblk:dir { { open getattr read search ioctl lock } { open search write add_name remove_name lock } };

#line 1 "device/xiaomi/msm8956-common/sepolicy/platform_app.te"

checkpolicy: error(s) encountered while parsing configuration

/home/ankurrulez/Lineage_OS/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy.conf

[ 34% 33744/97054] build /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy

FAILED: /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy

/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/ankurrulez/Lineage_OS/out/host/linux-x86/bin/checkpolicy -M -c	30 -o /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/ankurrulez/Lineage_OS/out/host/linux-x86/bin/sepolicy-analyze /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then	echo "==========" 1>&2;	echo "ERROR: permissive domains not allowed in user builds" 1>&2;	echo "List of invalid domains:" 1>&2;	cat /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"

device/xiaomi/msm8956-common/sepolicy/platform_app.te:2:ERROR 'unknown type fuseblk' at token ';' on line 68697:

#line 1 "device/xiaomi/msm8956-common/sepolicy/platform_app.te"

allow platform_app fuseblk:dir { { open getattr read search ioctl lock } { open search write add_name remove_name lock } };

checkpolicy: error(s) encountered while parsing configuration

/home/ankurrulez/Lineage_OS/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/ankurrulez/Lineage_OS/out/target/product/kenzo/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf

ninja: build stopped: subcommand failed.

16:47:14 ninja failed with: exit status 1

Can anyone help me in order to solve the issue?