mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Add audit_prefixes to two more globally visible functions in the Audit
implementation. MFC after: 1 month
This commit is contained in:
parent
9453fd717f
commit
6cc189913c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176690
@ -361,12 +361,12 @@ audit_commit(struct kaudit_record *ar, int error, int retval)
|
||||
* change it to the proper type of event based on the flags
|
||||
* and the error value.
|
||||
*/
|
||||
ar->k_ar.ar_event = flags_and_error_to_openevent(
|
||||
ar->k_ar.ar_event = audit_flags_and_error_to_openevent(
|
||||
ar->k_ar.ar_arg_fflags, error);
|
||||
break;
|
||||
|
||||
case AUE_SYSCTL:
|
||||
ar->k_ar.ar_event = ctlname_to_sysctlevent(
|
||||
ar->k_ar.ar_event = audit_ctlname_to_sysctlevent(
|
||||
ar->k_ar.ar_arg_ctlname, ar->k_ar.ar_valid_arg);
|
||||
break;
|
||||
|
||||
|
@ -180,7 +180,7 @@ au_preselect(au_event_t event, au_class_t class, au_mask_t *mask_p, int sorf)
|
||||
* Convert sysctl names and present arguments to events.
|
||||
*/
|
||||
au_event_t
|
||||
ctlname_to_sysctlevent(int name[], uint64_t valid_arg)
|
||||
audit_ctlname_to_sysctlevent(int name[], uint64_t valid_arg)
|
||||
{
|
||||
|
||||
/* can't parse it - so return the worst case */
|
||||
@ -242,7 +242,7 @@ ctlname_to_sysctlevent(int name[], uint64_t valid_arg)
|
||||
* auditing purposes.
|
||||
*/
|
||||
au_event_t
|
||||
flags_and_error_to_openevent(int oflags, int error)
|
||||
audit_flags_and_error_to_openevent(int oflags, int error)
|
||||
{
|
||||
au_event_t aevent;
|
||||
|
||||
|
@ -300,15 +300,15 @@ token_t *kau_to_socket(struct socket_au_info *soi);
|
||||
*/
|
||||
int au_preselect(au_event_t event, au_class_t class,
|
||||
au_mask_t *mask_p, int sorf);
|
||||
au_event_t flags_and_error_to_openevent(int oflags, int error);
|
||||
void au_evclassmap_init(void);
|
||||
void au_evclassmap_insert(au_event_t event, au_class_t class);
|
||||
au_class_t au_event_class(au_event_t event);
|
||||
au_event_t ctlname_to_sysctlevent(int name[], uint64_t valid_arg);
|
||||
int auditon_command_event(int cmd);
|
||||
au_event_t audit_ctlname_to_sysctlevent(int name[], uint64_t valid_arg);
|
||||
au_event_t audit_flags_and_error_to_openevent(int oflags, int error);
|
||||
int audit_msgctl_to_event(int cmd);
|
||||
int audit_semctl_to_event(int cmr);
|
||||
void audit_canon_path(struct thread *td, char *path, char *cpath);
|
||||
int auditon_command_event(int cmd);
|
||||
|
||||
/*
|
||||
* Audit trigger events notify user space of kernel audit conditions
|
||||
|
Loading…
Reference in New Issue
Block a user