1/* 2 * Copyright (c) 2004 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 26 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * POSSIBILITY OF SUCH DAMAGE. 28 * |
29 * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_notify.c#12 $ |
30 */ 31 32/* 33 * Based on sample code from Marc Majka. 34 */ 35#include <sys/types.h> 36 37#include <config/config.h> 38#ifdef HAVE_FULL_QUEUE_H 39#include <sys/queue.h> 40#else /* !HAVE_FULL_QUEUE_H */ 41#include <compat/queue.h> 42#endif /* !HAVE_FULL_QUEUE_H */ 43 44#include <bsm/audit_internal.h> 45#include <bsm/libbsm.h> 46 47#include <errno.h> |
48#include <inttypes.h> |
49#include <stdarg.h> 50#include <string.h> 51#include <syslog.h> 52 53 54#ifdef __APPLE__ 55#include <notify.h> 56/* If 1, assumes a kernel that sends the right notification. */ --- 124 unchanged lines hidden --- |