The error message suggests how oww to fix it. In your device-specific 
selinux policy, you need to add the suggested attributes. e.g.

Change:
type sysfs_sec, file_type; 
To:
type sysfs_sec, file_type, sysfs_type;

Similarly add core_data_file_type for gps_data_file and tee_data_file.



On Tuesday, July 16, 2019 at 10:21:00 AM UTC-7, Simon Schoenmackers wrote:
>
> Im trying to build AOSPextended but the build fails with this error:
>
>
> FAILED: /home/simon/AOSP_Extended/out/target/product/a5y17lte/obj/ETC/
> sepolicy_tests_intermediates/sepolicy_tests 
> /bin/bash -c 
> "(/home/simon/AOSP_Extended/out/host/linux-x86/bin/sepolicy_tests 
> -l /home/simon/AOSP_Extended/out/host/linux-x86/lib64/libsepolwrap.so       
>    -f 
> /home/simon/AOSP_Extended/out/target/product/a5y17lte/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts
>  
>  -f 
> /home/simon/AOSP_Extended/out/target/product/a5y17lte/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts
>  
>  -p 
> /home/simon/AOSP_Extended/out/target/product/a5y17lte/obj/ETC/sepolicy_intermediates/sepolicy
>  
> ) && (touch 
> /home/simon/AOSP_Extended/out/target/product/a5y17lte/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests
>  
> )"
> The following types on /sys/ must be associated with the "sysfs_type" 
> attribute: sysfs_sec
> The following types on /data/ must be associated with the 
> "core_data_file_type" attribute: gps_data_file tee_data_file
>
> Anyone knows how to fix this?
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/c3ae9f90-a6b9-42f8-95cb-3d5cfb4b31cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to