mirror of
https://github.com/ChonDoit/treble_superior_patches.git
synced 2024-11-22 07:36:22 +00:00
45 lines
1.4 KiB
Diff
45 lines
1.4 KiB
Diff
From a55acf8200ba38d7bdede7336c9d4cc1a4d1c5cd Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Hugues Husson <phh@phh.me>
|
|
Date: Thu, 12 Sep 2019 20:37:04 +0200
|
|
Subject: [PATCH 05/10] if service is "rcs", accept conflict. Seen on Moto E5
|
|
|
|
Change-Id: I0cc2d0fad83f403f2b5d7458039b1564ce5ed9dd
|
|
---
|
|
libselinux/src/label_backends_android.c | 14 ++++++++++++--
|
|
1 file changed, 12 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/libselinux/src/label_backends_android.c b/libselinux/src/label_backends_android.c
|
|
index 77f7a1eb..55a30944 100644
|
|
--- a/libselinux/src/label_backends_android.c
|
|
+++ b/libselinux/src/label_backends_android.c
|
|
@@ -62,14 +62,24 @@ static int nodups_specs(struct saved_data *data)
|
|
curr_spec->property_key)) {
|
|
if (strcmp(spec_arr[jj].lr.ctx_raw,
|
|
curr_spec->lr.ctx_raw)) {
|
|
- rc = -1;
|
|
- errno = EINVAL;
|
|
selinux_log
|
|
(SELINUX_ERROR,
|
|
"Multiple different specifications for %s (%s and %s).\n",
|
|
curr_spec->property_key,
|
|
spec_arr[jj].lr.ctx_raw,
|
|
curr_spec->lr.ctx_raw);
|
|
+ int ignore = 0;
|
|
+ /*
|
|
+ * This issue has been found on Moto E5
|
|
+ * E SELinux : Multiple different specifications for rcs (u:object_r:radio_service:s0 and u:object_r:mot_rcs_service:s0).
|
|
+ */
|
|
+ if(!strcmp(curr_spec->property_key, "rcs"))
|
|
+ ignore = 1;
|
|
+
|
|
+ if(!ignore) {
|
|
+ rc = -1;
|
|
+ errno = EINVAL;
|
|
+ }
|
|
} else {
|
|
selinux_log
|
|
(SELINUX_WARNING,
|
|
--
|
|
2.34.1
|
|
|