[OnePlus X Q&A, Help & Troubleshooting] psychem:
added

genfscon sysfs /devices/soc.0/f9824900.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/stat u:object_r:sysfs_disk_stat:s0

genfscon proc /touchpanel u:object_r:proc_touchpanel:s0
genfscon proc /tri-state-key u:object_r:proc_touchpanel:s0
genfscon proc /s1302 u:object_r:proc_touchpanel:s0
genfscon sysfs /devices/soc.0/f9824900.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/stat u:object_r:sysfs_disk_stat:s0

error

============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200112-UNOFFICIAL-psychem-onyx
TARGET_PRODUCT=lineage_onyx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.4.7-antix.1-amd64-smp-x86_64-Debian-GNU/Linux-10-(buster)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.191205.011
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8974
============================================
wildcard(out/target/product/onyx/clean_steps.mk) was changed, regenerating...
$(shell date -u +%Y%m%d) was changed, regenerating...
[ 98% 11310/11430] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:89: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[ 43% 11450/26466] build out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c	30 -o out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s out/target/product/onyx/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 out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/onyx/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/lineage/sepolicy/common/dynamic/genfs_contexts:2:ERROR 'type sysfs_disk_stat is not defined or is an attribute' at token 'genfscon' on line 86691:
#line 1 "device/lineage/sepolicy/common/dynamic/genfs_contexts"
genfscon proc /sys/kernel/deny_new_usb u:object_r:proc_deny_new_usb:s0
checkpolicy: error(s) encountered while parsing configuration
[ 43% 11460/26466] //external/conscrypt:conscrypt-nojarjar javac [linux_glibc common]
1 warning
[ 43% 11461/26466] Building Kernel Config
make: Entering directory '/home/thinkmachine/android/los171/kernel/oneplus/onyx'
GEN /home/thinkmachine/android/los171/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make: Leaving directory '/home/thinkmachine/android/los171/kernel/oneplus/onyx'
make: Entering directory '/home/thinkmachine/android/los171/kernel/oneplus/onyx'
GEN /home/thinkmachine/android/los171/out/target/product/onyx/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make: Leaving directory '/home/thinkmachine/android/los171/kernel/oneplus/onyx'
12:56:49 ninja failed with: exit status 1

#### failed to build some targets (01:00 (mm:ss)) ####