Rename globally exposed symbol send_trigger() to audit_send_trigger().

MFC after:	1 month
This commit is contained in:
Robert Watson 2008-03-01 11:04:04 +00:00
parent e4ff3b06bd
commit fb4ed8c9bf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176686
4 changed files with 7 additions and 6 deletions

View File

@ -315,7 +315,7 @@ void audit_canon_path(struct thread *td, char *path, char *cpath);
* asynchronously.
*/
void audit_trigger_init(void);
int send_trigger(unsigned int trigger);
int audit_send_trigger(unsigned int trigger);
/*
* General audit related functions.

View File

@ -405,7 +405,7 @@ auditon(struct thread *td, struct auditon_args *uap)
if ((udata.au_trigger < AUDIT_TRIGGER_MIN) ||
(udata.au_trigger > AUDIT_TRIGGER_MAX))
return (EINVAL);
return (send_trigger(udata.au_trigger));
return (audit_send_trigger(udata.au_trigger));
}
/*

View File

@ -128,7 +128,7 @@ audit_write(struct cdev *dev, struct uio *uio, int ioflag)
}
int
send_trigger(unsigned int trigger)
audit_send_trigger(unsigned int trigger)
{
struct trigger_info *ti;

View File

@ -177,7 +177,8 @@ audit_record_write(struct vnode *vp, struct ucred *cred, void *data,
if (mnt_stat->f_bfree < temp) {
if (ppsratecheck(&last_lowspace_trigger,
&cur_lowspace_trigger, 1)) {
(void)send_trigger(AUDIT_TRIGGER_LOW_SPACE);
(void)audit_send_trigger(
AUDIT_TRIGGER_LOW_SPACE);
printf("Warning: audit space low\n");
}
}
@ -193,7 +194,7 @@ audit_record_write(struct vnode *vp, struct ucred *cred, void *data,
sx_assert(&audit_worker_sx, SA_XLOCKED);
audit_file_rotate_wait = 1;
(void)send_trigger(AUDIT_TRIGGER_ROTATE_KERNEL);
(void)audit_send_trigger(AUDIT_TRIGGER_ROTATE_KERNEL);
}
/*
@ -265,7 +266,7 @@ audit_record_write(struct vnode *vp, struct ucred *cred, void *data,
VOP_UNLOCK(vp, 0);
panic("Audit log space exhausted and fail-stop set.");
}
(void)send_trigger(AUDIT_TRIGGER_NO_SPACE);
(void)audit_send_trigger(AUDIT_TRIGGER_NO_SPACE);
audit_suspended = 1;
/* FALLTHROUGH */