Deleted Added
full compact
audit.c (156283) audit.c (162503)
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 *
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/audit/audit.c#6 $
33 * $P4: //depot/projects/trustedbsd/openbsm/bin/audit/audit.c#7 $
34 */
35/*
36 * Program to trigger the audit daemon with a message that is either:
37 * - Open a new audit log file
38 * - Read the audit control file and take action on it
39 * - Close the audit log file and exit
40 *
41 */

--- 28 unchanged lines hidden (view full) ---

70
71 if (argc != 2)
72 usage();
73
74 while ((ch = getopt(argc, argv, "nst")) != -1) {
75 switch(ch) {
76
77 case 'n':
34 */
35/*
36 * Program to trigger the audit daemon with a message that is either:
37 * - Open a new audit log file
38 * - Read the audit control file and take action on it
39 * - Close the audit log file and exit
40 *
41 */

--- 28 unchanged lines hidden (view full) ---

70
71 if (argc != 2)
72 usage();
73
74 while ((ch = getopt(argc, argv, "nst")) != -1) {
75 switch(ch) {
76
77 case 'n':
78 trigger = AUDIT_TRIGGER_OPEN_NEW;
78 trigger = AUDIT_TRIGGER_ROTATE_USER;
79 break;
80
81 case 's':
82 trigger = AUDIT_TRIGGER_READ_FILE;
83 break;
84
85 case 't':
86 trigger = AUDIT_TRIGGER_CLOSE_AND_DIE;

--- 16 unchanged lines hidden ---
79 break;
80
81 case 's':
82 trigger = AUDIT_TRIGGER_READ_FILE;
83 break;
84
85 case 't':
86 trigger = AUDIT_TRIGGER_CLOSE_AND_DIE;

--- 16 unchanged lines hidden ---