Dhcp.te Android RIL 9

#1

Hi, everyone.
The following line in dhcp.te:

allow dhcp sierra_dhcpcd_exec:file { read entrypoint open };

is causing the following error in Android 9 build:

[  0% 49/29026] build out/target/product/evk_8mm/obj/ETC/treble_sepolicy_tests_26.0_intermediates/treble_sepolicy_tests_26.0
FAILED: out/target/product/evk_8mm/obj/ETC/treble_sepolicy_tests_26.0_intermediates/treble_sepolicy_tests_26.0 
/bin/bash -c "(out/host/linux-x86/bin/treble_sepolicy_tests -l 		out/host/linux-x86/lib64/libsepolwrap.so  -f out/target/product/evk_8mm/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts  -f out/target/product/evk_8mm/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts 		-b out/target/product/evk_8mm/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m out/target/product/evk_8mm/obj/ETC/treble_sepolicy_tests_26.0_intermediates/26.0_mapping.combined.cil 		-o out/target/product/evk_8mm/obj/ETC/treble_sepolicy_tests_26.0_intermediates/built_26.0_plat_sepolicy -p out/target/product/evk_8mm/obj/ETC/sepolicy_intermediates/sepolicy 		--fake-treble ) && (touch out/target/product/evk_8mm/obj/ETC/treble_sepolicy_tests_26.0_intermediates/treble_sepolicy_tests_26.0 )"
The following domains must not be associated with the "coredomain" attribute because they are executed off of /vendor or /system/vendor:
dhcp

Can someone help me with that?

#2

Hello. I commented this line to build Android. It build correctly. But when I put it on board (EVK_imx8mm from NXP) it gives the following log. log_androidmodem.txt (75.2 KB)

It reboots first and then it enters in recovery mode. Can someone help me with that?