mirror of
https://github.com/ponces/treble_aosp.git
synced 2024-11-25 03:16:25 +00:00
27 lines
947 B
Diff
27 lines
947 B
Diff
From ce0f8fed3ff7e9ca42d0da8aea4ec9903d57435e Mon Sep 17 00:00:00 2001
|
|
From: ponces <ponces26@gmail.com>
|
|
Date: Mon, 7 Nov 2022 16:14:20 +0000
|
|
Subject: [PATCH 08/10] Improve SELinux policy workaround on device/phh/treble
|
|
conflict to exit with SEPOL_OK instead of SEPOL_EEXIST
|
|
|
|
This fixes boot on many Samsung devices as exiting with SEPOL_EEXIST will prevent them to boot
|
|
---
|
|
libsepol/cil/src/cil_build_ast.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/libsepol/cil/src/cil_build_ast.c b/libsepol/cil/src/cil_build_ast.c
|
|
index 77e130d1..daf8b8b3 100644
|
|
--- a/libsepol/cil/src/cil_build_ast.c
|
|
+++ b/libsepol/cil/src/cil_build_ast.c
|
|
@@ -141,7 +141,6 @@ int cil_add_decl_to_symtab(struct cil_db *db, symtab_t *symtab, hashtab_key_t ke
|
|
/* multiple_decls is enabled and works for this datum type, add node */
|
|
cil_list_append(prev->nodes, CIL_NODE, node);
|
|
node->data = prev;
|
|
- return SEPOL_EEXIST;
|
|
}
|
|
|
|
return SEPOL_OK;
|
|
--
|
|
2.34.1
|
|
|