From 5b29fefc654079335474eb42a38acfcc356eb7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=8B=E9=A1=B5?= Date: Sat, 21 Sep 2024 21:56:27 +0800 Subject: [PATCH] Replace LOGE with LOGW so the process don't abort MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 南宫雪珊 --- native/src/sepolicy/sepolicy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/sepolicy/sepolicy.cpp b/native/src/sepolicy/sepolicy.cpp index 7fbefaf86..523f9763e 100644 --- a/native/src/sepolicy/sepolicy.cpp +++ b/native/src/sepolicy/sepolicy.cpp @@ -272,7 +272,7 @@ bool sepol_impl::add_rule(const char *s, const char *t, const char *c, const cha void sepol_impl::add_xperm_rule(type_datum_t *src, type_datum_t *tgt, class_datum_t *cls, const Xperm &p, int effect) { if (db->policyvers < POLICYDB_VERSION_XPERMS_IOCTL) { - LOGE("policy version %u does not support ioctl extended permissions rules\n", db->policyvers); + LOGW("policy version %u does not support ioctl extended permissions rules\n", db->policyvers); return; } if (src == nullptr) {