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

Commit 41b69be7 authored by Steven Moreland's avatar Steven Moreland
Browse files

vndservicemanager: use selinux_vendor_log_callback

This function only uses vendor APIs even on non-VNDK devices. This
is to support the usecase of vndservicemanager on a legacy device
which has the VNDK disabled.

Bug: 113083310
Test: boot up device and see usage of /system/etc/event-log-tags
    denials go away.

Change-Id: I0fd86cce303bf169f6d5b1b873221302e5b260b1
parent fbb87ef3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -403,7 +403,11 @@ int main(int argc, char** argv)

    cb.func_audit = audit_callback;
    selinux_set_callback(SELINUX_CB_AUDIT, cb);
#ifdef VENDORSERVICEMANAGER
    cb.func_log = selinux_vendor_log_callback;
#else
    cb.func_log = selinux_log_callback;
#endif
    selinux_set_callback(SELINUX_CB_LOG, cb);

#ifdef VENDORSERVICEMANAGER