mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-18 13:58:30 +00:00
Replace LOGE with LOGW so the process don't abort
Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
This commit is contained in:
parent
16a168535d
commit
5b29fefc65
@ -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) {
|
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) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (src == nullptr) {
|
if (src == nullptr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user