Date: Sun, 5 Feb 2006 01:11:18 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 91139 for review Message-ID: <200602050111.k151BIa0082071@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=91139 Change 91139 by imp@imp_harmony on 2006/02/05 01:11:13 IFC @91137 (loopback atmel changes) Affected files ... .. //depot/projects/arm/src/sys/alpha/linux/syscalls.master#4 integrate .. //depot/projects/arm/src/sys/amd64/amd64/trap.c#6 integrate .. //depot/projects/arm/src/sys/amd64/ia32/ia32_syscall.c#3 integrate .. //depot/projects/arm/src/sys/arm/arm/trap.c#6 integrate .. //depot/projects/arm/src/sys/arm/at91/at91st.c#5 branch .. //depot/projects/arm/src/sys/arm/at91/hints.at91rm9200#1 branch .. //depot/projects/arm/src/sys/arm/at91/hints.at91sam9261#1 branch .. //depot/projects/arm/src/sys/arm/xscale/i80321/i80321_aau.c#3 integrate .. //depot/projects/arm/src/sys/bsm/audit.h#3 integrate .. //depot/projects/arm/src/sys/bsm/audit_internal.h#2 integrate .. //depot/projects/arm/src/sys/bsm/audit_kevents.h#4 integrate .. //depot/projects/arm/src/sys/bsm/audit_record.h#2 integrate .. //depot/projects/arm/src/sys/compat/freebsd32/freebsd32_proto.h#7 integrate .. //depot/projects/arm/src/sys/compat/freebsd32/freebsd32_syscall.h#7 integrate .. //depot/projects/arm/src/sys/compat/freebsd32/freebsd32_syscalls.c#7 integrate .. //depot/projects/arm/src/sys/compat/freebsd32/freebsd32_sysent.c#7 integrate .. //depot/projects/arm/src/sys/compat/freebsd32/syscalls.master#7 integrate .. //depot/projects/arm/src/sys/conf/NOTES#15 integrate .. //depot/projects/arm/src/sys/conf/files#16 integrate .. //depot/projects/arm/src/sys/conf/files.pc98#5 integrate .. //depot/projects/arm/src/sys/conf/kmod.mk#5 integrate .. //depot/projects/arm/src/sys/conf/options#14 integrate .. //depot/projects/arm/src/sys/dev/advansys/adv_eisa.c#3 integrate .. //depot/projects/arm/src/sys/dev/advansys/adv_pci.c#5 integrate .. //depot/projects/arm/src/sys/dev/amr/amr.c#8 integrate .. //depot/projects/arm/src/sys/dev/amr/amr_pci.c#5 integrate .. //depot/projects/arm/src/sys/dev/amr/amrvar.h#4 integrate .. //depot/projects/arm/src/sys/dev/an/if_an.c#4 integrate .. //depot/projects/arm/src/sys/dev/asr/asr.c#5 integrate .. //depot/projects/arm/src/sys/dev/asr/i2odep.h#2 integrate .. //depot/projects/arm/src/sys/dev/bge/if_bge.c#10 integrate .. //depot/projects/arm/src/sys/dev/ce/if_ce.c#3 integrate .. //depot/projects/arm/src/sys/dev/em/if_em.h#5 integrate .. //depot/projects/arm/src/sys/dev/ep/if_ep.c#3 integrate .. //depot/projects/arm/src/sys/dev/ex/if_ex.c#3 integrate .. //depot/projects/arm/src/sys/dev/firewire/fwcrom.c#2 integrate .. //depot/projects/arm/src/sys/dev/if_ndis/if_ndis.c#6 integrate .. //depot/projects/arm/src/sys/dev/isp/isp.c#4 integrate .. //depot/projects/arm/src/sys/dev/isp/isp_freebsd.c#4 integrate .. //depot/projects/arm/src/sys/dev/isp/isp_freebsd.h#5 integrate .. //depot/projects/arm/src/sys/dev/isp/isp_inline.h#4 delete .. //depot/projects/arm/src/sys/dev/isp/isp_library.c#1 branch .. //depot/projects/arm/src/sys/dev/isp/isp_library.h#1 branch .. //depot/projects/arm/src/sys/dev/isp/isp_pci.c#6 integrate .. //depot/projects/arm/src/sys/dev/isp/isp_sbus.c#3 integrate .. //depot/projects/arm/src/sys/dev/isp/ispvar.h#6 integrate .. //depot/projects/arm/src/sys/dev/pccbb/pccbb.c#5 integrate .. //depot/projects/arm/src/sys/dev/pcf/pcf_isa.c#2 integrate .. //depot/projects/arm/src/sys/dev/sn/if_sn.c#4 integrate .. //depot/projects/arm/src/sys/dev/uart/uart_bus_ebus.c#3 integrate .. //depot/projects/arm/src/sys/dev/uart/uart_cpu_sparc64.c#4 integrate .. //depot/projects/arm/src/sys/fs/udf/ecma167-udf.h#3 integrate .. //depot/projects/arm/src/sys/fs/udf/udf_vfsops.c#5 integrate .. //depot/projects/arm/src/sys/fs/udf/udf_vnops.c#6 integrate .. //depot/projects/arm/src/sys/i386/conf/XBOX#3 integrate .. //depot/projects/arm/src/sys/i386/i386/identcpu.c#8 integrate .. //depot/projects/arm/src/sys/i386/i386/machdep.c#7 integrate .. //depot/projects/arm/src/sys/i386/i386/trap.c#5 integrate .. //depot/projects/arm/src/sys/i386/xbox/xbox.c#2 integrate .. //depot/projects/arm/src/sys/ia64/conf/SKI#3 integrate .. //depot/projects/arm/src/sys/kern/init_main.c#3 integrate .. //depot/projects/arm/src/sys/kern/init_sysent.c#7 integrate .. //depot/projects/arm/src/sys/kern/kern_acct.c#4 integrate .. //depot/projects/arm/src/sys/kern/kern_exec.c#5 integrate .. //depot/projects/arm/src/sys/kern/kern_exit.c#7 integrate .. //depot/projects/arm/src/sys/kern/kern_fork.c#3 integrate .. //depot/projects/arm/src/sys/kern/kern_sig.c#7 integrate .. //depot/projects/arm/src/sys/kern/kern_thread.c#5 integrate .. //depot/projects/arm/src/sys/kern/kern_umtx.c#4 integrate .. //depot/projects/arm/src/sys/kern/syscalls.c#7 integrate .. //depot/projects/arm/src/sys/kern/syscalls.master#8 integrate .. //depot/projects/arm/src/sys/kern/tty_pty.c#7 integrate .. //depot/projects/arm/src/sys/kern/vfs_bio.c#7 integrate .. //depot/projects/arm/src/sys/kern/vfs_syscalls.c#8 integrate .. //depot/projects/arm/src/sys/net/if.c#7 integrate .. //depot/projects/arm/src/sys/net/if.h#5 integrate .. //depot/projects/arm/src/sys/net/if_bridge.c#9 integrate .. //depot/projects/arm/src/sys/net/if_ethersubr.c#10 integrate .. //depot/projects/arm/src/sys/net/if_vlan.c#6 integrate .. //depot/projects/arm/src/sys/net/pfil.c#3 integrate .. //depot/projects/arm/src/sys/net/pfil.h#2 integrate .. //depot/projects/arm/src/sys/netinet/in_pcb.c#5 integrate .. //depot/projects/arm/src/sys/netinet/ip_dummynet.c#5 integrate .. //depot/projects/arm/src/sys/netinet/ip_fastfwd.c#5 integrate .. //depot/projects/arm/src/sys/netinet/ip_fw2.c#8 integrate .. //depot/projects/arm/src/sys/netinet/ip_input.c#9 integrate .. //depot/projects/arm/src/sys/netinet/ip_output.c#8 integrate .. //depot/projects/arm/src/sys/netinet6/ip6_forward.c#3 integrate .. //depot/projects/arm/src/sys/netinet6/ip6_input.c#5 integrate .. //depot/projects/arm/src/sys/netinet6/ip6_output.c#5 integrate .. //depot/projects/arm/src/sys/netinet6/udp6_usrreq.c#3 integrate .. //depot/projects/arm/src/sys/pc98/conf/NOTES#7 integrate .. //depot/projects/arm/src/sys/security/audit/audit.c#1 branch .. //depot/projects/arm/src/sys/security/audit/audit.h#1 branch .. //depot/projects/arm/src/sys/security/audit/audit_arg.c#1 branch .. //depot/projects/arm/src/sys/security/audit/audit_bsm.c#1 branch .. //depot/projects/arm/src/sys/security/audit/audit_bsm_klib.c#1 branch .. //depot/projects/arm/src/sys/security/audit/audit_bsm_token.c#1 branch .. //depot/projects/arm/src/sys/security/audit/audit_private.h#1 branch .. //depot/projects/arm/src/sys/security/audit/audit_syscalls.c#1 branch .. //depot/projects/arm/src/sys/security/audit/audit_trigger.c#1 branch .. //depot/projects/arm/src/sys/sys/proc.h#6 integrate .. //depot/projects/arm/src/sys/sys/sockio.h#3 integrate .. //depot/projects/arm/src/sys/sys/syscall.h#7 integrate .. //depot/projects/arm/src/sys/sys/syscall.mk#7 integrate .. //depot/projects/arm/src/sys/sys/sysproto.h#7 integrate .. //depot/projects/arm/src/sys/vm/vm_fault.c#7 integrate .. //depot/projects/arm/src/sys/vm/vm_pageout.c#5 integrate .. //depot/projects/arm/src/usr.sbin/config/configvers.h#4 integrate .. //depot/projects/arm/src/usr.sbin/config/mkmakefile.c#4 integrate Differences ... ==== //depot/projects/arm/src/sys/alpha/linux/syscalls.master#4 (text+ko) ==== @@ -1,10 +1,10 @@ - $FreeBSD: src/sys/alpha/linux/syscalls.master,v 1.64 2005/07/13 20:32:41 jhb Exp $ + $FreeBSD: src/sys/alpha/linux/syscalls.master,v 1.65 2006/02/04 14:03:22 rwatson Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 ; System call name/number master file (or rather, slave, from LINUX). ; Processed to created linux_sysent.c, linux_syscalls.c and linux_syscall.h. -; Columns: number type nargs name alt{name,tag,rtyp}/comments +; Columns: number audit type nargs name alt{name,tag,rtyp}/comments ; number system call number, must be in order ; audit the audit event associated with the system call ; A value of AUE_NULL means no auditing, but it also means that @@ -46,212 +46,213 @@ ; #ifdef's, etc. may be included, and are copied to the output files. 0 AUE_NULL UNIMPL -1 AUE_NULL MNOPROTO { void sys_exit(int rval); } exit \ +1 AUE_EXIT MNOPROTO { void sys_exit(int rval); } exit \ sys_exit_args void -2 AUE_NULL MSTD { int linux_fork(void); } -3 AUE_NULL MNOPROTO { int read(int fd, char *buf, \ +2 AUE_FORK MSTD { int linux_fork(void); } +3 AUE_READ MNOPROTO { int read(int fd, char *buf, \ u_int nbyte); } -4 AUE_NULL MNOPROTO { int write(int fd, char *buf, \ +4 AUE_WRITE MNOPROTO { int write(int fd, char *buf, \ u_int nbyte); } 5 AUE_NULL UNIMPL -6 AUE_NULL MNOPROTO { int close(int fd); } -7 AUE_NULL MSTD { int osf1_wait4(int pid, int *status, \ +6 AUE_CLOSE MNOPROTO { int close(int fd); } +7 AUE_WAIT4 MSTD { int osf1_wait4(int pid, int *status, \ int options, \ struct osf1_rusage *rusage); } 8 AUE_NULL UNIMPL -9 AUE_NULL MSTD { int linux_link(char *path, char *to); } -10 AUE_NULL MSTD { int linux_unlink(char *path); } +9 AUE_LINK MSTD { int linux_link(char *path, char *to); } +10 AUE_UNLINK MSTD { int linux_unlink(char *path); } 11 AUE_NULL UNIMPL -12 AUE_NULL MSTD { int linux_chdir(char *path); } -13 AUE_NULL MNOPROTO { int fchdir(int fd); } -14 AUE_NULL MSTD { int linux_mknod(char *path, l_int mode, \ +12 AUE_CHDIR MSTD { int linux_chdir(char *path); } +13 AUE_FCHDIR MNOPROTO { int fchdir(int fd); } +14 AUE_MKNOD MSTD { int linux_mknod(char *path, l_int mode, \ l_dev_t dev); } -15 AUE_NULL MSTD { int linux_chmod(char *path, \ +15 AUE_CHMOD MSTD { int linux_chmod(char *path, \ l_mode_t mode); } -16 AUE_NULL MSTD { int linux_chown(char *path, l_uid_t uid, \ +16 AUE_CHOWN MSTD { int linux_chown(char *path, l_uid_t uid, \ l_gid_t gid); } 17 AUE_NULL STD { int linux_brk(l_ulong dsend); } 18 AUE_NULL UNIMPL -19 AUE_NULL MSTD { int linux_lseek(l_uint fdes, l_off_t off, \ +19 AUE_LSEEK MSTD { int linux_lseek(l_uint fdes, l_off_t off, \ l_int whence); } -20 AUE_NULL MNOPROTO { int getpid(void); } -21 AUE_NULL UNIMPL osf1_mount -22 AUE_NULL STD { int linux_umount(char *path, l_int flags); } -23 AUE_NULL MNOPROTO { int setuid(uid_t uid); } -24 AUE_NULL MNOPROTO { int getuid(void); } +20 AUE_GETPID MNOPROTO { int getpid(void); } +21 AUE_MOUNT UNIMPL osf1_mount +22 AUE_UNMOUNT STD { int linux_umount(char *path, l_int flags); } +23 AUE_SETUID MNOPROTO { int setuid(uid_t uid); } +24 AUE_GETUID MNOPROTO { int getuid(void); } 25 AUE_NULL UNIMPL -26 AUE_NULL MSTD { int linux_ptrace(void); } +26 AUE_PTRACE MSTD { int linux_ptrace(void); } 27 AUE_NULL UNIMPL 28 AUE_NULL UNIMPL 29 AUE_NULL UNIMPL 30 AUE_NULL UNIMPL 31 AUE_NULL UNIMPL 32 AUE_NULL UNIMPL -33 AUE_NULL MSTD { int linux_access(char *path, l_int flags); } +33 AUE_ACCESS MSTD { int linux_access(char *path, l_int flags); } 34 AUE_NULL UNIMPL 35 AUE_NULL UNIMPL -36 AUE_NULL MNOPROTO { int sync(void); } -37 AUE_NULL MSTD { int linux_kill(l_int pid, l_int signum); } +36 AUE_SYNC MNOPROTO { int sync(void); } +37 AUE_KILL MSTD { int linux_kill(l_int pid, l_int signum); } 38 AUE_NULL UNIMPL -39 AUE_NULL MNOPROTO { int setpgid(int pid, int pgid); } +39 AUE_SETPGRP MNOPROTO { int setpgid(int pid, int pgid); } 40 AUE_NULL UNIMPL -41 AUE_NULL MNOPROTO { int dup(u_int fd); } -42 AUE_NULL MNOPROTO { int pipe(void); } +41 AUE_DUP MNOPROTO { int dup(u_int fd); } +42 AUE_PIPE MNOPROTO { int pipe(void); } 43 AUE_NULL UNIMPL osf_set_program_attributes 44 AUE_NULL UNIMPL -45 AUE_NULL MSTD { int linux_open(char *path, l_int flags, \ +45 AUE_OPEN_RWTC MSTD { int linux_open(char *path, l_int flags, \ l_int mode); } 46 AUE_NULL UNIMPL -47 AUE_NULL MNOPROTO { int getgid(void); } -48 AUE_NULL MSTD { int osf1_sigprocmask(int how, \ +47 AUE_GETGID MNOPROTO { int getgid(void); } +48 AUE_SIGPROCMASK MSTD { int osf1_sigprocmask(int how, \ u_long mask); } 49 AUE_NULL UNIMPL 50 AUE_NULL UNIMPL -51 AUE_NULL MNOPROTO { int acct(char *path); } -52 AUE_NULL MSTD { int linux_sigpending(void); } +51 AUE_ACCT MNOPROTO { int acct(char *path); } +52 AUE_SIGPENDING MSTD { int linux_sigpending(void); } 53 AUE_NULL UNIMPL -54 AUE_NULL STD { int linux_ioctl(l_uint fd, l_uint cmd, \ +54 AUE_IOCTL STD { int linux_ioctl(l_uint fd, l_uint cmd, \ l_ulong arg); } 55 AUE_NULL UNIMPL 56 AUE_NULL UNIMPL -57 AUE_NULL MSTD { int linux_symlink(char *path, char *to); } -58 AUE_NULL MSTD { int linux_readlink(char *name, char *buf, \ +57 AUE_SYMLINK MSTD { int linux_symlink(char *path, char *to); } +58 AUE_READLINK MSTD { int linux_readlink(char *name, char *buf, \ l_int count); } -59 AUE_NULL MSTD { int linux_execve(char *path, char **argp, \ +59 AUE_EXECVE MSTD { int linux_execve(char *path, char **argp, \ char **envp); } -60 AUE_NULL MNOPROTO { int umask(int newmask); } -61 AUE_NULL MNOPROTO { int chroot(char *path); } +60 AUE_UMASK MNOPROTO { int umask(int newmask); } +61 AUE_CHROOT MNOPROTO { int chroot(char *path); } 62 AUE_NULL UNIMPL -63 AUE_NULL MNOPROTO { int getpgrp(void); } -64 AUE_NULL MSTD { int linux_getpagesize(void); } +63 AUE_GETPGRP MNOPROTO { int getpgrp(void); } +64 AUE_O_GETPAGESIZE MSTD { int linux_getpagesize(void); } 65 AUE_NULL UNIMPL -66 AUE_NULL MSTD { int linux_vfork(void); } -67 AUE_NULL MSTD { int linux_newstat(char *path, \ +66 AUE_VFORK MSTD { int linux_vfork(void); } +67 AUE_STAT MSTD { int linux_newstat(char *path, \ struct l_newstat *buf); } -68 AUE_NULL MSTD { int linux_newlstat(char *path, \ +68 AUE_LSTAT MSTD { int linux_newlstat(char *path, \ struct l_newstat *buf); } 69 AUE_NULL UNIMPL 70 AUE_NULL UNIMPL -71 AUE_NULL MSTD { int linux_mmap(l_ulong addr, l_ulong len, \ +71 AUE_MMAP MSTD { int linux_mmap(l_ulong addr, l_ulong len, \ l_ulong prot, l_ulong flags, l_ulong fd, \ l_ulong pos); } 72 AUE_NULL UNIMPL -73 AUE_NULL MSTD { int linux_munmap(l_ulong addr, \ +73 AUE_MUNMAP MSTD { int linux_munmap(l_ulong addr, \ l_size_t len); } -74 AUE_NULL MSTD { int linux_mprotect(l_ulong addr, \ +74 AUE_MPROTECT MSTD { int linux_mprotect(l_ulong addr, \ l_size_t len, l_ulong prot); } -75 AUE_NULL MNOPROTO { int madvise(void *addr, \ +75 AUE_MADVISE MNOPROTO { int madvise(void *addr, \ size_t len, int behav); } -76 AUE_NULL MSTD { int linux_vhangup(void); } +76 AUE_O_VHANGUP MSTD { int linux_vhangup(void); } 77 AUE_NULL UNIMPL 78 AUE_NULL UNIMPL -79 AUE_NULL MSTD { int linux_setgroups(l_int gidsetsize, \ +79 AUE_SETGROUPS MSTD { int linux_setgroups(l_int gidsetsize, \ l_gid_t *grouplist); } -80 AUE_NULL MSTD { int linux_getgroups(l_int gidsetsize, \ +80 AUE_GETGROUPS MSTD { int linux_getgroups(l_int gidsetsize, \ l_gid_t *grouplist); } 81 AUE_NULL UNIMPL -82 AUE_NULL MNODEF setpgid setpgid setpgid_args int -83 AUE_NULL MSTD { int osf1_setitimer(u_int which, \ +82 AUE_SETPGRP MNODEF setpgid setpgid setpgid_args int +83 AUE_SETITIMER MSTD { int osf1_setitimer(u_int which, \ struct itimerval *itv, \ struct itimerval *oitv); } 84 AUE_NULL UNIMPL 85 AUE_NULL UNIMPL -86 AUE_NULL UNIMPL osf_getitimer -87 AUE_NULL MSTD { int linux_gethostname(void); } -88 AUE_NULL MNOPROTO { int osethostname(char *hostname, \ +86 AUE_GETITIMER UNIMPL osf_getitimer +87 AUE_SYSCTL MSTD { int linux_gethostname(void); } +88 AUE_SYSCTL MNOPROTO { int osethostname(char *hostname, \ u_int len); } osethostname \ sethostname_args int -89 AUE_NULL MSTD { int linux_getdtablesize(void); } -90 AUE_NULL MNOPROTO { int dup2(u_int from, u_int to); } -91 AUE_NULL MSTD { int linux_newfstat(l_uint fd, \ +89 AUE_GETDTABLESIZE MSTD { int linux_getdtablesize(void); } +90 AUE_DUP2 MNOPROTO { int dup2(u_int from, u_int to); } +91 AUE_FSTAT MSTD { int linux_newfstat(l_uint fd, \ struct l_newstat *buf); } -92 AUE_NULL MSTD { int linux_fcntl(l_uint fd, l_uint cmd, \ +92 AUE_FCNTL MSTD { int linux_fcntl(l_uint fd, l_uint cmd, \ l_ulong arg); } -93 AUE_NULL MSTD { int osf1_select(u_int nd, fd_set *in, \ +93 AUE_SELECT MSTD { int osf1_select(u_int nd, fd_set *in, \ fd_set *ou, fd_set *ex, \ struct timeval *tv); } -94 AUE_NULL MNOPROTO { int poll(struct pollfd*, unsigned int \ +94 AUE_POLL MNOPROTO { int poll(struct pollfd*, unsigned int \ nfds, long timeout); } -95 AUE_NULL MNOPROTO { int fsync(int fd); } -96 AUE_NULL MNOPROTO { int setpriority(int which, \ +95 AUE_FSYNC MNOPROTO { int fsync(int fd); } +96 AUE_SETPRIORITY MNOPROTO { int setpriority(int which, \ int who, int prio); } -97 AUE_NULL MSTD { int osf1_socket(int domain, int type, \ +97 AUE_SOCKET MSTD { int osf1_socket(int domain, int type, \ int protocol); } -98 AUE_NULL MSTD { int linux_connect(l_int s, \ +98 AUE_CONNECT MSTD { int linux_connect(l_int s, \ struct l_sockaddr *name, l_int namelen); } -99 AUE_NULL MNOPROTO { int oaccept(int s, caddr_t name, \ +99 AUE_ACCEPT MNOPROTO { int oaccept(int s, caddr_t name, \ int *anamelen); } accept accept_args int -100 AUE_NULL MSTD { int linux_getpriority(int which, int who); } -101 AUE_NULL MNOPROTO { int osend(int s, caddr_t buf, int len, \ +100 AUE_GETPRIORITY MSTD { int linux_getpriority(int which, int who); } +101 AUE_SEND MNOPROTO { int osend(int s, caddr_t buf, int len, \ int flags); } -102 AUE_NULL MNOPROTO { int orecv(int s, caddr_t buf, int len, \ +102 AUE_RECV MNOPROTO { int orecv(int s, caddr_t buf, int len, \ int flags); } 103 AUE_NULL MSTD { int osf1_sigreturn( \ struct osigcontext *sigcntxp); } -104 AUE_NULL MNOPROTO { int bind(int s, caddr_t name, \ +104 AUE_BIND MNOPROTO { int bind(int s, caddr_t name, \ int namelen); } -105 AUE_NULL MNOPROTO { int setsockopt(int s, int level, int name, \ +105 AUE_SETSOCKOPT MNOPROTO { int setsockopt(int s, int level, int name, \ caddr_t val, int valsize); } -106 AUE_NULL MNOPROTO { int listen(int s, int backlog); } +106 AUE_LISTEN MNOPROTO { int listen(int s, int backlog); } 107 AUE_NULL UNIMPL 108 AUE_NULL UNIMPL 109 AUE_NULL UNIMPL 110 AUE_NULL UNIMPL 111 AUE_NULL MSTD { int osf1_sigsuspend(unsigned long ss); } 112 AUE_NULL UNIMPL osf_sigstack -113 AUE_NULL MSTD { int linux_recvmsg(void); } -114 AUE_NULL MSTD { int linux_sendmsg(void); } +113 AUE_RECVMSG MSTD { int linux_recvmsg(void); } +114 AUE_SENDMSG MSTD { int linux_sendmsg(void); } 115 AUE_NULL UNIMPL -116 AUE_NULL MSTD { int osf1_gettimeofday(struct timeval *tp, \ +116 AUE_NULL MSTD { int osf1_gettimeofday( \ + struct timeval *tp, \ struct timezone *tzp); } -117 AUE_NULL MSTD { int osf1_getrusage(long who, \ +117 AUE_GETRUSAGE MSTD { int osf1_getrusage(long who, \ void *rusage); } -118 AUE_NULL MNOPROTO { int getsockopt(int s, int level, int name, \ +118 AUE_GETSOCKOPT MNOPROTO { int getsockopt(int s, int level, int name, \ caddr_t val, int *avalsize); } 119 AUE_NULL UNIMPL -120 AUE_NULL MNOPROTO { int readv(int fd, struct iovec *iovp, \ +120 AUE_READV MNOPROTO { int readv(int fd, struct iovec *iovp, \ u_int iovcnt); } -121 AUE_NULL MNOPROTO { int writev(int fd, struct iovec *iovp, \ +121 AUE_WRITEV MNOPROTO { int writev(int fd, struct iovec *iovp, \ u_int iovcnt); } -122 AUE_NULL UNIMPL osf_settimeofday -123 AUE_NULL MNOPROTO { int fchown(int fd, int uid, int gid); } -124 AUE_NULL MNOPROTO { int fchmod(int fd, int mode); } -125 AUE_NULL MNOPROTO { int orecvfrom(int s, caddr_t buf, \ +122 AUE_SETTIMEOFDAY UNIMPL osf_settimeofday +123 AUE_FCHOWN NOPROTO { int fchown(int fd, int uid, int gid); } +124 AUE_FCHMOD NOPROTO { int fchmod(int fd, int mode); } +125 AUE_RECVFROM NOPROTO { int orecvfrom(int s, caddr_t buf, \ size_t len, int flags, caddr_t from, \ int *fromlenaddr); } recvfrom \ recvfrom_args int -126 AUE_NULL MNOPROTO { int setreuid(int ruid, int euid); } -127 AUE_NULL MNOPROTO { int setregid(int rgid, int egid); } -128 AUE_NULL MSTD { int linux_rename(char *from, char *to); } -129 AUE_NULL MSTD { int linux_truncate(char *path, \ +126 AUE_SETREUID MNOPROTO { int setreuid(int ruid, int euid); } +127 AUE_SETREGID MNOPROTO { int setregid(int rgid, int egid); } +128 AUE_RENAME MSTD { int linux_rename(char *from, char *to); } +129 AUE_TRUNCATE MSTD { int linux_truncate(char *path, \ l_ulong length); } -130 AUE_NULL MNOPROTO { int oftruncate(int fd, long length); } -131 AUE_NULL MNOPROTO { int flock(int fd, int how); } -132 AUE_NULL MNOPROTO { int setgid(gid_t gid); } -133 AUE_NULL MSTD { int osf1_sendto(int s, caddr_t buf, \ +130 AUE_FTRUNCATE MNOPROTO { int oftruncate(int fd, long length); } +131 AUE_FLOCK MNOPROTO { int flock(int fd, int how); } +132 AUE_SETGID MNOPROTO { int setgid(gid_t gid); } +133 AUE_SENDTO MSTD { int osf1_sendto(int s, caddr_t buf, \ size_t len, int flags, \ struct sockaddr *to, int tolen); } -134 AUE_NULL MNOPROTO { int shutdown(int s, int how); } -135 AUE_NULL MSTD { int linux_socketpair(void); } -136 AUE_NULL MSTD { int linux_mkdir(char *path, l_int mode); } -137 AUE_NULL MSTD { int linux_rmdir(char *path); } -138 AUE_NULL MNOPROTO { int utimes(char *path, \ +134 AUE_SHUTDOWN MNOPROTO { int shutdown(int s, int how); } +135 AUE_SOCKETPAIR MSTD { int linux_socketpair(void); } +136 AUE_MKDIR MSTD { int linux_mkdir(char *path, l_int mode); } +137 AUE_RMDIR MSTD { int linux_rmdir(char *path); } +138 AUE_UTIMES MNOPROTO { int utimes(char *path, \ struct timeval *tptr); } 139 AUE_NULL UNIMPL 140 AUE_NULL UNIMPL -141 AUE_NULL MNOPROTO { int ogetpeername(int fdes, caddr_t asa, \ +141 AUE_GETPEERNAME MNOPROTO { int ogetpeername(int fdes, caddr_t asa, \ int *alen); } 142 AUE_NULL UNIMPL 143 AUE_NULL UNIMPL -144 AUE_NULL MSTD { int linux_getrlimit(l_uint resource, \ +144 AUE_GETRLIMIT MSTD { int linux_getrlimit(l_uint resource, \ struct l_rlimit *rlim); } -145 AUE_NULL MSTD { int linux_setrlimit(l_uint resource, \ +145 AUE_SETRLIMIT MSTD { int linux_setrlimit(l_uint resource, \ struct l_rlimit *rlim); } 146 AUE_NULL UNIMPL -147 AUE_NULL MNOPROTO { int setsid(void); } -148 AUE_NULL MSTD { int linux_quotactl(void); } +147 AUE_SETSID MNOPROTO { int setsid(void); } +148 AUE_QUOTACTL MSTD { int linux_quotactl(void); } 149 AUE_NULL UNIMPL -150 AUE_NULL MNOPROTO { int ogetsockname(int fdec, caddr_t asa, \ +150 AUE_GETSOCKNAME MNOPROTO { int ogetsockname(int fdec, caddr_t asa, \ int *alen);} getsockname \ getsockname_args int 151 AUE_NULL UNIMPL @@ -264,15 +265,15 @@ struct osf1_sigaction *osa); } 157 AUE_NULL UNIMPL 158 AUE_NULL UNIMPL -159 AUE_NULL UNIMPL osf_getdirentries -160 AUE_NULL UNIMPL osf_statfs -161 AUE_NULL UNIMPL osf_fstatfs +159 AUE_GETDIRENTRIES UNIMPL osf_getdirentries +160 AUE_STATFS UNIMPL osf_statfs +161 AUE_FSTATFS UNIMPL osf_fstatfs 162 AUE_NULL UNIMPL 163 AUE_NULL UNIMPL 164 AUE_NULL UNIMPL -165 AUE_NULL UNIMPL osf_getdomainname -166 AUE_NULL MNOPROTO { int setdomainname(char *name, \ - int len); } +165 AUE_SYSCTL UNIMPL osf_getdomainname +166 AUE_SYSCTL MNOPROTO { int setdomainname( \ + char *name, int len); } 167 AUE_NULL UNIMPL 168 AUE_NULL UNIMPL 169 AUE_NULL UNIMPL @@ -305,39 +306,39 @@ 196 AUE_NULL UNIMPL 197 AUE_NULL UNIMPL 198 AUE_NULL UNIMPL -199 AUE_NULL UNIMPL osf_swapon -200 AUE_NULL MSTD { int linux_msgctl(l_int msqid, l_int cmd, \ +199 AUE_SWAPON UNIMPL osf_swapon +200 AUE_MSGCTL MSTD { int linux_msgctl(l_int msqid, l_int cmd, \ struct l_msqid_ds *buf); } -201 AUE_NULL MSTD { int linux_msgget(l_key_t key, \ +201 AUE_MSGGET MSTD { int linux_msgget(l_key_t key, \ l_int msgflg); } -202 AUE_NULL MSTD { int linux_msgrcv(l_int msqid, \ +202 AUE_MSGRCV MSTD { int linux_msgrcv(l_int msqid, \ struct l_msgbuf *msgp, l_size_t msgsz, \ l_long msgtyp, l_int msgflg); } -203 AUE_NULL MSTD { int linux_msgsnd(l_int msqid, \ +203 AUE_MSGSND MSTD { int linux_msgsnd(l_int msqid, \ struct l_msgbuf *msgp, l_size_t msgsz, \ l_int msgflg); } -204 AUE_NULL STD { int linux_semctl(l_int semid, \ +204 AUE_SEMCTL STD { int linux_semctl(l_int semid, \ l_int semnum, l_int cmd, \ union l_semun arg); } -205 AUE_NULL MSTD { int linux_semget(l_key_t key, l_int nsems, \ +205 AUE_SEMGET MSTD { int linux_semget(l_key_t key, l_int nsems, \ l_int semflg); } -206 AUE_NULL MSTD { int linux_semop(l_int semid, \ +206 AUE_SEMOP MSTD { int linux_semop(l_int semid, \ struct l_sembuf *tsops, l_uint nsops); } 207 AUE_NULL UNIMPL osf_utsname -208 AUE_NULL MSTD { int linux_lchown(char *path, l_uid_t uid, \ +208 AUE_LCHOWN MSTD { int linux_lchown(char *path, l_uid_t uid, \ l_gid_t gid); } -209 AUE_NULL MSTD { int linux_shmat(l_int shmid, \ +209 AUE_SHMAT MSTD { int linux_shmat(l_int shmid, \ char *shmaddr, l_int shmflg); } -210 AUE_NULL MSTD { int linux_shmctl(l_int shmid, l_int cmd, \ +210 AUE_SHMCTL MSTD { int linux_shmctl(l_int shmid, l_int cmd, \ struct l_shmid_ds *buf); } -211 AUE_NULL MSTD { int linux_shmdt(char *shmaddr); } -212 AUE_NULL MSTD { int linux_shmget(l_key_t key, \ +211 AUE_SHMDT MSTD { int linux_shmdt(char *shmaddr); } +212 AUE_SHMGET MSTD { int linux_shmget(l_key_t key, \ l_size_t size, l_int shmflg); } 213 AUE_NULL UNIMPL 214 AUE_NULL UNIMPL 215 AUE_NULL UNIMPL 216 AUE_NULL UNIMPL -217 AUE_NULL MSTD { int linux_msync(l_ulong addr, \ +217 AUE_MSYNC MSTD { int linux_msync(l_ulong addr, \ l_size_t len, l_int fl); } 218 AUE_NULL UNIMPL 219 AUE_NULL UNIMPL @@ -354,8 +355,8 @@ 230 AUE_NULL UNIMPL 231 AUE_NULL UNIMPL 232 AUE_NULL UNIMPL -233 AUE_NULL MNOPROTO { int getpgid(int pid); } -234 AUE_NULL MSTD { int linux_getsid(l_pid_t pid); } +233 AUE_GETPPID MNOPROTO { int getpgid(int pid); } +234 AUE_GETSID MSTD { int linux_getsid(l_pid_t pid); } 235 AUE_NULL MSTD { int linux_sigaltstack(void); } 236 AUE_NULL UNIMPL 237 AUE_NULL UNIMPL @@ -427,14 +428,14 @@ 297 AUE_NULL UNIMPL 298 AUE_NULL UNIMPL 299 AUE_NULL UNIMPL -300 AUE_NULL MSTD { int linux_bdflush(void); } +300 AUE_BDFLUSH MSTD { int linux_bdflush(void); } 301 AUE_NULL MSTD { int linux_sethae(void); } -302 AUE_NULL STD { int linux_mount(char *specialfile, \ +302 AUE_MOUNT STD { int linux_mount(char *specialfile, \ char *dir, char *filesystemtype, \ l_ulong rwflag, void *data); } -303 AUE_NULL MSTD { int linux_old_adjtimex(void); } -304 AUE_NULL MSTD { int linux_swapoff(void); } -305 AUE_NULL STD { int linux_getdents(l_uint fd, void *dent, \ +303 AUE_ADJTIME MSTD { int linux_old_adjtimex(void); } +304 AUE_SWAPOFF MSTD { int linux_swapoff(void); } +305 AUE_O_GETDENTS STD { int linux_getdents(l_uint fd, void *dent, \ l_uint count); } 306 AUE_NULL MSTD { int linux_create_module(void); } 307 AUE_NULL MSTD { int linux_init_module(void); } @@ -442,46 +443,46 @@ 309 AUE_NULL MSTD { int linux_get_kernel_syms(void); } 310 AUE_NULL MSTD { int linux_syslog(l_int type, char *buf, \ l_int len); } -311 AUE_NULL MSTD { int linux_reboot(l_int magic1, \ +311 AUE_REBOOT MSTD { int linux_reboot(l_int magic1, \ l_int magic2, l_uint cmd, void *arg); } -312 AUE_NULL MSTD { int linux_clone(l_int flags, void *stack); } -313 AUE_NULL STD { int linux_uselib(char *library); } -314 AUE_NULL MNOPROTO { int mlock(const void *addr, \ +312 AUE_RFORK MSTD { int linux_clone(l_int flags, void *stack); } +313 AUE_USELIB STD { int linux_uselib(char *library); } +314 AUE_MLOCK MNOPROTO { int mlock(const void *addr, \ size_t len); } -315 AUE_NULL MNOPROTO { int munlock(const void *addr, \ +315 AUE_MUNLOCK MNOPROTO { int munlock(const void *addr, \ size_t len); } -316 AUE_NULL MNOPROTO { int mlockall(int how); } -317 AUE_NULL MNOPROTO { int munlockall(void); } +316 AUE_MLOCKALL MNOPROTO { int mlockall(int how); } +317 AUE_MUNLOCKALL MNOPROTO { int munlockall(void); } 318 AUE_NULL MSTD { int linux_sysinfo(void); } -319 AUE_NULL MSTD { int linux_sysctl( \ +319 AUE_SYSCTL MSTD { int linux_sysctl( \ struct l___sysctl_args *args); } 320 AUE_NULL UNIMPL sys_idle -321 AUE_NULL STD { int linux_oldumount(char *path); } -322 AUE_NULL MNOPROTO { int swapon(char *name); } +321 AUE_UMOUNT STD { int linux_oldumount(char *path); } +322 AUE_SWAPON MNOPROTO { int swapon(char *name); } 323 AUE_NULL MSTD { int linux_times(struct l_times_argv *buf); } -324 AUE_NULL MSTD { int linux_personality(l_ulong per); } -325 AUE_NULL MSTD { int linux_setfsuid(l_uid_t uid); } -326 AUE_NULL MSTD { int linux_setfsgid(l_gid_t gid); } +324 AUE_PERSONALITY MSTD { int linux_personality(l_ulong per); } +325 AUE_SETFSUID MSTD { int linux_setfsuid(l_uid_t uid); } +326 AUE_GETFSUID MSTD { int linux_setfsgid(l_gid_t gid); } 327 AUE_NULL MSTD { int linux_ustat(l_dev_t dev, \ struct l_ustat *ubuf); } -328 AUE_NULL MSTD { int linux_statfs(char *path, \ +328 AUE_STATFS MSTD { int linux_statfs(char *path, \ struct l_statfs_buf *buf); } -329 AUE_NULL MSTD { int linux_fstatfs(l_uint fd, \ +329 AUE_FSTATFS MSTD { int linux_fstatfs(l_uint fd, \ struct l_statfs_buf *buf); } -330 AUE_NULL MNOPROTO { int sched_setparam(pid_t pid, \ +330 AUE_SCHED_SETPARAM MNOPROTO { int sched_setparam(pid_t pid, \ const struct sched_param *param); } -331 AUE_NULL MNOPROTO { int sched_getparam(pid_t pid, \ +331 AUE_SCHED_GETPARAM MNOPROTO { int sched_getparam(pid_t pid, \ struct sched_param *param); } -332 AUE_NULL MSTD { int linux_sched_setscheduler(l_pid_t pid, \ +332 AUE_SCHED_SETSCHEDULER MSTD { int linux_sched_setscheduler(l_pid_t pid, \ l_int policy, \ struct l_sched_param *param); } -333 AUE_NULL MSTD { int linux_sched_getscheduler(l_pid_t pid); } +333 AUE_SCHED_GETSCHEDULER MSTD { int linux_sched_getscheduler(l_pid_t pid); } 334 AUE_NULL MNOPROTO { int sched_yield(void); } -335 AUE_NULL MSTD { int linux_sched_get_priority_max( \ +335 AUE_SCHED_GET_PRIORITY_MAX MSTD { int linux_sched_get_priority_max( \ l_int policy); } -336 AUE_NULL MSTD { int linux_sched_get_priority_min( \ +336 AUE_SCHED_GET_PRIORITY_MIN MSTD { int linux_sched_get_priority_min( \ l_int policy); } -337 AUE_NULL MNOPROTO { int sched_rr_get_interval (pid_t pid, \ +337 AUE_SCHED_RR_GET_INTERVAL MNOPROTO { int sched_rr_get_interval (pid_t pid, \ struct timespec *interval); } 338 AUE_NULL UNIMPL sys_afs_syscall 339 AUE_NULL MSTD { int linux_newuname( \ @@ -493,17 +494,17 @@ l_ulong old_len, l_ulong new_len, \ l_ulong flags, l_ulong new_addr); } 342 AUE_NULL MSTD { int linux_nfsservctl(void); } -343 AUE_NULL MNOPROTO { int setresuid(uid_t ruid, \ +343 AUE_SETRESUID MNOPROTO { int setresuid(uid_t ruid, \ uid_t euid, uid_t suid); } -344 AUE_NULL MNOPROTO { int getresuid(uid_t *ruid, \ +344 AUE_GETRESUID MNOPROTO { int getresuid(uid_t *ruid, \ uid_t *euid, uid_t *suid); } 345 AUE_NULL MSTD { int linux_pciconfig_read(void); } 346 AUE_NULL MSTD { int linux_pciconfig_write(void); } 347 AUE_NULL MSTD { int linux_query_module(void); } -348 AUE_NULL MSTD { int linux_prctl(void); } -349 AUE_NULL MSTD { int linux_pread(l_uint fd, char *buf, \ +348 AUE_PRCTL MSTD { int linux_prctl(void); } +349 AUE_PREAD MSTD { int linux_pread(l_uint fd, char *buf, \ l_size_t nbyte, l_loff_t offset); } -350 AUE_NULL MSTD { int linux_pwrite(l_uint fd, char *buf, \ +350 AUE_PWRITE MSTD { int linux_pwrite(l_uint fd, char *buf, \ l_size_t nbyte, l_loff_t offset); } 351 AUE_NULL MSTD { int linux_rt_sigreturn(void); } 352 AUE_NULL MSTD { int linux_rt_sigaction(l_int sig, \ @@ -517,42 +518,42 @@ 356 AUE_NULL MSTD { int linux_rt_sigqueueinfo(void); } 357 AUE_NULL MSTD { int linux_rt_sigsuspend(l_sigset_t \ *newset, l_size_t sigsetsize); } -358 AUE_NULL MSTD { int linux_select(l_int nfds, \ +358 AUE_SELECT MSTD { int linux_select(l_int nfds, \ l_fd_set *readfds, l_fd_set *writefds, \ l_fd_set *exceptfds, \ struct l_timeval *timeout); } 359 AUE_NULL MNOPROTO { int gettimeofday( \ struct timeval *tp, \ struct timezone *tzp); } -360 AUE_NULL MNOPROTO { int settimeofday( \ +360 AUE_SETTIMEOFDAY MNOPROTO { int settimeofday( \ struct timeval *tp, \ struct timezone *tzp); } -361 AUE_NULL MSTD { int linux_getitimer(l_int which, \ +361 AUE_GETITIMER MSTD { int linux_getitimer(l_int which, \ struct l_itimerval *itv); } -362 AUE_NULL MSTD { int linux_setitimer(l_int which, \ +362 AUE_SETITIMER MSTD { int linux_setitimer(l_int which, \ struct l_itimerval *itv, \ struct l_itimerval *oitv); } -363 AUE_NULL MSTD { int linux_utimes(char *fname, \ +363 AUE_UTIMES MSTD { int linux_utimes(char *fname, \ struct l_timeval *times); } -364 AUE_NULL MNOPROTO { int getrusage(int who, \ +364 AUE_GETRUSAGE MNOPROTO { int getrusage(int who, \ struct rusage *rusage); } -365 AUE_NULL MSTD { int linux_wait4(l_pid_t pid, \ +365 AUE_WAIT4 MSTD { int linux_wait4(l_pid_t pid, \ l_uint *status, l_int options, \ struct l_rusage *rusage); } -366 AUE_NULL MSTD { int linux_adjtimex(void); } -367 AUE_NULL MSTD { int linux_getcwd(char *buf, \ +366 AUE_ADJTIME MSTD { int linux_adjtimex(void); } +367 AUE_GETCWD MSTD { int linux_getcwd(char *buf, \ l_ulong bufsize); } -368 AUE_NULL MSTD { int linux_capget(void); } -369 AUE_NULL MSTD { int linux_capset(void); } -370 AUE_NULL MSTD { int linux_sendfile(void); } -371 AUE_NULL MNOPROTO { int setresgid(gid_t rgid, \ +368 AUE_CAPGET MSTD { int linux_capget(void); } +369 AUE_CAPSET MSTD { int linux_capset(void); } +370 AUE_SENDFILE MSTD { int linux_sendfile(void); } +371 AUE_SETRESGID MNOPROTO { int setresgid(gid_t rgid, \ gid_t egid, gid_t sgid); } -372 AUE_NULL MNOPROTO { int getresgid(gid_t *rgid, \ +372 AUE_GETRESGID MNOPROTO { int getresgid(gid_t *rgid, \ gid_t *egid, gid_t *sgid); } 373 AUE_NULL UNIMPL sys_dipc -374 AUE_NULL MSTD { int linux_pivot_root(char *new_root, \ +374 AUE_PIVOT_ROOT MSTD { int linux_pivot_root(char *new_root, \ char *put_old); } -375 AUE_NULL MSTD { int linux_mincore(l_ulong start, \ +375 AUE_MINCORE MSTD { int linux_mincore(l_ulong start, \ l_size_t len, u_char *vec); } 376 AUE_NULL MSTD { int linux_pciconfig_iobase(void); } -377 AUE_NULL STD { int linux_getdents64(l_uint fd, void *dirent, l_uint count); } +377 AUE_O_GETDENTS STD { int linux_getdents64(l_uint fd, void *dirent, l_uint count); } ==== //depot/projects/arm/src/sys/amd64/amd64/trap.c#6 (text+ko) ==== @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/amd64/trap.c,v 1.300 2006/01/27 22:22:10 jhb Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/amd64/trap.c,v 1.301 2006/02/04 20:37:20 wsalamon Exp $"); /* * AMD64 Trap and System call handling @@ -75,6 +75,7 @@ #ifdef HWPMC_HOOKS #include <sys/pmckern.h> #endif +#include <security/audit/audit.h> #include <vm/vm.h> #include <vm/vm_param.h> @@ -823,10 +824,15 @@ if ((callp->sy_narg & SYF_MPSAFE) == 0) { mtx_lock(&Giant); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, argp); + AUDIT_SYSCALL_EXIT(error, td); mtx_unlock(&Giant); - } else + } else { + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, argp); + AUDIT_SYSCALL_EXIT(error, td); + } } switch (error) { ==== //depot/projects/arm/src/sys/amd64/ia32/ia32_syscall.c#3 (text+ko) ==== @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/amd64/ia32/ia32_syscall.c,v 1.9 2005/10/14 12:43:43 davidxu Exp $"); +__FBSDID("$FreeBSD: src/sys/amd64/ia32/ia32_syscall.c,v 1.10 2006/02/04 20:37:20 wsalamon Exp $"); /* * 386 Trap and System call handling @@ -66,6 +66,7 @@ #ifdef KTRACE #include <sys/ktrace.h> #endif +#include <security/audit/audit.h> #include <vm/vm.h> #include <vm/vm_param.h> @@ -184,7 +185,9 @@ STOPEVENT(p, S_SCE, narg); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, args64); + AUDIT_SYSCALL_EXIT(error, td); } switch (error) { ==== //depot/projects/arm/src/sys/arm/arm/trap.c#6 (text+ko) ==== @@ -82,7 +82,7 @@ #include "opt_ktrace.h" #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/arm/trap.c,v 1.19 2006/01/06 18:02:12 jhb Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/arm/trap.c,v 1.20 2006/02/04 17:01:19 cognet Exp $"); #include <sys/types.h> @@ -119,6 +119,8 @@ #include <machine/proc.h> #include <machine/swi.h> +#include <security/audit/audit.h> + #ifdef KDB #include <sys/kdb.h> #endif @@ -927,7 +929,9 @@ td->td_retval[1] = 0; STOPEVENT(p, S_SCE, (callp->sy_narg & SYF_ARGMASK)); PTRACESTOP_SC(p, td, S_PT_SCE); + AUDIT_SYSCALL_ENTER(code, td); error = (*callp->sy_call)(td, args); + AUDIT_SYSCALL_EXIT(error, td); } switch (error) { case 0: ==== //depot/projects/arm/src/sys/arm/xscale/i80321/i80321_aau.c#3 (text+ko) ==== @@ -23,7 +23,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: src/sys/arm/xscale/i80321/i80321_aau.c,v 1.2 2005/12/09 23:55:41 cognet Exp $"); +__FBSDID("$FreeBSD: src/sys/arm/xscale/i80321/i80321_aau.c,v 1.3 2006/02/04 18:01:15 cognet Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -183,6 +183,7 @@ desc = sc->aauring[0].desc; if (flags & IS_PHYSICAL) { desc->local_addr = (vm_paddr_t)dst; + desc->next_desc = 0; desc->count = len; desc->descr_ctrl = 2 << 1 | 1 << 31; /* Fill, enable dest write */ bus_dmamap_sync(sc->dmatag, sc->aauring[0].map, ==== //depot/projects/arm/src/sys/bsm/audit.h#3 (text+ko) ==== @@ -30,7 +30,7 @@ * * @APPLE_BSD_LICENSE_HEADER_END@ * - * $P4: //depot/projects/arm/src/sys/bsm/audit.h#2 $ + * $P4: //depot/projects/arm/src/sys/bsm/audit.h#3 $ * $FreeBSD: src/sys/bsm/audit.h,v 1.2 2006/02/01 19:54:22 rwatson Exp $ */ ==== //depot/projects/arm/src/sys/bsm/audit_internal.h#2 (text+ko) ==== @@ -34,7 +34,7 @@ * * @APPLE_BSD_LICENSE_HEADER_END@ * - * $P4: //depot/projects/arm/src/sys/bsm/audit_internal.h#1 $ + * $P4: //depot/projects/arm/src/sys/bsm/audit_internal.h#2 $ * $FreeBSD: src/sys/bsm/audit_internal.h,v 1.1 2006/02/01 19:54:22 rwatson Exp $ */ ==== //depot/projects/arm/src/sys/bsm/audit_kevents.h#4 (text+ko) ==== @@ -30,8 +30,8 @@ * * @APPLE_BSD_LICENSE_HEADER_END@ * - * $P4: //depot/projects/arm/src/sys/bsm/audit_kevents.h#3 $ - * $FreeBSD: src/sys/bsm/audit_kevents.h,v 1.3 2006/02/01 19:54:22 rwatson Exp $ + * $P4: //depot/projects/arm/src/sys/bsm/audit_kevents.h#4 $ + * $FreeBSD: src/sys/bsm/audit_kevents.h,v 1.4 2006/02/04 13:22:44 rwatson Exp $ */ #ifndef _BSM_AUDIT_KEVENTS_H_ @@ -46,7 +46,6 @@ * been inserted for the Darwin variants. If necessary, other tags will be * added in the future. */ - #define AUE_NULL 0 #define AUE_EXIT 1 #define AUE_FORK 2 @@ -359,7 +358,32 @@ #define AUE_KQUEUE 377 /* FreeBSD-specific. */ #define AUE_KEVENT 378 /* FreeBSD-specific. */ #define AUE_FSYNC 379 -#define AUE_NMOUNT 380 /* FreeBSD-specific. */ +#define AUE_NMOUNT 380 /* FreeBSD-specific. */ +#define AUE_BDFLUSH 381 /* Linux-specific. */ +#define AUE_SETFSUID 382 /* Linux-specific. */ +#define AUE_GETFSUID 383 /* Linux-specific. */ +#define AUE_PERSONALITY 384 /* Linux-specific. */ +#define AUE_SCHED_GETSCHEDULER 385 /* POSIX.1b. */ +#define AUE_SCHED_SETSCHEDULER 386 /* POSIX.1b. */ +#define AUE_PRCTL 387 /* Linux-specific. */ +#define AUE_GETCWD 388 /* FreeBSD/Linux-specific. */ +#define AUE_CAPGET 389 /* Linux-specific. */ +#define AUE_CAPSET 390 /* Linux-specific. */ +#define AUE_PIVOT_ROOT 391 /* Linux-specific. */ +#define AUE_RTPRIO 392 /* FreeBSD-specific. */ +#define AUE_SCHED_GETPARAM 393 /* POSIX.1b. */ +#define AUE_SCHED_SETPARAM 394 /* POSIX.1b. */ +#define AUE_SCHED_GET_PRIORITY_MAX 395 /* POSIX.1b. */ +#define AUE_SCHED_GET_PRIORITY_MIN 396 /* POSIX.1b. */ +#define AUE_SCHED_RR_GET_INTERVAL 397 /* POSIX.1b. */ +#define AUE_ACL_GET_FILE 398 /* FreeBSD. */ +#define AUE_ACL_SET_FILE 399 /* FreeBSD. */ +#define AUE_ACL_GET_FD 400 /* FreeBSD. */ +#define AUE_ACL_SET_FD 401 /* FreeBSD. */ +#define AUE_ACL_DELETE_FILE 402 /* FreeBSD. */ +#define AUE_ACL_DELETE_FD 403 /* FreeBSD. */ +#define AUE_ACL_CHECK_FILE 404 /* FreeBSD. */ +#define AUE_ACL_CHECK_FD 405 /* FreeBSD. */ /* * Darwin BSM uses a number of AUE_O_* definitions, which are aliased to the @@ -405,6 +429,7 @@ #define AUE_O_RECVFROM AUE_RECVFROM /* Darwin */ #define AUE_O_SETREUID AUE_SETREUID /* Darwin */ #define AUE_O_SETREGID AUE_SETREGID /* Darwin */ +#define AUE_O_GETDIRENTRIES AUE_GETDIRENTRIES /* Darwin */ #define AUE_O_TRUNCATE AUE_TRUNCATE /* Darwin */ #define AUE_O_FTRUNCATE AUE_FTRUNCATE /* Darwin */ #define AUE_O_GETPEERNAME AUE_NULL /* Darwin */ @@ -468,6 +493,8 @@ #define AUE_MUNLOCKALL AUE_NULL #define AUE_PREAD AUE_NULL #define AUE_PWRITE AUE_NULL +#define AUE_PREADV AUE_NULL +#define AUE_PWRITEV AUE_NULL #define AUE_SBRK AUE_NULL #define AUE_SELECT AUE_NULL #define AUE_SEMDESTROY AUE_NULL ==== //depot/projects/arm/src/sys/bsm/audit_record.h#2 (text+ko) ==== @@ -30,7 +30,7 @@ * * @APPLE_BSD_LICENSE_HEADER_END@ * - * $P4: //depot/projects/arm/src/sys/bsm/audit_record.h#1 $ + * $P4: //depot/projects/arm/src/sys/bsm/audit_record.h#2 $ * $FreeBSD: src/sys/bsm/audit_record.h,v 1.1 2006/02/01 19:54:22 rwatson Exp $ */ ==== //depot/projects/arm/src/sys/compat/freebsd32/freebsd32_proto.h#7 (text+ko) ==== @@ -2,8 +2,8 @@ * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/compat/freebsd32/freebsd32_proto.h,v 1.51 2006/01/20 21:10:37 ambrisko Exp $ - * created from FreeBSD + * $FreeBSD: src/sys/compat/freebsd32/freebsd32_proto.h,v 1.52 2006/02/04 13:29:09 rwatson Exp $ + * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.63 2006/02/04 13:28:55 rwatson Exp */ #ifndef _FREEBSD32_SYSPROTO_H_ ==== //depot/projects/arm/src/sys/compat/freebsd32/freebsd32_syscall.h#7 (text+ko) ==== @@ -2,8 +2,8 @@ * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscall.h,v 1.49 2006/01/20 16:22:37 ambrisko Exp $ - * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.61 2005/12/23 20:06:14 ru Exp + * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscall.h,v 1.50 2006/02/04 13:29:09 rwatson Exp $ + * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.63 2006/02/04 13:28:55 rwatson Exp */ #define FREEBSD32_SYS_syscall 0 ==== //depot/projects/arm/src/sys/compat/freebsd32/freebsd32_syscalls.c#7 (text+ko) ==== @@ -2,8 +2,8 @@ * System call names. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscalls.c,v 1.40 2006/01/20 16:22:37 ambrisko Exp $ - * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.61 2005/12/23 20:06:14 ru Exp + * $FreeBSD: src/sys/compat/freebsd32/freebsd32_syscalls.c,v 1.41 2006/02/04 13:29:09 rwatson Exp $ + * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.63 2006/02/04 13:28:55 rwatson Exp */ const char *freebsd32_syscallnames[] = { ==== //depot/projects/arm/src/sys/compat/freebsd32/freebsd32_sysent.c#7 (text+ko) ==== @@ -2,8 +2,8 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/compat/freebsd32/freebsd32_sysent.c,v 1.50 2006/01/20 16:22:37 ambrisko Exp $ - * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.61 2005/12/23 20:06:14 ru Exp + * $FreeBSD: src/sys/compat/freebsd32/freebsd32_sysent.c,v 1.51 2006/02/04 13:29:09 rwatson Exp $ + * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.63 2006/02/04 13:28:55 rwatson Exp */ #include "opt_compat.h" @@ -33,154 +33,154 @@ /* The casts are bogus but will do for now. */ struct sysent freebsd32_sysent[] = { { SYF_MPSAFE | 0, (sy_call_t *)nosys, AUE_NULL }, /* 0 = syscall */ - { SYF_MPSAFE | AS(sys_exit_args), (sy_call_t *)sys_exit, AUE_NULL }, /* 1 = exit */ - { SYF_MPSAFE | 0, (sy_call_t *)fork, AUE_NULL }, /* 2 = fork */ - { SYF_MPSAFE | AS(read_args), (sy_call_t *)read, AUE_NULL }, /* 3 = read */ - { SYF_MPSAFE | AS(write_args), (sy_call_t *)write, AUE_NULL }, /* 4 = write */ - { SYF_MPSAFE | AS(open_args), (sy_call_t *)open, AUE_NULL }, /* 5 = open */ >>> TRUNCATED FOR MAIL (1000 lines) <<<
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602050111.k151BIa0082071>