Closed pgaskin closed 6 years ago
Update: I think there are two issues:
android::init::
to the property_set
calls.Now I have another issue with sepolicy:
[ 18% 11283/59773] build /home/patrick/android/lineage/out/target/product/cedric/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/patrick/android/lineage/out/target/product/cedric/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.conf
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy: policy configuration loaded
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/patrick/android/lineage/out/target/product/cedric/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil
[ 18% 11284/59773] build /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil
FAILED: /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy -C -M -c 30 -o /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil.tmp /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy.conf ) && (grep -Fxv -f /home/patrick/android/lineage/out/target/product/cedric/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil.tmp > /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil )"
device/motorola/cedric/sepolicy/file.te:46:ERROR 'Duplicate declaration of type' at token ';' on line 50338:
type sysfs_sensors, fs_type, sysfs_type;
type sysfs_fpc, fs_type, sysfs_type;
checkpolicy: error(s) encountered while parsing configuration
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy.conf
[ 18% 11285/59773] build /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/patrick/android/lineage/out/host/linux-x86/bin/sepolicy-analyze /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/patrick/android/lineage/out/target/product/cedric/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 /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/motorola/cedric/sepolicy/file.te:46:ERROR 'Duplicate declaration of type' at token ';' on line 66679:
type sysfs_fpc, fs_type, sysfs_type;
type sysfs_sensors, fs_type, sysfs_type;
checkpolicy: error(s) encountered while parsing configuration
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
[ 18% 11289/59773] //external/selinux/libsepol:libsepol clang src/booleans.c [linux x86]
ninja: build stopped: subcommand failed.
17:30:17 ninja failed with: exit status 1
#### failed to build some targets (25:28 (mm:ss)) ####
I will try commenting out the following line in file.te
:
type sysfs_sensors, fs_type, sysfs_type;
32bit branch needs to be updated i haven't yet updated it .. Soon I'll do it
Ok, then is the 64bit branch usable yet?
Yes 64bit is usable
So it does not introduce any new bugs compared to 32-bit?
And I've almost got 32-bit building now.
No new bugs same like 32bit
I've finished the 32bit build, just waiting for it to finish signing, and I need to test the mp4 encoding, as there were a few warnings about it. Do you want me to submit a PR with the changes?
While building, I get the following error:
If I set ALLOW_MISSING_DEPENDENCIES to true, I get this error:
I am building from the latest 32-bit branch with your build manifest.
I will try and see what I can do to get this to build.