robotnix
robotnix copied to clipboard
Vanilla build fails on sepolicy
Hi,
I am trying to build the vanilla flavour from the git master branch, it fails with:
[ 53% 74177/138254] build out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/policy.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/policy_2.conf || ( echo \"\" 1>&2; echo \"sepolicy-analyze failed. This is most likely due to the use\" 1>&2; echo \"of an expanded attribute in a neverallow assertion. Please fix\" 1>&2; echo \"the policy.\" 1>&2; exit 1 ) ) && (touch out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp ) && (mv out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows )"
hardware/google/pixel-sepolicy/googlebattery/turbo_adapter.te:3:ERROR 'unknown type turbo_adapter' at token ';' on line 69478:
allow turbo_adapter hal_googlebattery_hwservice:hwservice_manager find;
# To find and bind Google Battery HAL
checkpolicy: error(s) encountered while parsing configuration
and
[ 53% 74179/138254] build out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: out/target/product/sunfish/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/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"user\" = \"user\" -a -s out/target/product/sunfish/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/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
hardware/google/pixel-sepolicy/googlebattery/turbo_adapter.te:3:ERROR 'unknown type turbo_adapter' at token ';' on line 70944:
# To find and bind Google Battery HAL
allow turbo_adapter hal_googlebattery_hwservice:hwservice_manager find;
checkpolicy: error(s) encountered while parsing configuration
Is this a known error? I couldn't find anything in the bug tracker. What information should I provide to get help solving this issue? Thank you!