Date: Sun, 5 Mar 2006 02:32:33 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 92761 for review Message-ID: <200603050232.k252WXgk008388@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92761 Change 92761 by rwatson@rwatson_fledge on 2006/03/05 02:32:16 s/AU_NO_WRITE/AU_TO_NO_WRITE/ Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/au_open.3#2 edit .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_audit.c#24 edit .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#20 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/au_open.3#2 (text+ko) ==== @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_open.3#1 $ +.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_open.3#2 $ .\" .Dd March 4, 2006 .Dt AU_OPEN 3 @@ -74,7 +74,7 @@ argument determines the behavior: a value of .Dv AU_TO_WRITE causes the record to be committed; a value of -.Dv AU_NO_WRITE +.Dv AU_TO_NO_WRITE causes it to be abandoned. When the audit record is committed, a BSM header will be inserted before tokens added to the record, using the event identifier passed via ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_audit.c#24 (text+ko) ==== @@ -30,7 +30,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_audit.c#23 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_audit.c#24 $ */ #include <sys/types.h> @@ -280,7 +280,7 @@ return (-1); /* Invalid descriptor */ } - if (keep == AU_NO_WRITE) { + if (keep == AU_TO_NO_WRITE) { retval = 0; goto cleanup; } ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#20 (text+ko) ==== @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#19 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_wrappers.c#20 $ */ #ifdef __APPLE__ @@ -164,21 +164,21 @@ /* Save the event-specific token. */ if (misctok && au_write(aufd, misctok) == -1) { au_free_token(misctok); - (void)au_close(aufd, AU_NO_WRITE, event_code); + (void)au_close(aufd, AU_TO_NO_WRITE, event_code); syslog(LOG_ERR, "%s: write of caller token failed", func); return (kAUWriteCallerTokErr); } /* Tokenize and save the return value. */ if ((rettok = au_to_return32(retval, errcode)) == NULL) { - (void)au_close(aufd, AU_NO_WRITE, event_code); + (void)au_close(aufd, AU_TO_NO_WRITE, event_code); syslog(LOG_ERR, "%s: au_to_return32() failed", func); return (kAUMakeReturnTokErr); } if (au_write(aufd, rettok) == -1) { au_free_token(rettok); - (void)au_close(aufd, AU_NO_WRITE, event_code); + (void)au_close(aufd, AU_TO_NO_WRITE, event_code); syslog(LOG_ERR, "%s: write of return code failed", func); return (kAUWriteReturnTokErr); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603050232.k252WXgk008388>