From owner-p4-projects@FreeBSD.ORG Wed Dec 1 00:20:02 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3BF3B16A4D2; Wed, 1 Dec 2004 00:20:02 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C920816A4CE for ; Wed, 1 Dec 2004 00:20:01 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7861243D55 for ; Wed, 1 Dec 2004 00:20:01 +0000 (GMT) (envelope-from wsalamon@computer.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iB10K1Di032564 for ; Wed, 1 Dec 2004 00:20:01 GMT (envelope-from wsalamon@computer.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iB10K131032561 for perforce@freebsd.org; Wed, 1 Dec 2004 00:20:01 GMT (envelope-from wsalamon@computer.org) Date: Wed, 1 Dec 2004 00:20:01 GMT Message-Id: <200412010020.iB10K131032561@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to wsalamon@computer.org using -f From: Wayne Salamon To: Perforce Change Reviews Subject: PERFORCE change 66153 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 00:20:02 -0000 http://perforce.freebsd.org/chv.cgi?CH=66153 Change 66153 by wsalamon@rickenbacker on 2004/12/01 00:19:05 Add some more Linux compat audit events, mostly so I can test. Also change the core syscalls.master to use the AUE_O_CREAT event instead of AUE_CREAT (which doesn't exist). Affected files ... .. //depot/projects/trustedbsd/audit3/sys/i386/linux/linux_sysent.c#4 edit .. //depot/projects/trustedbsd/audit3/sys/i386/linux/syscalls.master#4 edit .. //depot/projects/trustedbsd/audit3/sys/kern/syscalls.master#9 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/i386/linux/linux_sysent.c#4 (text+ko) ==== @@ -26,14 +26,14 @@ { AS(linux_open_args), (sy_call_t *)linux_open, AUE_OPEN }, /* 5 = linux_open */ { SYF_MPSAFE | AS(close_args), (sy_call_t *)close, AUE_CLOSE }, /* 6 = close */ { SYF_MPSAFE | AS(linux_waitpid_args), (sy_call_t *)linux_waitpid, AUE_NULL }, /* 7 = linux_waitpid */ - { AS(linux_creat_args), (sy_call_t *)linux_creat, AUE_NULL }, /* 8 = linux_creat */ - { AS(linux_link_args), (sy_call_t *)linux_link, AUE_NULL }, /* 9 = linux_link */ - { AS(linux_unlink_args), (sy_call_t *)linux_unlink, AUE_NULL }, /* 10 = linux_unlink */ + { AS(linux_creat_args), (sy_call_t *)linux_creat, AUE_O_CREAT }, /* 8 = linux_creat */ + { AS(linux_link_args), (sy_call_t *)linux_link, AUE_LINK }, /* 9 = linux_link */ + { AS(linux_unlink_args), (sy_call_t *)linux_unlink, AUE_UNLINK }, /* 10 = linux_unlink */ { AS(linux_execve_args), (sy_call_t *)linux_execve, AUE_NULL }, /* 11 = linux_execve */ - { AS(linux_chdir_args), (sy_call_t *)linux_chdir, AUE_NULL }, /* 12 = linux_chdir */ + { AS(linux_chdir_args), (sy_call_t *)linux_chdir, AUE_CHDIR }, /* 12 = linux_chdir */ { AS(linux_time_args), (sy_call_t *)linux_time, AUE_NULL }, /* 13 = linux_time */ { AS(linux_mknod_args), (sy_call_t *)linux_mknod, AUE_NULL }, /* 14 = linux_mknod */ - { AS(linux_chmod_args), (sy_call_t *)linux_chmod, AUE_NULL }, /* 15 = linux_chmod */ + { AS(linux_chmod_args), (sy_call_t *)linux_chmod, AUE_CHMOD }, /* 15 = linux_chmod */ { AS(linux_lchown16_args), (sy_call_t *)linux_lchown16, AUE_NULL }, /* 16 = linux_lchown16 */ { 0, (sy_call_t *)nosys, AUE_NULL }, /* 17 = break */ { AS(linux_stat_args), (sy_call_t *)linux_stat, AUE_NULL }, /* 18 = linux_stat */ ==== //depot/projects/trustedbsd/audit3/sys/i386/linux/syscalls.master#4 (text+ko) ==== @@ -44,16 +44,16 @@ 6 MNOPROTO { int close(int fd); } AUE_CLOSE 7 MSTD { int linux_waitpid(l_pid_t pid, \ l_int *status, l_int options); } AUE_NULL -8 STD { int linux_creat(char *path, l_int mode); } AUE_NULL -9 STD { int linux_link(char *path, char *to); } AUE_NULL -10 STD { int linux_unlink(char *path); } AUE_NULL +8 STD { int linux_creat(char *path, l_int mode); } AUE_O_CREAT +9 STD { int linux_link(char *path, char *to); } AUE_LINK +10 STD { int linux_unlink(char *path); } AUE_UNLINK 11 STD { int linux_execve(char *path, char **argp, \ char **envp); } AUE_NULL -12 STD { int linux_chdir(char *path); } AUE_NULL +12 STD { int linux_chdir(char *path); } AUE_CHDIR 13 STD { int linux_time(l_time_t *tm); } AUE_NULL 14 STD { int linux_mknod(char *path, l_int mode, \ l_dev_t dev); } AUE_NULL -15 STD { int linux_chmod(char *path, l_mode_t mode); } AUE_NULL +15 STD { int linux_chmod(char *path, l_mode_t mode); } AUE_CHMOD 16 STD { int linux_lchown16(char *path, l_uid16_t uid, \ l_gid16_t gid); } AUE_NULL 17 UNIMPL break ==== //depot/projects/trustedbsd/audit3/sys/kern/syscalls.master#9 (text+ko) ==== @@ -63,7 +63,7 @@ 6 MSTD { int close(int fd); } AUE_CLOSE 7 MSTD { int wait4(int pid, int *status, int options, \ struct rusage *rusage); } AUE_NULL wait4 wait_args int -8 MCOMPAT { int creat(char *path, int mode); } AUE_CREAT +8 MCOMPAT { int creat(char *path, int mode); } AUE_O_CREAT 9 MSTD { int link(char *path, char *link); } AUE_LINK 10 MSTD { int unlink(char *path); } AUE_UNLINK 11 OBSOL execv