You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

system-core-always-allow-permissive.patch 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From ec96d2ba43b5d6f0eed38a2dc09643746ed57529 Mon Sep 17 00:00:00 2001
  2. From: Anonymous <none@none.none>
  3. Date: Thu, 20 Jun 2019 14:04:55 +0200
  4. Subject: [PATCH] init: Always allow permissive
  5. Horrible workaround to get permissive SELinux in user builds
  6. Change-Id: I23c7040a116dd2fee5e0138f6a4bb1aa337a008f
  7. ---
  8. init/Android.bp | 2 +-
  9. init/Android.mk | 2 +-
  10. 2 files changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/init/Android.bp b/init/Android.bp
  12. index 63c8382a4..a6ac83095 100644
  13. --- a/init/Android.bp
  14. +++ b/init/Android.bp
  15. @@ -27,7 +27,7 @@ cc_defaults {
  16. "-Wno-unused-parameter",
  17. "-Werror",
  18. "-DALLOW_LOCAL_PROP_OVERRIDE=0",
  19. - "-DALLOW_PERMISSIVE_SELINUX=0",
  20. + "-DALLOW_PERMISSIVE_SELINUX=1",
  21. "-DREBOOT_BOOTLOADER_ON_PANIC=0",
  22. "-DWORLD_WRITABLE_KMSG=0",
  23. "-DDUMP_ON_UMOUNT_FAILURE=0",
  24. diff --git a/init/Android.mk b/init/Android.mk
  25. index c4a6a50e5..58161cafe 100644
  26. --- a/init/Android.mk
  27. +++ b/init/Android.mk
  28. @@ -14,7 +14,7 @@ init_options += \
  29. else
  30. init_options += \
  31. -DALLOW_LOCAL_PROP_OVERRIDE=0 \
  32. - -DALLOW_PERMISSIVE_SELINUX=0 \
  33. + -DALLOW_PERMISSIVE_SELINUX=1 \
  34. -DREBOOT_BOOTLOADER_ON_PANIC=0 \
  35. -DWORLD_WRITABLE_KMSG=0 \
  36. -DDUMP_ON_UMOUNT_FAILURE=0
  37. --
  38. 2.22.0