Date: Wed, 1 Dec 2004 00:20:01 GMT From: Wayne Salamon <wsalamon@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 66153 for review Message-ID: <200412010020.iB10K131032561@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412010020.iB10K131032561>