1/* 2 * Copyright (c) 2005 Apple Computer, Inc. 3 * All rights reserved. 4 * 5 * @APPLE_BSD_LICENSE_HEADER_START@ 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 27 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * 31 * @APPLE_BSD_LICENSE_HEADER_END@ 32 * |
33 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/audit_warn.c#7 $ |
34 */ 35 36#include <sys/types.h> 37 38#include <stdio.h> 39#include <stdlib.h> 40#include <unistd.h> 41 --- 78 unchanged lines hidden (view full) --- 120 121 args[0] = AUDITOFF_WARN; 122 args[1] = NULL; 123 124 return (auditwarnlog(args)); 125} 126 127/* |
128 * Indicate that a trail file has been closed, so can now be post-processed. 129 */ 130int 131audit_warn_closefile(char *filename) 132{ 133 char *args[3]; 134 135 args[0] = CLOSEFILE_WARN; 136 args[1] = filename; 137 args[2] = NULL; 138 139 return (auditwarnlog(args)); 140} 141 142/* |
143 * Indicates that the audit deammn is already running 144 */ 145int 146audit_warn_ebusy(void) 147{ 148 char *args[2]; 149 150 args[0] = EBUSY_WARN; --- 97 unchanged lines hidden --- |