PERFORCE change 84781 for review

Robert Watson rwatson at FreeBSD.org
Tue Oct 4 05:14:17 PDT 2005


http://perforce.freebsd.org/chv.cgi?CH=84781

Change 84781 by rwatson at rwatson_peppercorn on 2005/10/04 12:13:31

	Staticize kau_{open,write,close}() since they are only used in
	kern_bsm_audit.c.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/security/audit/audit_private.h#6 edit
.. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#16 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/security/audit/audit_private.h#6 (text+ko) ====

@@ -211,10 +211,6 @@
 /*
  * Kernel versions of the libbsm audit record functions.
  */
-struct au_record 	*kau_open(void);
-int			kau_write(struct au_record *rec, token_t *m);
-void			kau_close(struct au_record *rec, 
-				 struct timespec *endtime, short event);
 void			kau_free(struct au_record *rec);
 void			kau_init(void);
 

==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#16 (text+ko) ====

@@ -84,7 +84,7 @@
  * memory allocated above and also the list of tokens associated 
  * with this record
  */  
-struct au_record * 
+static struct au_record * 
 kau_open(void)
 {	
 	struct au_record *rec = NULL;
@@ -131,7 +131,8 @@
  * Store the token with the record descriptor
  *
  */ 
-int kau_write(struct au_record *rec, struct au_token *tok)
+static int
+kau_write(struct au_record *rec, struct au_token *tok)
 {
 	if(tok == NULL) {
 		return -1; /* Invalid Token */
@@ -153,7 +154,7 @@
  * Close out the audit record by adding the header token, identifying 
  * any missing tokens.  Write out the tokens to the record memory.
  */
-void
+static void
 kau_close(struct au_record *rec, struct timespec *ctime, short event)
 {
 	u_char *dptr;


More information about the p4-projects mailing list