From owner-p4-projects@FreeBSD.ORG Sat Feb 4 16:20:57 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0C2CA16A423; Sat, 4 Feb 2006 16:20:57 +0000 (GMT) X-Original-To: perforce@freebsd.org 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 88DB116A422 for ; Sat, 4 Feb 2006 16:20:56 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B752F444AF for ; Sat, 4 Feb 2006 15:56:38 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k14FucWX020412 for ; Sat, 4 Feb 2006 15:56:38 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k14Fuc8n020409 for perforce@freebsd.org; Sat, 4 Feb 2006 15:56:38 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sat, 4 Feb 2006 15:56:38 GMT Message-Id: <200602041556.k14Fuc8n020409@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 91070 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2006 16:20:57 -0000 http://perforce.freebsd.org/chv.cgi?CH=91070 Change 91070 by rwatson@rwatson_peppercorn on 2006/02/04 15:55:41 Clean up i386 linux system call table: - Update comment. - Prefer AUE_FOO to AUE_O_FOO. - Replace AUE_NULL with AUE_FOO in a number of cases, including for Linux system calls that now have identifiers but didn't previously. - Replace AUE_FOO with AUE_NULL in some case where AUE_FOO is defined as AUE_NULL and we are unlikely to change it. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/i386/linux/syscalls.master#12 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/i386/linux/syscalls.master#12 (text+ko) ==== @@ -4,7 +4,7 @@ ; System call name/number master file (or rather, slave, from LINUX). ; Processed to create linux_sysent.c, linux_proto.h 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 @@ -55,7 +55,7 @@ 5 AUE_OPEN_RWTC MSTD { int linux_open(char *path, l_int flags, \ l_int mode); } 6 AUE_CLOSE MNOPROTO { int close(int fd); } -7 AUE_O_WAIT MSTD { int linux_waitpid(l_pid_t pid, \ +7 AUE_WAIT4 MSTD { int linux_waitpid(l_pid_t pid, \ l_int *status, l_int options); } 8 AUE_O_CREAT MSTD { int linux_creat(char *path, \ l_int mode); } @@ -83,7 +83,7 @@ 22 AUE_UMOUNT STD { int linux_oldumount(char *path); } 23 AUE_SETUID MSTD { int linux_setuid16(l_uid16_t uid); } 24 AUE_GETUID MSTD { int linux_getuid16(void); } -25 AUE_NULL MSTD { int linux_stime(void); } +25 AUE_SETTIMEOFDAY MSTD { int linux_stime(void); } 26 AUE_PTRACE MSTD { int linux_ptrace(l_long req, l_long pid, \ l_long addr, l_long data); } 27 AUE_NULL MSTD { int linux_alarm(l_uint secs); } @@ -132,7 +132,7 @@ 64 AUE_GETPPID MNOPROTO { int getppid(void); } 65 AUE_GETPGRP MNOPROTO { int getpgrp(void); } 66 AUE_SETSID MNOPROTO { int setsid(void); } -67 AUE_SIGACTION MSTD { int linux_sigaction(l_int sig, \ +67 AUE_NULL MSTD { int linux_sigaction(l_int sig, \ l_osigaction_t *nsa, \ l_osigaction_t *osa); } 68 AUE_NULL MSTD { int linux_sgetmask(void); } @@ -141,10 +141,10 @@ l_uid16_t euid); } 71 AUE_SETREGID MSTD { int linux_setregid16(l_gid16_t rgid, \ l_gid16_t egid); } -72 AUE_SIGSUSPEND MSTD { int linux_sigsuspend(l_int hist0, \ +72 AUE_NULL MSTD { int linux_sigsuspend(l_int hist0, \ l_int hist1, l_osigset_t mask); } -73 AUE_SIGPENDING MSTD { int linux_sigpending(l_osigset_t *mask); } -74 AUE_O_SETHOSTNAME MNOPROTO { int osethostname(char *hostname, \ +73 AUE_NULL MSTD { int linux_sigpending(l_osigset_t *mask); } +74 AUE_SYSCTL MNOPROTO { int osethostname(char *hostname, \ u_int len); } osethostname \ sethostname_args int 75 AUE_SETRLIMIT MSTD { int linux_setrlimit(l_uint resource, \ @@ -153,7 +153,7 @@ struct l_rlimit *rlim); } 77 AUE_GETRUSAGE MNOPROTO { int getrusage(int who, \ struct rusage *rusage); } -78 AUE_GETTIMEOFDAY MNOPROTO { int gettimeofday( \ +78 AUE_NULL MNOPROTO { int gettimeofday( \ struct timeval *tp, \ struct timezone *tzp); } 79 AUE_SETTIMEOFDAY MNOPROTO { int settimeofday( \ @@ -169,11 +169,11 @@ 84 AUE_STAT NOPROTO { int ostat(char *path, struct ostat *up); } 85 AUE_READLINK MSTD { int linux_readlink(char *name, char *buf, \ l_int count); } -86 AUE_NULL STD { int linux_uselib(char *library); } +86 AUE_USELIB STD { int linux_uselib(char *library); } 87 AUE_SWAPON MNOPROTO { int swapon(char *name); } 88 AUE_REBOOT MSTD { int linux_reboot(l_int magic1, \ l_int magic2, l_uint cmd, void *arg); } -89 AUE_NULL STD { int linux_readdir(l_uint fd, \ +89 AUE_O_GETDENTS STD { int linux_readdir(l_uint fd, \ struct l_dirent *dent, l_uint count); } 90 AUE_MMAP MSTD { int linux_mmap(struct l_mmap_argv *ptr); } 91 AUE_MUNMAP MNOPROTO { int munmap(caddr_t addr, int len); } @@ -185,7 +185,7 @@ 96 AUE_GETPRIORITY MSTD { int linux_getpriority(int which, int who); } 97 AUE_SETPRIORITY MNOPROTO { int setpriority(int which, int who, \ int prio); } -98 AUE_NULL UNIMPL profil +98 AUE_AUE_PROFILE UNIMPL profil 99 AUE_STATFS MSTD { int linux_statfs(char *path, \ struct l_statfs_buf *buf); } 100 AUE_FSTATFS MSTD { int linux_fstatfs(l_uint fd, \ @@ -212,7 +212,7 @@ 111 AUE_NULL MSTD { int linux_vhangup(void); } 112 AUE_NULL UNIMPL idle 113 AUE_NULL MSTD { int linux_vm86old(void); } -114 AUE_O_WAIT MSTD { int linux_wait4(l_pid_t pid, \ +114 AUE_WAIT4 MSTD { int linux_wait4(l_pid_t pid, \ l_uint *status, l_int options, \ struct l_rusage *rusage); } 115 AUE_SWAPOFF MSTD { int linux_swapoff(void); } @@ -224,7 +224,7 @@ 119 AUE_SIGRETURN MSTD { int linux_sigreturn( \ struct l_sigframe *sfp); } 120 AUE_RFORK MSTD { int linux_clone(l_int flags, void *stack); } -121 AUE_O_SETDOMAINNAME MNOPROTO { int setdomainname(char *name, \ +121 AUE_SYSCTL MNOPROTO { int setdomainname(char *name, \ int len); } 122 AUE_NULL MSTD { int linux_newuname( \ struct l_new_utsname *buf); } @@ -242,13 +242,13 @@ 131 AUE_QUOTACTL MSTD { int linux_quotactl(void); } 132 AUE_GETPGID MNOPROTO { int getpgid(int pid); } 133 AUE_FCHDIR MNOPROTO { int fchdir(int fd); } -134 AUE_NULL MSTD { int linux_bdflush(void); } +134 AUE_BDFLUSH MSTD { int linux_bdflush(void); } 135 AUE_NULL MSTD { int linux_sysfs(l_int option, \ l_ulong arg1, l_ulong arg2); } -136 AUE_NULL MSTD { int linux_personality(l_ulong per); } +136 AUE_PERSONALITY MSTD { int linux_personality(l_ulong per); } 137 AUE_NULL UNIMPL afs_syscall -138 AUE_NULL MSTD { int linux_setfsuid16(l_uid16_t uid); } -139 AUE_NULL MSTD { int linux_setfsgid16(l_gid16_t gid); } +138 AUE_SETFSUID MSTD { int linux_setfsuid16(l_uid16_t uid); } +139 AUE_SETFSGID MSTD { int linux_setfsgid16(l_gid16_t gid); } 140 AUE_LSEEK MSTD { int linux_llseek(l_int fd, l_ulong ohigh, \ l_ulong olow, l_loff_t *res, \ l_uint whence); } @@ -267,26 +267,26 @@ u_int iovcnt); } 147 AUE_GETSID MSTD { int linux_getsid(l_pid_t pid); } 148 AUE_NULL MSTD { int linux_fdatasync(l_uint fd); } -149 AUE_NULL MSTD { int linux_sysctl( \ +149 AUE_SYSCTL MSTD { int linux_sysctl( \ struct l___sysctl_args *args); } 150 AUE_MLOCK MNOPROTO { int mlock(const void *addr, size_t len); } 151 AUE_MUNLOCK MNOPROTO { int munlock(const void *addr, size_t len); } 152 AUE_MLOCKALL MNOPROTO { int mlockall(int how); } 153 AUE_MUNLOCKALL MNOPROTO { int munlockall(void); } -154 AUE_NULL MNOPROTO { int sched_setparam(pid_t pid, \ +154 AUE_SCHED_SETPARAM MNOPROTO { int sched_setparam(pid_t pid, \ const struct sched_param *param); } -155 AUE_NULL MNOPROTO { int sched_getparam(pid_t pid, \ +155 AUE_SCHED_GETPARAM MNOPROTO { int sched_getparam(pid_t pid, \ struct sched_param *param); } -156 AUE_NULL MSTD { int linux_sched_setscheduler(l_pid_t pid, \ +156 AUE_SCHED_SETSCHEDULER MSTD { int linux_sched_setscheduler(l_pid_t pid, \ l_int policy, \ struct l_sched_param *param); } -157 AUE_NULL MSTD { int linux_sched_getscheduler(l_pid_t pid); } +157 AUE_SCHED_GETSCHEDULER MSTD { int linux_sched_getscheduler(l_pid_t pid); } 158 AUE_NULL MNOPROTO { int sched_yield(void); } -159 AUE_NULL MSTD { int linux_sched_get_priority_max( \ +159 AUE_SCHED_GET_PRIORITY_MAX MSTD { int linux_sched_get_priority_max( \ l_int policy); } -160 AUE_NULL MSTD { int linux_sched_get_priority_min( \ +160 AUE_SCHED_GET_PRIORITY_MIN MSTD { int linux_sched_get_priority_min( \ l_int policy); } -161 AUE_NULL MNOPROTO { int sched_rr_get_interval(l_pid_t pid, \ +161 AUE_SCHED_RR_GET_INTERVAL MNOPROTO { int sched_rr_get_interval(l_pid_t pid, \ struct l_timespec *interval); } 162 AUE_NULL MNOPROTO { int nanosleep( \ const struct timespec *rqtp, \ @@ -296,7 +296,7 @@ l_ulong flags, l_ulong new_addr); } 164 AUE_SETRESUID MSTD { int linux_setresuid16(l_uid16_t ruid, \ l_uid16_t euid, l_uid16_t suid); } -165 AUE_NULL MSTD { int linux_getresuid16(l_uid16_t *ruid, \ +165 AUE_GETRESUID MSTD { int linux_getresuid16(l_uid16_t *ruid, \ l_uid16_t *euid, l_uid16_t *suid); } 166 AUE_NULL MSTD { int linux_vm86(void); } 167 AUE_NULL MSTD { int linux_query_module(void); } @@ -305,21 +305,21 @@ 169 AUE_NULL MSTD { int linux_nfsservctl(void); } 170 AUE_SETRESGID MSTD { int linux_setresgid16(l_gid16_t rgid, \ l_gid16_t egid, l_gid16_t sgid); } -171 AUE_NULL MSTD { int linux_getresgid16(l_gid16_t *rgid, \ +171 AUE_GETRESGID MSTD { int linux_getresgid16(l_gid16_t *rgid, \ l_gid16_t *egid, l_gid16_t *sgid); } -172 AUE_NULL MSTD { int linux_prctl(void); } -173 AUE_SIGRETURN MSTD { int linux_rt_sigreturn( \ +172 AUE_PRCTL MSTD { int linux_prctl(void); } +173 AUE_NULL MSTD { int linux_rt_sigreturn( \ struct l_ucontext *ucp); } -174 AUE_SIGACTION MSTD { int linux_rt_sigaction(l_int sig, \ +174 AUE_NULL MSTD { int linux_rt_sigaction(l_int sig, \ l_sigaction_t *act, l_sigaction_t *oact, \ l_size_t sigsetsize); } -175 AUE_SIGPROCMASK MSTD { int linux_rt_sigprocmask(l_int how, \ +175 AUE_NULL MSTD { int linux_rt_sigprocmask(l_int how, \ l_sigset_t *mask, l_sigset_t *omask, \ l_size_t sigsetsize); } -176 AUE_SIGPENDING MSTD { int linux_rt_sigpending(void); } -177 AUE_SIGWAIT MSTD { int linux_rt_sigtimedwait(void); } +176 AUE_NULL MSTD { int linux_rt_sigpending(void); } +177 AUE_NULL MSTD { int linux_rt_sigtimedwait(void); } 178 AUE_NULL MSTD { int linux_rt_sigqueueinfo(void); } -179 AUE_SIGSUSPEND MSTD { int linux_rt_sigsuspend( \ +179 AUE_NULL MSTD { int linux_rt_sigsuspend( \ l_sigset_t *newset, \ l_size_t sigsetsize); } 180 AUE_PREAD MSTD { int linux_pread(l_uint fd, char *buf, \ @@ -328,15 +328,15 @@ l_size_t nbyte, l_loff_t offset); } 182 AUE_CHOWN MSTD { int linux_chown16(char *path, \ l_uid16_t uid, l_gid16_t gid); } -183 AUE_NULL MSTD { int linux_getcwd(char *buf, \ +183 AUE_GETCWD MSTD { int linux_getcwd(char *buf, \ l_ulong bufsize); } -184 AUE_NULL MSTD { int linux_capget(void); } -185 AUE_NULL MSTD { int linux_capset(void); } +184 AUE_CAPGET MSTD { int linux_capget(void); } +185 AUE_CAPSET MSTD { int linux_capset(void); } 186 AUE_NULL MSTD { int linux_sigaltstack(l_stack_t *uss, \ l_stack_t *uoss); } -187 AUE_NULL MSTD { int linux_sendfile(void); } -188 AUE_NULL UNIMPL getpmsg -189 AUE_NULL UNIMPL putpmsg +187 AUE_SENDFILE MSTD { int linux_sendfile(void); } +188 AUE_GETPMSG UNIMPL getpmsg +189 AUE_PUTPMSG UNIMPL putpmsg 190 AUE_VFORK MSTD { int linux_vfork(void); } 191 AUE_GETRLIMIT MSTD { int linux_getrlimit(l_uint resource, \ struct l_rlimit *rlim); } @@ -368,19 +368,19 @@ 207 AUE_FCHOWN NODEF fchown fchown fchown_args int 208 AUE_SETRESUID MNOPROTO { int setresuid(uid_t ruid, uid_t euid, \ uid_t suid); } -209 AUE_NULL MNOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ +209 AUE_GETRESUID MNOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \ uid_t *suid); } 210 AUE_SETRESGID MNOPROTO { int setresgid(gid_t rgid, gid_t egid, \ gid_t sgid); } -211 AUE_NULL MNOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ +211 AUE_GETRESGID MNOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \ gid_t *sgid); } 212 AUE_CHOWN MSTD { int linux_chown(char *path, l_uid_t uid, \ l_gid_t gid); } 213 AUE_SETUID MNOPROTO { int setuid(uid_t uid); } 214 AUE_SETGID MNOPROTO { int setgid(gid_t gid); } -215 AUE_NULL MSTD { int linux_setfsuid(l_uid_t uid); } -216 AUE_NULL MSTD { int linux_setfsgid(l_gid_t gid); } -217 AUE_NULL MSTD { int linux_pivot_root(char *new_root, \ +215 AUE_SETFSUID MSTD { int linux_setfsuid(l_uid_t uid); } +216 AUE_SETFSGID MSTD { int linux_setfsgid(l_gid_t gid); } +217 AUE_PIVOT_ROOT MSTD { int linux_pivot_root(char *new_root, \ char *put_old); } 218 AUE_MINCORE MSTD { int linux_mincore(l_ulong start, \ l_size_t len, u_char *vec); } @@ -407,7 +407,7 @@ 236 AUE_NULL MSTD { int linux_lremovexattr(void); } 237 AUE_NULL MSTD { int linux_fremovexattr(void); } 238 AUE_NULL MSTD { int linux_tkill(int tid, int sig); } -239 AUE_NULL UNIMPL linux_sendfile64 +239 AUE_SENDFILE UNIMPL linux_sendfile64 240 AUE_NULL UNIMPL linux_futex 241 AUE_NULL UNIMPL linux_sched_setaffinity 242 AUE_NULL UNIMPL linux_sched_getaffinity @@ -433,7 +433,7 @@ 261 AUE_NULL UNIMPL linux_timer_gettime 262 AUE_NULL UNIMPL linux_timer_getoverrun 263 AUE_NULL UNIMPL linux_timer_delete -264 AUE_NULL UNIMPL linux_clock_settime +264 AUE_CLOCK_SETTIME UNIMPL linux_clock_settime 265 AUE_NULL UNIMPL linux_clock_gettime 266 AUE_NULL UNIMPL linux_clock_getres 267 AUE_NULL UNIMPL linux_clock_nanosleep