1994-05-24 10:09:53 +00:00
|
|
|
/*
|
|
|
|
* System call names.
|
|
|
|
*
|
|
|
|
* DO NOT EDIT-- this file is automatically generated.
|
1999-09-11 00:46:08 +00:00
|
|
|
* $FreeBSD$
|
2004-10-23 20:01:32 +00:00
|
|
|
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.178 2004/10/23 20:00:43 rwatson Exp
|
1994-05-24 10:09:53 +00:00
|
|
|
*/
|
|
|
|
|
2002-10-29 15:47:06 +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 */
|
|
|
|
"old.creat", /* 8 = old creat */
|
|
|
|
"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 */
|
2003-11-12 08:09:19 +00:00
|
|
|
"old.getfsstat", /* 18 = old getfsstat */
|
1994-05-24 10:09:53 +00:00
|
|
|
"old.lseek", /* 19 = old lseek */
|
|
|
|
"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 */
|
|
|
|
"old.stat", /* 38 = old stat */
|
|
|
|
"getppid", /* 39 = getppid */
|
|
|
|
"old.lstat", /* 40 = old lstat */
|
|
|
|
"dup", /* 41 = dup */
|
|
|
|
"pipe", /* 42 = pipe */
|
|
|
|
"getegid", /* 43 = getegid */
|
|
|
|
"profil", /* 44 = profil */
|
|
|
|
"ktrace", /* 45 = ktrace */
|
1999-10-12 09:33:53 +00:00
|
|
|
"old.sigaction", /* 46 = old sigaction */
|
1994-05-24 10:09:53 +00:00
|
|
|
"getgid", /* 47 = getgid */
|
1999-10-12 09:33:53 +00:00
|
|
|
"old.sigprocmask", /* 48 = old sigprocmask */
|
1994-05-24 10:09:53 +00:00
|
|
|
"getlogin", /* 49 = getlogin */
|
|
|
|
"setlogin", /* 50 = setlogin */
|
|
|
|
"acct", /* 51 = acct */
|
1999-10-12 09:33:53 +00:00
|
|
|
"old.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 */
|
|
|
|
"old.fstat", /* 62 = old fstat */
|
|
|
|
"old.getkerninfo", /* 63 = old getkerninfo */
|
|
|
|
"old.getpagesize", /* 64 = old getpagesize */
|
|
|
|
"msync", /* 65 = msync */
|
|
|
|
"vfork", /* 66 = vfork */
|
|
|
|
"obs_vread", /* 67 = obsolete vread */
|
|
|
|
"obs_vwrite", /* 68 = obsolete vwrite */
|
|
|
|
"sbrk", /* 69 = sbrk */
|
|
|
|
"sstk", /* 70 = sstk */
|
|
|
|
"old.mmap", /* 71 = old mmap */
|
|
|
|
"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 */
|
|
|
|
"old.wait", /* 84 = old wait */
|
|
|
|
"swapon", /* 85 = swapon */
|
|
|
|
"getitimer", /* 86 = getitimer */
|
|
|
|
"old.gethostname", /* 87 = old gethostname */
|
|
|
|
"old.sethostname", /* 88 = old sethostname */
|
|
|
|
"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 */
|
|
|
|
"old.accept", /* 99 = old accept */
|
|
|
|
"getpriority", /* 100 = getpriority */
|
|
|
|
"old.send", /* 101 = old send */
|
|
|
|
"old.recv", /* 102 = old recv */
|
2002-10-25 19:10:58 +00:00
|
|
|
"old.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 */
|
|
|
|
"old.sigvec", /* 108 = old sigvec */
|
|
|
|
"old.sigblock", /* 109 = old sigblock */
|
|
|
|
"old.sigsetmask", /* 110 = old sigsetmask */
|
1999-10-12 09:33:53 +00:00
|
|
|
"old.sigsuspend", /* 111 = old sigsuspend */
|
1994-05-24 10:09:53 +00:00
|
|
|
"old.sigstack", /* 112 = old sigstack */
|
|
|
|
"old.recvmsg", /* 113 = old recvmsg */
|
|
|
|
"old.sendmsg", /* 114 = old sendmsg */
|
|
|
|
"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 */
|
|
|
|
"old.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 */
|
|
|
|
"old.truncate", /* 129 = old truncate */
|
|
|
|
"old.ftruncate", /* 130 = old ftruncate */
|
|
|
|
"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 */
|
|
|
|
"old.getpeername", /* 141 = old getpeername */
|
|
|
|
"old.gethostid", /* 142 = old gethostid */
|
|
|
|
"old.sethostid", /* 143 = old sethostid */
|
|
|
|
"old.getrlimit", /* 144 = old getrlimit */
|
|
|
|
"old.setrlimit", /* 145 = old setrlimit */
|
|
|
|
"old.killpg", /* 146 = old killpg */
|
|
|
|
"setsid", /* 147 = setsid */
|
|
|
|
"quotactl", /* 148 = quotactl */
|
|
|
|
"old.quota", /* 149 = old quota */
|
|
|
|
"old.getsockname", /* 150 = old getsockname */
|
1996-02-23 18:31:34 +00:00
|
|
|
"#151", /* 151 = sem_lock */
|
|
|
|
"#152", /* 152 = sem_wakeup */
|
|
|
|
"#153", /* 153 = asyncdaemon */
|
1994-05-24 10:09:53 +00:00
|
|
|
"#154", /* 154 = nosys */
|
|
|
|
"nfssvc", /* 155 = nfssvc */
|
|
|
|
"old.getdirentries", /* 156 = old getdirentries */
|
2003-11-12 08:09:19 +00:00
|
|
|
"old.statfs", /* 157 = old statfs */
|
|
|
|
"old.fstatfs", /* 158 = old 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 */
|
1994-05-25 09:21:21 +00:00
|
|
|
"getdomainname", /* 162 = getdomainname */
|
|
|
|
"setdomainname", /* 163 = setdomainname */
|
|
|
|
"uname", /* 164 = uname */
|
|
|
|
"sysarch", /* 165 = sysarch */
|
1994-09-01 05:15:50 +00:00
|
|
|
"rtprio", /* 166 = rtprio */
|
1994-05-24 10:09:53 +00:00
|
|
|
"#167", /* 167 = nosys */
|
|
|
|
"#168", /* 168 = nosys */
|
1994-09-13 14:47:38 +00:00
|
|
|
"semsys", /* 169 = semsys */
|
|
|
|
"msgsys", /* 170 = msgsys */
|
1994-05-24 10:09:53 +00:00
|
|
|
"shmsys", /* 171 = shmsys */
|
|
|
|
"#172", /* 172 = nosys */
|
1999-03-27 21:16:58 +00:00
|
|
|
"pread", /* 173 = pread */
|
|
|
|
"pwrite", /* 174 = pwrite */
|
1994-09-18 20:40:01 +00:00
|
|
|
"#175", /* 175 = nosys */
|
1994-08-26 18:15:25 +00:00
|
|
|
"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 */
|
1998-01-30 11:34:06 +00:00
|
|
|
"#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 */
|
|
|
|
"mmap", /* 197 = mmap */
|
|
|
|
"__syscall", /* 198 = __syscall */
|
|
|
|
"lseek", /* 199 = lseek */
|
|
|
|
"truncate", /* 200 = truncate */
|
|
|
|
"ftruncate", /* 201 = ftruncate */
|
|
|
|
"__sysctl", /* 202 = __sysctl */
|
|
|
|
"mlock", /* 203 = mlock */
|
|
|
|
"munlock", /* 204 = munlock */
|
1998-05-11 03:55:28 +00:00
|
|
|
"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 */
|
1994-08-19 11:45:29 +00:00
|
|
|
"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 */
|
1995-12-15 04:46:32 +00:00
|
|
|
"__semctl", /* 220 = __semctl */
|
|
|
|
"semget", /* 221 = semget */
|
|
|
|
"semop", /* 222 = semop */
|
2000-05-01 11:14:08 +00:00
|
|
|
"#223", /* 223 = semconfig */
|
1995-12-15 04:46:32 +00:00
|
|
|
"msgctl", /* 224 = msgctl */
|
|
|
|
"msgget", /* 225 = msgget */
|
|
|
|
"msgsnd", /* 226 = msgsnd */
|
|
|
|
"msgrcv", /* 227 = msgrcv */
|
|
|
|
"shmat", /* 228 = shmat */
|
|
|
|
"shmctl", /* 229 = shmctl */
|
|
|
|
"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 */
|
|
|
|
"#235", /* 235 = timer_create */
|
|
|
|
"#236", /* 236 = timer_delete */
|
|
|
|
"#237", /* 237 = timer_settime */
|
|
|
|
"#238", /* 238 = timer_gettime */
|
|
|
|
"#239", /* 239 = timer_getoverrun */
|
|
|
|
"nanosleep", /* 240 = nanosleep */
|
1996-02-23 18:31:34 +00:00
|
|
|
"#241", /* 241 = nosys */
|
|
|
|
"#242", /* 242 = nosys */
|
|
|
|
"#243", /* 243 = nosys */
|
|
|
|
"#244", /* 244 = nosys */
|
|
|
|
"#245", /* 245 = nosys */
|
|
|
|
"#246", /* 246 = nosys */
|
|
|
|
"#247", /* 247 = nosys */
|
|
|
|
"#248", /* 248 = nosys */
|
|
|
|
"#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 */
|
1997-05-07 16:05:47 +00:00
|
|
|
"#255", /* 255 = nosys */
|
|
|
|
"#256", /* 256 = nosys */
|
|
|
|
"#257", /* 257 = nosys */
|
|
|
|
"#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 */
|
1998-05-11 03:55:28 +00:00
|
|
|
"getdents", /* 272 = getdents */
|
1997-05-07 16:05:47 +00:00
|
|
|
"#273", /* 273 = nosys */
|
1998-05-11 03:55:28 +00:00
|
|
|
"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 */
|
1997-05-07 16:05:47 +00:00
|
|
|
"#281", /* 281 = nosys */
|
|
|
|
"#282", /* 282 = nosys */
|
|
|
|
"#283", /* 283 = nosys */
|
|
|
|
"#284", /* 284 = nosys */
|
|
|
|
"#285", /* 285 = nosys */
|
|
|
|
"#286", /* 286 = nosys */
|
|
|
|
"#287", /* 287 = nosys */
|
|
|
|
"#288", /* 288 = nosys */
|
|
|
|
"#289", /* 289 = nosys */
|
|
|
|
"#290", /* 290 = nosys */
|
|
|
|
"#291", /* 291 = nosys */
|
|
|
|
"#292", /* 292 = nosys */
|
|
|
|
"#293", /* 293 = nosys */
|
|
|
|
"#294", /* 294 = nosys */
|
|
|
|
"#295", /* 295 = nosys */
|
|
|
|
"#296", /* 296 = nosys */
|
2003-11-12 08:09:19 +00:00
|
|
|
"old.fhstatfs", /* 297 = old fhstatfs */
|
1999-09-11 00:46:08 +00:00
|
|
|
"fhopen", /* 298 = fhopen */
|
|
|
|
"fhstat", /* 299 = fhstat */
|
1997-05-07 16:05:47 +00:00
|
|
|
"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 */
|
2000-01-16 16:34:26 +00:00
|
|
|
"setresuid", /* 311 = setresuid */
|
|
|
|
"setresgid", /* 312 = setresgid */
|
1998-05-14 11:29:06 +00:00
|
|
|
"obs_signanosleep", /* 313 = obsolete signanosleep */
|
1997-06-16 00:29:36 +00:00
|
|
|
"aio_return", /* 314 = aio_return */
|
|
|
|
"aio_suspend", /* 315 = aio_suspend */
|
|
|
|
"aio_cancel", /* 316 = aio_cancel */
|
|
|
|
"aio_error", /* 317 = aio_error */
|
|
|
|
"aio_read", /* 318 = aio_read */
|
|
|
|
"aio_write", /* 319 = aio_write */
|
|
|
|
"lio_listio", /* 320 = 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 */
|
1997-06-16 00:29:36 +00:00
|
|
|
"mlockall", /* 324 = mlockall */
|
|
|
|
"munlockall", /* 325 = munlockall */
|
1997-09-14 16:51:31 +00:00
|
|
|
"__getcwd", /* 326 = __getcwd */
|
1998-03-28 11:51:01 +00:00
|
|
|
"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 */
|
1998-05-11 03:55:28 +00:00
|
|
|
"utrace", /* 335 = utrace */
|
2002-07-12 06:52:44 +00:00
|
|
|
"old.sendfile", /* 336 = old 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 */
|
1999-08-04 20:04:25 +00:00
|
|
|
"#339", /* 339 = pioctl */
|
1999-09-29 15:03:48 +00:00
|
|
|
"sigprocmask", /* 340 = sigprocmask */
|
|
|
|
"sigsuspend", /* 341 = sigsuspend */
|
2002-10-25 19:10:58 +00:00
|
|
|
"old.sigaction", /* 342 = old sigaction */
|
1999-09-29 15:03:48 +00:00
|
|
|
"sigpending", /* 343 = sigpending */
|
2002-10-25 19:10:58 +00:00
|
|
|
"old.sigreturn", /* 344 = old sigreturn */
|
2003-03-31 23:33:45 +00:00
|
|
|
"sigtimedwait", /* 345 = sigtimedwait */
|
|
|
|
"sigwaitinfo", /* 346 = sigwaitinfo */
|
2000-01-19 06:02:31 +00:00
|
|
|
"__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 */
|
1999-12-19 06:08:07 +00:00
|
|
|
"extattrctl", /* 355 = extattrctl */
|
|
|
|
"extattr_set_file", /* 356 = extattr_set_file */
|
|
|
|
"extattr_get_file", /* 357 = extattr_get_file */
|
|
|
|
"extattr_delete_file", /* 358 = extattr_delete_file */
|
2000-01-14 02:53:29 +00:00
|
|
|
"aio_waitcomplete", /* 359 = aio_waitcomplete */
|
2000-01-16 16:34:26 +00:00
|
|
|
"getresuid", /* 360 = getresuid */
|
|
|
|
"getresgid", /* 361 = getresgid */
|
2000-04-16 18:53:38 +00:00
|
|
|
"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 */
|
2000-12-01 08:57:47 +00:00
|
|
|
"lkmressys", /* 370 = lkmressys */
|
2001-03-31 16:21:19 +00:00
|
|
|
"extattr_set_fd", /* 371 = extattr_set_fd */
|
|
|
|
"extattr_get_fd", /* 372 = extattr_get_fd */
|
|
|
|
"extattr_delete_fd", /* 373 = extattr_delete_fd */
|
2001-04-11 20:21:37 +00:00
|
|
|
"__setugid", /* 374 = __setugid */
|
2001-09-18 23:33:33 +00:00
|
|
|
"nfsclnt", /* 375 = nfsclnt */
|
2001-09-21 21:34:06 +00:00
|
|
|
"eaccess", /* 376 = eaccess */
|
2001-10-13 13:30:21 +00:00
|
|
|
"#377", /* 377 = afs_syscall */
|
2001-11-02 17:59:23 +00:00
|
|
|
"nmount", /* 378 = nmount */
|
2002-02-19 02:40:31 +00:00
|
|
|
"kse_exit", /* 379 = kse_exit */
|
|
|
|
"kse_wakeup", /* 380 = kse_wakeup */
|
2002-09-25 18:10:42 +00:00
|
|
|
"kse_create", /* 381 = kse_create */
|
|
|
|
"kse_thr_interrupt", /* 382 = kse_thr_interrupt */
|
|
|
|
"kse_release", /* 383 = kse_release */
|
2002-07-30 02:09:24 +00:00
|
|
|
"__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 */
|
2002-04-17 13:06:36 +00:00
|
|
|
"kenv", /* 390 = kenv */
|
2002-05-05 23:47:41 +00:00
|
|
|
"lchflags", /* 391 = lchflags */
|
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 */
|
2003-11-12 08:09:19 +00:00
|
|
|
"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 */
|
2002-10-25 19:10:58 +00:00
|
|
|
"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 */
|
2002-12-15 19:19:15 +00:00
|
|
|
"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 */
|
2003-03-31 23:33:45 +00:00
|
|
|
"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 */
|
2003-04-01 01:22:18 +00:00
|
|
|
"_umtx_lock", /* 434 = _umtx_lock */
|
|
|
|
"_umtx_unlock", /* 435 = _umtx_unlock */
|
2003-04-09 02:57:29 +00:00
|
|
|
"jail_attach", /* 436 = jail_attach */
|
2003-06-04 03:50:20 +00:00
|
|
|
"extattr_list_fd", /* 437 = extattr_list_fd */
|
|
|
|
"extattr_list_file", /* 438 = extattr_list_file */
|
|
|
|
"extattr_list_link", /* 439 = extattr_list_link */
|
2003-12-07 19:36:16 +00:00
|
|
|
"kse_switchin", /* 440 = kse_switchin */
|
2004-02-03 05:11:31 +00:00
|
|
|
"ksem_timedwait", /* 441 = ksem_timedwait */
|
2004-03-27 14:34:17 +00:00
|
|
|
"thr_suspend", /* 442 = thr_suspend */
|
|
|
|
"thr_wake", /* 443 = thr_wake */
|
2004-07-13 19:36:59 +00:00
|
|
|
"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 */
|
1994-05-24 10:09:53 +00:00
|
|
|
};
|