binder_ndk_sys

Function AIBinder_setRequestingSid

Source
pub unsafe extern "C" fn AIBinder_setRequestingSid(
    binder: *mut AIBinder,
    requestingSid: bool,
)
Expand description

Makes calls to AIBinder_getCallingSid work if the kernel supports it. This must be called on a local binder server before it is sent out to any othe process. If this is a remote binder, it will abort. If the kernel doesn’t support this feature, you’ll always get null from AIBinder_getCallingSid.

\param binder local server binder to request security contexts on