-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sepolicy #18
Comments
@Ingvarr71 dont build user for now , build eng or userdebug |
@Ingvarr71 Fix ur sepolicy |
@Ingvarr71 Use minimal sepolicy for now kek |
iodine71@iodine71 ~/boot $ lunch You're building on Linux Lunch menu... pick a combo: Which would you like? [aosp_arm-eng] 8 |
@Ingvarr71 Userdebug |
I collect userdebug and get this error |
@Ingvarr71 seems you have an error in device/xiaomi/sdm660-common/sepolicy/vendor/hal_power_default.te, the defined rule |
Hello! I am collecting 10 android, help solve the error.
[ 39% 49338/125733] build out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: out/target/product/twolip/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/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s out/target/product/twolip/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/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/xiaomi/sdm660-common/sepolicy/vendor/hal_power_default.te:2:ERROR 'unknown type debugfs_wlan' at token ';' on line 88255:
#line 2
allow hal_power_default debugfs_wlan:dir { open getattr read search ioctl lock };
checkpolicy: error(s) encountered while parsing configuration
05:50:13 ninja failed with: exit status 1
failed to build some targets (03:06:40 (hh:mm:ss))
The text was updated successfully, but these errors were encountered: