Contents

buf_rcred

Get the credential associated with a buffer for reading.

Declaration

kauth_cred_t buf_rcred(buf_t bp);

Parameters

  • bp:

    Buffer whose credential to grab.

Return Value

Credential if it exists, else NULL.

Discussion

No reference is taken; if the credential is to be held on to persistently, an additional reference must be taken with kauth_cred_ref.

See Also

Buffers