1/*- |
2 * Copyright (c) 2005-2009 Apple Inc. |
3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/audit_warn.c#11 $ |
30 */ 31 32#include <sys/types.h> 33 34#include <stdio.h> 35#include <stdlib.h> 36#include <unistd.h> 37 --- 193 unchanged lines hidden (view full) --- 231{ 232 char *args[2]; 233 234 args[0] = TMPFILE_WARN; 235 args[1] = NULL; 236 237 return (auditwarnlog(args)); 238} |
239 240/* 241 * Indicates that this trail file has expired and was removed. 242 */ 243int 244audit_warn_expired(char *filename) 245{ 246 char *args[3]; 247 248 args[0] = EXPIRED_WARN; 249 args[1] = filename; 250 args[2] = NULL; 251 252 return (auditwarnlog(args)); 253} |