• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revisión0712a4737b57d0a1ba8bed727e6d76eac9df1c4f (tree)
Tiempo2020-05-20 23:05:35
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Merge remote-tracking branch 'x86/nougat-x86' into cm-14.1-x86

Cambiar Resumen

Diferencia incremental

--- a/init/Android.mk
+++ b/init/Android.mk
@@ -7,7 +7,7 @@ LOCAL_PATH:= $(call my-dir)
77 ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
88 init_options += -DALLOW_LOCAL_PROP_OVERRIDE=1 -DALLOW_PERMISSIVE_SELINUX=1
99 else
10-init_options += -DALLOW_LOCAL_PROP_OVERRIDE=0 -DALLOW_PERMISSIVE_SELINUX=0
10+init_options += -DALLOW_LOCAL_PROP_OVERRIDE=0 -DALLOW_PERMISSIVE_SELINUX=1
1111 endif
1212
1313 init_options += -DLOG_UEVENTS=0
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -443,11 +443,11 @@ static void selinux_init_all_handles(void)
443443 enum selinux_enforcing_status { SELINUX_PERMISSIVE, SELINUX_ENFORCING };
444444
445445 static selinux_enforcing_status selinux_status_from_cmdline() {
446- selinux_enforcing_status status = SELINUX_ENFORCING;
446+ selinux_enforcing_status status = SELINUX_PERMISSIVE;
447447
448448 import_kernel_cmdline(false, [&](const std::string& key, const std::string& value, bool in_qemu) {
449- if (key == "androidboot.selinux" && value == "permissive") {
450- status = SELINUX_PERMISSIVE;
449+ if (key == "androidboot.selinux" && value == "enforcing") {
450+ status = SELINUX_ENFORCING;
451451 }
452452 });
453453