Changeset View
Changeset View
Standalone View
Standalone View
contrib/openbsm/libbsm/bsm_wrappers.c
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | #else | ||||
*m = -1; | *m = -1; | ||||
return (kAUNoErr); | return (kAUNoErr); | ||||
#endif | #endif | ||||
} | } | ||||
int | int | ||||
audit_set_terminal_id(au_tid_t *tid) | audit_set_terminal_id(au_tid_t *tid) | ||||
{ | { | ||||
dev_t port; | |||||
ngie: Would rwatson care about these changes? | |||||
Not Done Inline Actionsemaste: @rwatson or @brueffer? | |||||
int ret; | int ret; | ||||
if (tid == NULL) | if (tid == NULL) | ||||
return (kAUBadParamErr); | return (kAUBadParamErr); | ||||
if ((ret = audit_set_terminal_port(&tid->port)) != kAUNoErr) | if ((ret = audit_set_terminal_port(&port)) != kAUNoErr) | ||||
return (ret); | return (ret); | ||||
tid->port = port; | |||||
return (audit_set_terminal_host(&tid->machine)); | return (audit_set_terminal_host(&tid->machine)); | ||||
} | } | ||||
/* | /* | ||||
* This is OK for those callers who have only one token to write. If you have | * This is OK for those callers who have only one token to write. If you have | ||||
* multiple tokens that logically form part of the same audit record, you need | * multiple tokens that logically form part of the same audit record, you need | ||||
* to use the existing au_open()/au_write()/au_close() API: | * to use the existing au_open()/au_write()/au_close() API: | ||||
* | * | ||||
▲ Show 20 Lines • Show All 571 Lines • Show Last 20 Lines |
Would rwatson care about these changes?