freebsd-nq/sys/kern/syscalls.c

561 lines
21 KiB
C
Raw Normal View History

1994-05-24 10:09:53 +00:00
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
2016-03-21 21:38:35 +00:00
* created from FreeBSD: head/sys/kern/syscalls.master 297167 2016-03-21 21:37:33Z jhb
1994-05-24 10:09:53 +00:00
*/
const char *syscallnames[] = {
1994-05-24 10:09:53 +00:00
"syscall", /* 0 = syscall */
2000-07-29 10:07:38 +00:00
"exit", /* 1 = exit */
1994-05-24 10:09:53 +00:00
"fork", /* 2 = fork */
"read", /* 3 = read */
"write", /* 4 = write */
"open", /* 5 = open */
"close", /* 6 = close */
"wait4", /* 7 = wait4 */
"compat.creat", /* 8 = old creat */
1994-05-24 10:09:53 +00:00
"link", /* 9 = link */
"unlink", /* 10 = unlink */
"obs_execv", /* 11 = obsolete execv */
"chdir", /* 12 = chdir */
"fchdir", /* 13 = fchdir */
"mknod", /* 14 = mknod */
"chmod", /* 15 = chmod */
"chown", /* 16 = chown */
"break", /* 17 = break */
2009-06-17 19:53:47 +00:00
"compat4.getfsstat", /* 18 = freebsd4 getfsstat */
"compat.lseek", /* 19 = old lseek */
1994-05-24 10:09:53 +00:00
"getpid", /* 20 = getpid */
"mount", /* 21 = mount */
"unmount", /* 22 = unmount */
"setuid", /* 23 = setuid */
"getuid", /* 24 = getuid */
"geteuid", /* 25 = geteuid */
"ptrace", /* 26 = ptrace */
"recvmsg", /* 27 = recvmsg */
"sendmsg", /* 28 = sendmsg */
"recvfrom", /* 29 = recvfrom */
"accept", /* 30 = accept */
"getpeername", /* 31 = getpeername */
"getsockname", /* 32 = getsockname */
"access", /* 33 = access */
"chflags", /* 34 = chflags */
"fchflags", /* 35 = fchflags */
"sync", /* 36 = sync */
"kill", /* 37 = kill */
"compat.stat", /* 38 = old stat */
1994-05-24 10:09:53 +00:00
"getppid", /* 39 = getppid */
"compat.lstat", /* 40 = old lstat */
1994-05-24 10:09:53 +00:00
"dup", /* 41 = dup */
"pipe", /* 42 = pipe */
"getegid", /* 43 = getegid */
"profil", /* 44 = profil */
"ktrace", /* 45 = ktrace */
"compat.sigaction", /* 46 = old sigaction */
1994-05-24 10:09:53 +00:00
"getgid", /* 47 = getgid */
"compat.sigprocmask", /* 48 = old sigprocmask */
1994-05-24 10:09:53 +00:00
"getlogin", /* 49 = getlogin */
"setlogin", /* 50 = setlogin */
"acct", /* 51 = acct */
"compat.sigpending", /* 52 = old sigpending */
1994-05-24 10:09:53 +00:00
"sigaltstack", /* 53 = sigaltstack */
"ioctl", /* 54 = ioctl */
"reboot", /* 55 = reboot */
"revoke", /* 56 = revoke */
"symlink", /* 57 = symlink */
"readlink", /* 58 = readlink */
"execve", /* 59 = execve */
"umask", /* 60 = umask */
"chroot", /* 61 = chroot */
"compat.fstat", /* 62 = old fstat */
"compat.getkerninfo", /* 63 = old getkerninfo */
"compat.getpagesize", /* 64 = old getpagesize */
1994-05-24 10:09:53 +00:00
"msync", /* 65 = msync */
"vfork", /* 66 = vfork */
"obs_vread", /* 67 = obsolete vread */
"obs_vwrite", /* 68 = obsolete vwrite */
"sbrk", /* 69 = sbrk */
"sstk", /* 70 = sstk */
"compat.mmap", /* 71 = old mmap */
1994-05-24 10:09:53 +00:00
"vadvise", /* 72 = vadvise */
"munmap", /* 73 = munmap */
"mprotect", /* 74 = mprotect */
"madvise", /* 75 = madvise */
"obs_vhangup", /* 76 = obsolete vhangup */
"obs_vlimit", /* 77 = obsolete vlimit */
"mincore", /* 78 = mincore */
"getgroups", /* 79 = getgroups */
"setgroups", /* 80 = setgroups */
"getpgrp", /* 81 = getpgrp */
"setpgid", /* 82 = setpgid */
"setitimer", /* 83 = setitimer */
"compat.wait", /* 84 = old wait */
1994-05-24 10:09:53 +00:00
"swapon", /* 85 = swapon */
"getitimer", /* 86 = getitimer */
"compat.gethostname", /* 87 = old gethostname */
"compat.sethostname", /* 88 = old sethostname */
1994-05-24 10:09:53 +00:00
"getdtablesize", /* 89 = getdtablesize */
"dup2", /* 90 = dup2 */
"#91", /* 91 = getdopt */
"fcntl", /* 92 = fcntl */
"select", /* 93 = select */
"#94", /* 94 = setdopt */
"fsync", /* 95 = fsync */
"setpriority", /* 96 = setpriority */
"socket", /* 97 = socket */
"connect", /* 98 = connect */
"compat.accept", /* 99 = old accept */
1994-05-24 10:09:53 +00:00
"getpriority", /* 100 = getpriority */
"compat.send", /* 101 = old send */
"compat.recv", /* 102 = old recv */
"compat.sigreturn", /* 103 = old sigreturn */
1994-05-24 10:09:53 +00:00
"bind", /* 104 = bind */
"setsockopt", /* 105 = setsockopt */
"listen", /* 106 = listen */
"obs_vtimes", /* 107 = obsolete vtimes */
"compat.sigvec", /* 108 = old sigvec */
"compat.sigblock", /* 109 = old sigblock */
"compat.sigsetmask", /* 110 = old sigsetmask */
"compat.sigsuspend", /* 111 = old sigsuspend */
"compat.sigstack", /* 112 = old sigstack */
"compat.recvmsg", /* 113 = old recvmsg */
"compat.sendmsg", /* 114 = old sendmsg */
1994-05-24 10:09:53 +00:00
"obs_vtrace", /* 115 = obsolete vtrace */
"gettimeofday", /* 116 = gettimeofday */
"getrusage", /* 117 = getrusage */
"getsockopt", /* 118 = getsockopt */
1996-02-23 18:31:34 +00:00
"#119", /* 119 = resuba */
1994-05-24 10:09:53 +00:00
"readv", /* 120 = readv */
"writev", /* 121 = writev */
"settimeofday", /* 122 = settimeofday */
"fchown", /* 123 = fchown */
"fchmod", /* 124 = fchmod */
"compat.recvfrom", /* 125 = old recvfrom */
1995-04-23 12:22:06 +00:00
"setreuid", /* 126 = setreuid */
"setregid", /* 127 = setregid */
1994-05-24 10:09:53 +00:00
"rename", /* 128 = rename */
"compat.truncate", /* 129 = old truncate */
"compat.ftruncate", /* 130 = old ftruncate */
1994-05-24 10:09:53 +00:00
"flock", /* 131 = flock */
"mkfifo", /* 132 = mkfifo */
"sendto", /* 133 = sendto */
"shutdown", /* 134 = shutdown */
"socketpair", /* 135 = socketpair */
"mkdir", /* 136 = mkdir */
"rmdir", /* 137 = rmdir */
"utimes", /* 138 = utimes */
"obs_4.2", /* 139 = obsolete 4.2 sigreturn */
"adjtime", /* 140 = adjtime */
"compat.getpeername", /* 141 = old getpeername */
"compat.gethostid", /* 142 = old gethostid */
"compat.sethostid", /* 143 = old sethostid */
"compat.getrlimit", /* 144 = old getrlimit */
"compat.setrlimit", /* 145 = old setrlimit */
"compat.killpg", /* 146 = old killpg */
1994-05-24 10:09:53 +00:00
"setsid", /* 147 = setsid */
"quotactl", /* 148 = quotactl */
"compat.quota", /* 149 = old quota */
"compat.getsockname", /* 150 = old getsockname */
1996-02-23 18:31:34 +00:00
"#151", /* 151 = sem_lock */
"#152", /* 152 = sem_wakeup */
"#153", /* 153 = asyncdaemon */
2008-03-26 15:24:02 +00:00
"nlm_syscall", /* 154 = nlm_syscall */
1994-05-24 10:09:53 +00:00
"nfssvc", /* 155 = nfssvc */
"compat.getdirentries", /* 156 = old getdirentries */
2009-06-17 19:53:47 +00:00
"compat4.statfs", /* 157 = freebsd4 statfs */
"compat4.fstatfs", /* 158 = freebsd4 fstatfs */
1994-05-24 10:09:53 +00:00
"#159", /* 159 = nosys */
2004-04-05 10:17:23 +00:00
"lgetfh", /* 160 = lgetfh */
1994-05-24 10:09:53 +00:00
"getfh", /* 161 = getfh */
2009-06-17 19:53:47 +00:00
"compat4.getdomainname", /* 162 = freebsd4 getdomainname */
"compat4.setdomainname", /* 163 = freebsd4 setdomainname */
"compat4.uname", /* 164 = freebsd4 uname */
"sysarch", /* 165 = sysarch */
"rtprio", /* 166 = rtprio */
1994-05-24 10:09:53 +00:00
"#167", /* 167 = nosys */
"#168", /* 168 = nosys */
"semsys", /* 169 = semsys */
"msgsys", /* 170 = msgsys */
1994-05-24 10:09:53 +00:00
"shmsys", /* 171 = shmsys */
"#172", /* 172 = nosys */
2015-04-18 21:50:53 +00:00
"compat6.pread", /* 173 = freebsd6 pread */
"compat6.pwrite", /* 174 = freebsd6 pwrite */
Add code to allow the system to handle multiple routing tables. This particular implementation is designed to be fully backwards compatible and to be MFC-able to 7.x (and 6.x) Currently the only protocol that can make use of the multiple tables is IPv4 Similar functionality exists in OpenBSD and Linux. From my notes: ----- One thing where FreeBSD has been falling behind, and which by chance I have some time to work on is "policy based routing", which allows different packet streams to be routed by more than just the destination address. Constraints: ------------ I want to make some form of this available in the 6.x tree (and by extension 7.x) , but FreeBSD in general needs it so I might as well do it in -current and back port the portions I need. One of the ways that this can be done is to have the ability to instantiate multiple kernel routing tables (which I will now refer to as "Forwarding Information Bases" or "FIBs" for political correctness reasons). Which FIB a particular packet uses to make the next hop decision can be decided by a number of mechanisms. The policies these mechanisms implement are the "Policies" referred to in "Policy based routing". One of the constraints I have if I try to back port this work to 6.x is that it must be implemented as a EXTENSION to the existing ABIs in 6.x so that third party applications do not need to be recompiled in timespan of the branch. This first version will not have some of the bells and whistles that will come with later versions. It will, for example, be limited to 16 tables in the first commit. Implementation method, Compatible version. (part 1) ------------------------------- For this reason I have implemented a "sufficient subset" of a multiple routing table solution in Perforce, and back-ported it to 6.x. (also in Perforce though not always caught up with what I have done in -current/P4). The subset allows a number of FIBs to be defined at compile time (8 is sufficient for my purposes in 6.x) and implements the changes needed to allow IPV4 to use them. I have not done the changes for ipv6 simply because I do not need it, and I do not have enough knowledge of ipv6 (e.g. neighbor discovery) needed to do it. Other protocol families are left untouched and should there be users with proprietary protocol families, they should continue to work and be oblivious to the existence of the extra FIBs. To understand how this is done, one must know that the current FIB code starts everything off with a single dimensional array of pointers to FIB head structures (One per protocol family), each of which in turn points to the trie of routes available to that family. The basic change in the ABI compatible version of the change is to extent that array to be a 2 dimensional array, so that instead of protocol family X looking at rt_tables[X] for the table it needs, it looks at rt_tables[Y][X] when for all protocol families except ipv4 Y is always 0. Code that is unaware of the change always just sees the first row of the table, which of course looks just like the one dimensional array that existed before. The entry points rtrequest(), rtalloc(), rtalloc1(), rtalloc_ign() are all maintained, but refer only to the first row of the array, so that existing callers in proprietary protocols can continue to do the "right thing". Some new entry points are added, for the exclusive use of ipv4 code called in_rtrequest(), in_rtalloc(), in_rtalloc1() and in_rtalloc_ign(), which have an extra argument which refers the code to the correct row. In addition, there are some new entry points (currently called rtalloc_fib() and friends) that check the Address family being looked up and call either rtalloc() (and friends) if the protocol is not IPv4 forcing the action to row 0 or to the appropriate row if it IS IPv4 (and that info is available). These are for calling from code that is not specific to any particular protocol. The way these are implemented would change in the non ABI preserving code to be added later. One feature of the first version of the code is that for ipv4, the interface routes show up automatically on all the FIBs, so that no matter what FIB you select you always have the basic direct attached hosts available to you. (rtinit() does this automatically). You CAN delete an interface route from one FIB should you want to but by default it's there. ARP information is also available in each FIB. It's assumed that the same machine would have the same MAC address, regardless of which FIB you are using to get to it. This brings us as to how the correct FIB is selected for an outgoing IPV4 packet. Firstly, all packets have a FIB associated with them. if nothing has been done to change it, it will be FIB 0. The FIB is changed in the following ways. Packets fall into one of a number of classes. 1/ locally generated packets, coming from a socket/PCB. Such packets select a FIB from a number associated with the socket/PCB. This in turn is inherited from the process, but can be changed by a socket option. The process in turn inherits it on fork. I have written a utility call setfib that acts a bit like nice.. setfib -3 ping target.example.com # will use fib 3 for ping. It is an obvious extension to make it a property of a jail but I have not done so. It can be achieved by combining the setfib and jail commands. 2/ packets received on an interface for forwarding. By default these packets would use table 0, (or possibly a number settable in a sysctl(not yet)). but prior to routing the firewall can inspect them (see below). (possibly in the future you may be able to associate a FIB with packets received on an interface.. An ifconfig arg, but not yet.) 3/ packets inspected by a packet classifier, which can arbitrarily associate a fib with it on a packet by packet basis. A fib assigned to a packet by a packet classifier (such as ipfw) would over-ride a fib associated by a more default source. (such as cases 1 or 2). 4/ a tcp listen socket associated with a fib will generate accept sockets that are associated with that same fib. 5/ Packets generated in response to some other packet (e.g. reset or icmp packets). These should use the FIB associated with the packet being reponded to. 6/ Packets generated during encapsulation. gif, tun and other tunnel interfaces will encapsulate using the FIB that was in effect withthe proces that set up the tunnel. thus setfib 1 ifconfig gif0 [tunnel instructions] will set the fib for the tunnel to use to be fib 1. Routing messages would be associated with their process, and thus select one FIB or another. messages from the kernel would be associated with the fib they refer to and would only be received by a routing socket associated with that fib. (not yet implemented) In addition Netstat has been edited to be able to cope with the fact that the array is now 2 dimensional. (It looks in system memory using libkvm (!)). Old versions of netstat see only the first FIB. In addition two sysctls are added to give: a) the number of FIBs compiled in (active) b) the default FIB of the calling process. Early testing experience: ------------------------- Basically our (IronPort's) appliance does this functionality already using ipfw fwd but that method has some drawbacks. For example, It can't fully simulate a routing table because it can't influence the socket's choice of local address when a connect() is done. Testing during the generating of these changes has been remarkably smooth so far. Multiple tables have co-existed with no notable side effects, and packets have been routes accordingly. ipfw has grown 2 new keywords: setfib N ip from anay to any count ip from any to any fib N In pf there seems to be a requirement to be able to give symbolic names to the fibs but I do not have that capacity. I am not sure if it is required. SCTP has interestingly enough built in support for this, called VRFs in Cisco parlance. it will be interesting to see how that handles it when it suddenly actually does something. Where to next: -------------------- After committing the ABI compatible version and MFCing it, I'd like to proceed in a forward direction in -current. this will result in some roto-tilling in the routing code. Firstly: the current code's idea of having a separate tree per protocol family, all of the same format, and pointed to by the 1 dimensional array is a bit silly. Especially when one considers that there is code that makes assumptions about every protocol having the same internal structures there. Some protocols don't WANT that sort of structure. (for example the whole idea of a netmask is foreign to appletalk). This needs to be made opaque to the external code. My suggested first change is to add routing method pointers to the 'domain' structure, along with information pointing the data. instead of having an array of pointers to uniform structures, there would be an array pointing to the 'domain' structures for each protocol address domain (protocol family), and the methods this reached would be called. The methods would have an argument that gives FIB number, but the protocol would be free to ignore it. When the ABI can be changed it raises the possibilty of the addition of a fib entry into the "struct route". Currently, the structure contains the sockaddr of the desination, and the resulting fib entry. To make this work fully, one could add a fib number so that given an address and a fib, one can find the third element, the fib entry. Interaction with the ARP layer/ LL layer would need to be revisited as well. Qing Li has been working on this already. This work was sponsored by Ironport Systems/Cisco Reviewed by: several including rwatson, bz and mlair (parts each) Obtained from: Ironport systems/Cisco
2008-05-09 23:03:00 +00:00
"setfib", /* 175 = setfib */
"ntp_adjtime", /* 176 = ntp_adjtime */
1996-02-23 18:31:34 +00:00
"#177", /* 177 = sfork */
"#178", /* 178 = getdescriptor */
"#179", /* 179 = setdescriptor */
1994-05-24 10:09:53 +00:00
"#180", /* 180 = nosys */
"setgid", /* 181 = setgid */
"setegid", /* 182 = setegid */
"seteuid", /* 183 = seteuid */
"#184", /* 184 = lfs_bmapv */
"#185", /* 185 = lfs_markv */
"#186", /* 186 = lfs_segclean */
"#187", /* 187 = lfs_segwait */
1994-05-24 10:09:53 +00:00
"stat", /* 188 = stat */
"fstat", /* 189 = fstat */
"lstat", /* 190 = lstat */
"pathconf", /* 191 = pathconf */
"fpathconf", /* 192 = fpathconf */
"#193", /* 193 = nosys */
"getrlimit", /* 194 = getrlimit */
"setrlimit", /* 195 = setrlimit */
"getdirentries", /* 196 = getdirentries */
2015-04-18 21:50:53 +00:00
"compat6.mmap", /* 197 = freebsd6 mmap */
1994-05-24 10:09:53 +00:00
"__syscall", /* 198 = __syscall */
2015-04-18 21:50:53 +00:00
"compat6.lseek", /* 199 = freebsd6 lseek */
"compat6.truncate", /* 200 = freebsd6 truncate */
"compat6.ftruncate", /* 201 = freebsd6 ftruncate */
1994-05-24 10:09:53 +00:00
"__sysctl", /* 202 = __sysctl */
"mlock", /* 203 = mlock */
"munlock", /* 204 = munlock */
"undelete", /* 205 = undelete */
"futimes", /* 206 = futimes */
1997-08-19 05:57:04 +00:00
"getpgid", /* 207 = getpgid */
1997-05-08 14:08:49 +00:00
"#208", /* 208 = newreboot */
1997-09-14 02:23:46 +00:00
"poll", /* 209 = poll */
"lkmnosys", /* 210 = lkmnosys */
"lkmnosys", /* 211 = lkmnosys */
"lkmnosys", /* 212 = lkmnosys */
"lkmnosys", /* 213 = lkmnosys */
"lkmnosys", /* 214 = lkmnosys */
"lkmnosys", /* 215 = lkmnosys */
"lkmnosys", /* 216 = lkmnosys */
"lkmnosys", /* 217 = lkmnosys */
"lkmnosys", /* 218 = lkmnosys */
"lkmnosys", /* 219 = lkmnosys */
2009-06-24 21:54:08 +00:00
"compat7.__semctl", /* 220 = freebsd7 __semctl */
1995-12-15 04:46:32 +00:00
"semget", /* 221 = semget */
"semop", /* 222 = semop */
2000-05-01 11:14:08 +00:00
"#223", /* 223 = semconfig */
2009-06-24 21:54:08 +00:00
"compat7.msgctl", /* 224 = freebsd7 msgctl */
1995-12-15 04:46:32 +00:00
"msgget", /* 225 = msgget */
"msgsnd", /* 226 = msgsnd */
"msgrcv", /* 227 = msgrcv */
"shmat", /* 228 = shmat */
2009-06-24 21:54:08 +00:00
"compat7.shmctl", /* 229 = freebsd7 shmctl */
1995-12-15 04:46:32 +00:00
"shmdt", /* 230 = shmdt */
"shmget", /* 231 = shmget */
1997-05-08 14:08:49 +00:00
"clock_gettime", /* 232 = clock_gettime */
"clock_settime", /* 233 = clock_settime */
"clock_getres", /* 234 = clock_getres */
2006-03-01 06:49:38 +00:00
"ktimer_create", /* 235 = ktimer_create */
"ktimer_delete", /* 236 = ktimer_delete */
"ktimer_settime", /* 237 = ktimer_settime */
"ktimer_gettime", /* 238 = ktimer_gettime */
"ktimer_getoverrun", /* 239 = ktimer_getoverrun */
1997-05-08 14:08:49 +00:00
"nanosleep", /* 240 = nanosleep */
"ffclock_getcounter", /* 241 = ffclock_getcounter */
"ffclock_setestimate", /* 242 = ffclock_setestimate */
"ffclock_getestimate", /* 243 = ffclock_getestimate */
1996-02-23 18:31:34 +00:00
"#244", /* 244 = nosys */
"#245", /* 245 = nosys */
"#246", /* 246 = nosys */
"clock_getcpuclockid2", /* 247 = clock_getcpuclockid2 */
"ntp_gettime", /* 248 = ntp_gettime */
1996-02-23 18:31:34 +00:00
"#249", /* 249 = nosys */
"minherit", /* 250 = minherit */
"rfork", /* 251 = rfork */
1997-09-14 02:23:46 +00:00
"openbsd_poll", /* 252 = openbsd_poll */
1997-03-31 14:55:05 +00:00
"issetugid", /* 253 = issetugid */
1997-03-31 12:17:45 +00:00
"lchown", /* 254 = lchown */
2005-10-30 02:14:37 +00:00
"aio_read", /* 255 = aio_read */
"aio_write", /* 256 = aio_write */
"lio_listio", /* 257 = lio_listio */
2005-11-27 01:23:31 +00:00
"#258", /* 258 = nosys */
"#259", /* 259 = nosys */
"#260", /* 260 = nosys */
"#261", /* 261 = nosys */
"#262", /* 262 = nosys */
"#263", /* 263 = nosys */
"#264", /* 264 = nosys */
"#265", /* 265 = nosys */
"#266", /* 266 = nosys */
"#267", /* 267 = nosys */
"#268", /* 268 = nosys */
"#269", /* 269 = nosys */
"#270", /* 270 = nosys */
"#271", /* 271 = nosys */
"getdents", /* 272 = getdents */
"#273", /* 273 = nosys */
"lchmod", /* 274 = lchmod */
"netbsd_lchown", /* 275 = netbsd_lchown */
"lutimes", /* 276 = lutimes */
"netbsd_msync", /* 277 = netbsd_msync */
"nstat", /* 278 = nstat */
"nfstat", /* 279 = nfstat */
"nlstat", /* 280 = nlstat */
"#281", /* 281 = nosys */
"#282", /* 282 = nosys */
"#283", /* 283 = nosys */
"#284", /* 284 = nosys */
"#285", /* 285 = nosys */
"#286", /* 286 = nosys */
"#287", /* 287 = nosys */
"#288", /* 288 = nosys */
2005-07-07 18:20:38 +00:00
"preadv", /* 289 = preadv */
"pwritev", /* 290 = pwritev */
"#291", /* 291 = nosys */
"#292", /* 292 = nosys */
"#293", /* 293 = nosys */
"#294", /* 294 = nosys */
"#295", /* 295 = nosys */
"#296", /* 296 = nosys */
2009-06-17 19:53:47 +00:00
"compat4.fhstatfs", /* 297 = freebsd4 fhstatfs */
"fhopen", /* 298 = fhopen */
"fhstat", /* 299 = fhstat */
"modnext", /* 300 = modnext */
"modstat", /* 301 = modstat */
"modfnext", /* 302 = modfnext */
"modfind", /* 303 = modfind */
"kldload", /* 304 = kldload */
"kldunload", /* 305 = kldunload */
"kldfind", /* 306 = kldfind */
"kldnext", /* 307 = kldnext */
"kldstat", /* 308 = kldstat */
"kldfirstmod", /* 309 = kldfirstmod */
1997-08-19 05:57:04 +00:00
"getsid", /* 310 = getsid */
"setresuid", /* 311 = setresuid */
"setresgid", /* 312 = setresgid */
1998-05-14 11:29:06 +00:00
"obs_signanosleep", /* 313 = obsolete signanosleep */
"aio_return", /* 314 = aio_return */
"aio_suspend", /* 315 = aio_suspend */
"aio_cancel", /* 316 = aio_cancel */
"aio_error", /* 317 = aio_error */
2016-03-09 19:06:46 +00:00
"compat6.aio_read", /* 318 = freebsd6 aio_read */
"compat6.aio_write", /* 319 = freebsd6 aio_write */
"compat6.lio_listio", /* 320 = freebsd6 lio_listio */
"yield", /* 321 = yield */
2000-12-02 05:45:32 +00:00
"obs_thr_sleep", /* 322 = obsolete thr_sleep */
"obs_thr_wakeup", /* 323 = obsolete thr_wakeup */
"mlockall", /* 324 = mlockall */
"munlockall", /* 325 = munlockall */
"__getcwd", /* 326 = __getcwd */
"sched_setparam", /* 327 = sched_setparam */
"sched_getparam", /* 328 = sched_getparam */
"sched_setscheduler", /* 329 = sched_setscheduler */
"sched_getscheduler", /* 330 = sched_getscheduler */
"sched_yield", /* 331 = sched_yield */
"sched_get_priority_max", /* 332 = sched_get_priority_max */
"sched_get_priority_min", /* 333 = sched_get_priority_min */
"sched_rr_get_interval", /* 334 = sched_rr_get_interval */
"utrace", /* 335 = utrace */
2009-06-17 19:53:47 +00:00
"compat4.sendfile", /* 336 = freebsd4 sendfile */
1998-11-11 12:57:05 +00:00
"kldsym", /* 337 = kldsym */
This Implements the mumbled about "Jail" feature. This is a seriously beefed up chroot kind of thing. The process is jailed along the same lines as a chroot does it, but with additional tough restrictions imposed on what the superuser can do. For all I know, it is safe to hand over the root bit inside a prison to the customer living in that prison, this is what it was developed for in fact: "real virtual servers". Each prison has an ip number associated with it, which all IP communications will be coerced to use and each prison has its own hostname. Needless to say, you need more RAM this way, but the advantage is that each customer can run their own particular version of apache and not stomp on the toes of their neighbors. It generally does what one would expect, but setting up a jail still takes a little knowledge. A few notes: I have no scripts for setting up a jail, don't ask me for them. The IP number should be an alias on one of the interfaces. mount a /proc in each jail, it will make ps more useable. /proc/<pid>/status tells the hostname of the prison for jailed processes. Quotas are only sensible if you have a mountpoint per prison. There are no privisions for stopping resource-hogging. Some "#ifdef INET" and similar may be missing (send patches!) If somebody wants to take it from here and develop it into more of a "virtual machine" they should be most welcome! Tools, comments, patches & documentation most welcome. Have fun... Sponsored by: http://www.rndassociates.com/ Run for almost a year by: http://www.servetheweb.com/
1999-04-28 11:38:52 +00:00
"jail", /* 338 = jail */
2010-08-30 14:26:02 +00:00
"nnpfs_syscall", /* 339 = nnpfs_syscall */
"sigprocmask", /* 340 = sigprocmask */
"sigsuspend", /* 341 = sigsuspend */
2009-06-17 19:53:47 +00:00
"compat4.sigaction", /* 342 = freebsd4 sigaction */
"sigpending", /* 343 = sigpending */
2009-06-17 19:53:47 +00:00
"compat4.sigreturn", /* 344 = freebsd4 sigreturn */
"sigtimedwait", /* 345 = sigtimedwait */
"sigwaitinfo", /* 346 = sigwaitinfo */
"__acl_get_file", /* 347 = __acl_get_file */
"__acl_set_file", /* 348 = __acl_set_file */
"__acl_get_fd", /* 349 = __acl_get_fd */
"__acl_set_fd", /* 350 = __acl_set_fd */
"__acl_delete_file", /* 351 = __acl_delete_file */
"__acl_delete_fd", /* 352 = __acl_delete_fd */
"__acl_aclcheck_file", /* 353 = __acl_aclcheck_file */
"__acl_aclcheck_fd", /* 354 = __acl_aclcheck_fd */
"extattrctl", /* 355 = extattrctl */
"extattr_set_file", /* 356 = extattr_set_file */
"extattr_get_file", /* 357 = extattr_get_file */
"extattr_delete_file", /* 358 = extattr_delete_file */
"aio_waitcomplete", /* 359 = aio_waitcomplete */
"getresuid", /* 360 = getresuid */
"getresgid", /* 361 = getresgid */
"kqueue", /* 362 = kqueue */
"kevent", /* 363 = kevent */
2002-06-13 23:44:50 +00:00
"#364", /* 364 = __cap_get_proc */
"#365", /* 365 = __cap_set_proc */
"#366", /* 366 = __cap_get_fd */
"#367", /* 367 = __cap_get_file */
"#368", /* 368 = __cap_set_fd */
"#369", /* 369 = __cap_set_file */
2008-09-25 20:08:36 +00:00
"#370", /* 370 = nosys */
"extattr_set_fd", /* 371 = extattr_set_fd */
"extattr_get_fd", /* 372 = extattr_get_fd */
"extattr_delete_fd", /* 373 = extattr_delete_fd */
"__setugid", /* 374 = __setugid */
2009-06-17 19:53:47 +00:00
"#375", /* 375 = nfsclnt */
"eaccess", /* 376 = eaccess */
2010-08-30 14:26:02 +00:00
"afs3_syscall", /* 377 = afs3_syscall */
"nmount", /* 378 = nmount */
"#379", /* 379 = kse_exit */
"#380", /* 380 = kse_wakeup */
"#381", /* 381 = kse_create */
"#382", /* 382 = kse_thr_interrupt */
"#383", /* 383 = kse_release */
"__mac_get_proc", /* 384 = __mac_get_proc */
"__mac_set_proc", /* 385 = __mac_set_proc */
"__mac_get_fd", /* 386 = __mac_get_fd */
"__mac_get_file", /* 387 = __mac_get_file */
"__mac_set_fd", /* 388 = __mac_set_fd */
"__mac_set_file", /* 389 = __mac_set_file */
"kenv", /* 390 = kenv */
"lchflags", /* 391 = lchflags */
Add uuidgen(2) and uuidgen(1). The uuidgen command, by means of the uuidgen syscall, generates one or more Universally Unique Identifiers compatible with OSF/DCE 1.1 version 1 UUIDs. From the Perforce logs (change 11995): Round of cleanups: o Give uuidgen() the correct prototype in syscalls.master o Define struct uuid according to DCE 1.1 in sys/uuid.h o Use struct uuid instead of uuid_t. The latter is defined in sys/uuid.h but should not be used in kernel land. o Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid() to kern_uuid.c for use in the kernel (currently geom_gpt.c). o Rename the non-standard struct uuid in kern/kern_uuid.c to struct uuid_private and give it a slightly better definition for better byte-order handling. See below. o In sys/gpt.h, fix the broken uuid definitions to match the now compliant struct uuid definition. See below. o In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change. A note about byte-order: The standard failed to provide a non-conflicting and unambiguous definition for the binary representation. My initial implementation always wrote the timestamp as a 64-bit little-endian (2s-complement) integral. The clock sequence was always written as a 16-bit big-endian (2s-complement) integral. After a good nights sleep and couple of Pan Galactic Gargle Blasters (not necessarily in that order :-) I reread the spec and came to the conclusion that the time fields are always written in the native by order, provided the the low, mid and hi chopping still occurs. The spec mentions that you "might need to swap bytes if you talk to a machine that has a different byte-order". The clock sequence is always written in big-endian order (as is the IEEE 802 address) because its division is resulting in bytes, making the ordering unambiguous.
2002-05-28 06:16:08 +00:00
"uuidgen", /* 392 = uuidgen */
2002-07-12 06:52:44 +00:00
"sendfile", /* 393 = sendfile */
2002-08-06 15:16:55 +00:00
"mac_syscall", /* 394 = mac_syscall */
"getfsstat", /* 395 = getfsstat */
"statfs", /* 396 = statfs */
"fstatfs", /* 397 = fstatfs */
"fhstatfs", /* 398 = fhstatfs */
2002-09-19 00:48:57 +00:00
"#399", /* 399 = nosys */
"ksem_close", /* 400 = ksem_close */
"ksem_post", /* 401 = ksem_post */
"ksem_wait", /* 402 = ksem_wait */
"ksem_trywait", /* 403 = ksem_trywait */
"ksem_init", /* 404 = ksem_init */
"ksem_open", /* 405 = ksem_open */
"ksem_unlink", /* 406 = ksem_unlink */
"ksem_getvalue", /* 407 = ksem_getvalue */
"ksem_destroy", /* 408 = ksem_destroy */
2002-10-22 14:23:52 +00:00
"__mac_get_pid", /* 409 = __mac_get_pid */
"__mac_get_link", /* 410 = __mac_get_link */
"__mac_set_link", /* 411 = __mac_set_link */
2002-10-09 21:47:29 +00:00
"extattr_set_link", /* 412 = extattr_set_link */
"extattr_get_link", /* 413 = extattr_get_link */
"extattr_delete_link", /* 414 = extattr_delete_link */
2002-11-05 17:48:04 +00:00
"__mac_execve", /* 415 = __mac_execve */
"sigaction", /* 416 = sigaction */
"sigreturn", /* 417 = sigreturn */
2002-10-22 14:23:52 +00:00
"#418", /* 418 = __xstat */
"#419", /* 419 = __xfstat */
"#420", /* 420 = __xlstat */
2002-11-16 06:36:56 +00:00
"getcontext", /* 421 = getcontext */
"setcontext", /* 422 = setcontext */
"swapcontext", /* 423 = swapcontext */
"swapoff", /* 424 = swapoff */
2002-12-29 20:26:41 +00:00
"__acl_get_link", /* 425 = __acl_get_link */
"__acl_set_link", /* 426 = __acl_set_link */
"__acl_delete_link", /* 427 = __acl_delete_link */
"__acl_aclcheck_link", /* 428 = __acl_aclcheck_link */
"sigwait", /* 429 = sigwait */
2003-04-01 00:34:29 +00:00
"thr_create", /* 430 = thr_create */
"thr_exit", /* 431 = thr_exit */
"thr_self", /* 432 = thr_self */
"thr_kill", /* 433 = thr_kill */
"#434", /* 434 = nosys */
"#435", /* 435 = nosys */
2003-04-09 02:57:29 +00:00
"jail_attach", /* 436 = jail_attach */
"extattr_list_fd", /* 437 = extattr_list_fd */
"extattr_list_file", /* 438 = extattr_list_file */
"extattr_list_link", /* 439 = extattr_list_link */
"#440", /* 440 = kse_switchin */
2004-02-03 05:11:31 +00:00
"ksem_timedwait", /* 441 = ksem_timedwait */
"thr_suspend", /* 442 = thr_suspend */
"thr_wake", /* 443 = thr_wake */
"kldunloadf", /* 444 = kldunloadf */
2004-10-23 20:01:32 +00:00
"audit", /* 445 = audit */
"auditon", /* 446 = auditon */
"getauid", /* 447 = getauid */
"setauid", /* 448 = setauid */
"getaudit", /* 449 = getaudit */
"setaudit", /* 450 = setaudit */
"getaudit_addr", /* 451 = getaudit_addr */
"setaudit_addr", /* 452 = setaudit_addr */
"auditctl", /* 453 = auditctl */
"_umtx_op", /* 454 = _umtx_op */
2005-04-23 02:38:17 +00:00
"thr_new", /* 455 = thr_new */
2005-10-14 12:56:28 +00:00
"sigqueue", /* 456 = sigqueue */
2006-03-01 06:49:38 +00:00
"kmq_open", /* 457 = kmq_open */
"kmq_setattr", /* 458 = kmq_setattr */
"kmq_timedreceive", /* 459 = kmq_timedreceive */
"kmq_timedsend", /* 460 = kmq_timedsend */
"kmq_notify", /* 461 = kmq_notify */
"kmq_unlink", /* 462 = kmq_unlink */
"abort2", /* 463 = abort2 */
2006-02-05 02:23:41 +00:00
"thr_set_name", /* 464 = thr_set_name */
2006-03-23 08:48:37 +00:00
"aio_fsync", /* 465 = aio_fsync */
2006-09-21 04:19:48 +00:00
"rtprio_thread", /* 466 = rtprio_thread */
"#467", /* 467 = nosys */
"#468", /* 468 = nosys */
2006-08-28 04:28:25 +00:00
"#469", /* 469 = __getpath_fromfd */
"#470", /* 470 = __getpath_fromaddr */
"sctp_peeloff", /* 471 = sctp_peeloff */
"sctp_generic_sendmsg", /* 472 = sctp_generic_sendmsg */
"sctp_generic_sendmsg_iov", /* 473 = sctp_generic_sendmsg_iov */
"sctp_generic_recvmsg", /* 474 = sctp_generic_recvmsg */
"pread", /* 475 = pread */
"pwrite", /* 476 = pwrite */
"mmap", /* 477 = mmap */
"lseek", /* 478 = lseek */
"truncate", /* 479 = truncate */
"ftruncate", /* 480 = ftruncate */
2007-08-16 05:32:26 +00:00
"thr_kill2", /* 481 = thr_kill2 */
"shm_open", /* 482 = shm_open */
"shm_unlink", /* 483 = shm_unlink */
2008-03-02 07:41:10 +00:00
"cpuset", /* 484 = cpuset */
"cpuset_setid", /* 485 = cpuset_setid */
"cpuset_getid", /* 486 = cpuset_getid */
"cpuset_getaffinity", /* 487 = cpuset_getaffinity */
"cpuset_setaffinity", /* 488 = cpuset_setaffinity */
2008-03-31 12:12:27 +00:00
"faccessat", /* 489 = faccessat */
"fchmodat", /* 490 = fchmodat */
"fchownat", /* 491 = fchownat */
"fexecve", /* 492 = fexecve */
"fstatat", /* 493 = fstatat */
"futimesat", /* 494 = futimesat */
"linkat", /* 495 = linkat */
"mkdirat", /* 496 = mkdirat */
"mkfifoat", /* 497 = mkfifoat */
"mknodat", /* 498 = mknodat */
"openat", /* 499 = openat */
"readlinkat", /* 500 = readlinkat */
"renameat", /* 501 = renameat */
"symlinkat", /* 502 = symlinkat */
"unlinkat", /* 503 = unlinkat */
Integrate the new MPSAFE TTY layer to the FreeBSD operating system. The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following: - Improved driver model: The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers. If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver. - Improved hotplugging: With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc). The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly. - Improved performance: One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters. Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING. Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
2008-08-20 08:31:58 +00:00
"posix_openpt", /* 504 = posix_openpt */
2008-11-03 10:39:35 +00:00
"gssd_syscall", /* 505 = gssd_syscall */
"jail_get", /* 506 = jail_get */
"jail_set", /* 507 = jail_set */
"jail_remove", /* 508 = jail_remove */
2009-06-15 20:40:23 +00:00
"closefrom", /* 509 = closefrom */
2009-06-24 21:54:08 +00:00
"__semctl", /* 510 = __semctl */
"msgctl", /* 511 = msgctl */
"shmctl", /* 512 = shmctl */
"lpathconf", /* 513 = lpathconf */
"obs_cap_new", /* 514 = obsolete cap_new */
"__cap_rights_get", /* 515 = __cap_rights_get */
"cap_enter", /* 516 = cap_enter */
"cap_getmode", /* 517 = cap_getmode */
"pdfork", /* 518 = pdfork */
"pdkill", /* 519 = pdkill */
"pdgetpid", /* 520 = pdgetpid */
"#521", /* 521 = pdwait4 */
2009-10-27 11:01:15 +00:00
"pselect", /* 522 = pselect */
2011-03-05 12:46:24 +00:00
"getloginclass", /* 523 = getloginclass */
"setloginclass", /* 524 = setloginclass */
2011-03-30 17:59:54 +00:00
"rctl_get_racct", /* 525 = rctl_get_racct */
"rctl_get_rules", /* 526 = rctl_get_rules */
"rctl_get_limits", /* 527 = rctl_get_limits */
"rctl_add_rule", /* 528 = rctl_add_rule */
"rctl_remove_rule", /* 529 = rctl_remove_rule */
2011-04-18 16:32:47 +00:00
"posix_fallocate", /* 530 = posix_fallocate */
2011-11-04 04:06:31 +00:00
"posix_fadvise", /* 531 = posix_fadvise */
2012-11-13 12:53:41 +00:00
"wait6", /* 532 = wait6 */
2013-03-02 00:55:09 +00:00
"cap_rights_limit", /* 533 = cap_rights_limit */
"cap_ioctls_limit", /* 534 = cap_ioctls_limit */
"cap_ioctls_get", /* 535 = cap_ioctls_get */
"cap_fcntls_limit", /* 536 = cap_fcntls_limit */
"cap_fcntls_get", /* 537 = cap_fcntls_get */
2013-03-02 21:12:54 +00:00
"bindat", /* 538 = bindat */
"connectat", /* 539 = connectat */
"chflagsat", /* 540 = chflagsat */
2013-05-01 20:12:58 +00:00
"accept4", /* 541 = accept4 */
2013-05-01 22:45:04 +00:00
"pipe2", /* 542 = pipe2 */
"aio_mlock", /* 543 = aio_mlock */
2013-09-19 18:56:00 +00:00
"procctl", /* 544 = procctl */
2014-11-13 05:28:06 +00:00
"ppoll", /* 545 = ppoll */
2015-01-23 21:08:24 +00:00
"futimens", /* 546 = futimens */
"utimensat", /* 547 = utimensat */
2015-07-11 15:22:11 +00:00
"numa_getaffinity", /* 548 = numa_getaffinity */
"numa_setaffinity", /* 549 = numa_setaffinity */
1994-05-24 10:09:53 +00:00
};