Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5516d77f authored by Steven Moreland's avatar Steven Moreland
Browse files

SafetyNet logging from vendor.

These weren't enabled because of the below bug causing denials.

Bug: 113083310
Bug: 121035042
Test: no denials
Change-Id: Ie32a5c99f1488fdbfcabb19aff8fa1f3ff2c7b63
parent bcb4be70
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -154,9 +154,7 @@ int binder_become_context_manager(struct binder_state *bs)

    // fallback to original method
    if (result != 0) {
#ifndef VENDORSERVICEMANAGER
        android_errorWriteLog(0x534e4554, "121035042");
#endif

        result = ioctl(bs->fd, BINDER_SET_CONTEXT_MGR, 0);
    }
+0 −2
Original line number Diff line number Diff line
@@ -77,11 +77,9 @@ static bool check_mac_perms(pid_t spid, const char* sid, uid_t uid, const char *
    ad.uid = uid;
    ad.name = name;

#ifndef VENDORSERVICEMANAGER
    if (sid == NULL) {
        android_errorWriteLog(0x534e4554, "121035042");
    }
#endif

    int result = selinux_check_access(sid ? sid : lookup_sid, tctx, class, perm, (void *) &ad);
    allowed = (result == 0);