audit_bsm.c (172915) | audit_bsm.c (172995) |
---|---|
1/* 2 * Copyright (c) 1999-2005 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 * | 1/* 2 * Copyright (c) 1999-2005 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 * $FreeBSD: head/sys/security/audit/audit_bsm.c 172915 2007-10-24 00:05:52Z csjp $ | 29 * $FreeBSD: head/sys/security/audit/audit_bsm.c 172995 2007-10-26 01:23:07Z csjp $ |
30 */ 31 32#include <sys/param.h> 33#include <sys/vnode.h> 34#include <sys/ipc.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> 37#include <sys/mutex.h> --- 672 unchanged lines hidden (view full) --- 710 case AUE_CLOSE: 711 if (ARG_IS_VALID(kar, ARG_FD)) { 712 tok = au_to_arg32(2, "fd", ar->ar_arg_fd); 713 kau_write(rec, tok); 714 } 715 UPATH1_VNODE1_TOKENS; 716 break; 717 | 30 */ 31 32#include <sys/param.h> 33#include <sys/vnode.h> 34#include <sys/ipc.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> 37#include <sys/mutex.h> --- 672 unchanged lines hidden (view full) --- 710 case AUE_CLOSE: 711 if (ARG_IS_VALID(kar, ARG_FD)) { 712 tok = au_to_arg32(2, "fd", ar->ar_arg_fd); 713 kau_write(rec, tok); 714 } 715 UPATH1_VNODE1_TOKENS; 716 break; 717 |
718 case AUE_CORE: 719 if (ARG_IS_VALID(kar, ARG_SIGNUM)) { 720 tok = au_to_arg32(0, "signal", ar->ar_arg_signum); 721 kau_write(rec, tok); 722 } 723 UPATH1_VNODE1_TOKENS; 724 break; 725 |
|
718 case AUE_EXTATTRCTL: 719 UPATH1_VNODE1_TOKENS; 720 if (ARG_IS_VALID(kar, ARG_CMD)) { 721 tok = au_to_arg32(2, "cmd", ar->ar_arg_cmd); 722 kau_write(rec, tok); 723 } 724 /* extattrctl(2) filename parameter is in upath2/vnode2 */ 725 UPATH2_TOKENS; --- 721 unchanged lines hidden --- | 726 case AUE_EXTATTRCTL: 727 UPATH1_VNODE1_TOKENS; 728 if (ARG_IS_VALID(kar, ARG_CMD)) { 729 tok = au_to_arg32(2, "cmd", ar->ar_arg_cmd); 730 kau_write(rec, tok); 731 } 732 /* extattrctl(2) filename parameter is in upath2/vnode2 */ 733 UPATH2_TOKENS; --- 721 unchanged lines hidden --- |