github.com/rigado/snapd@v2.42.5-go-mod+incompatible/cmd/snap-seccomp/syscalls/syscalls.go (about) 1 // -*- Mode: Go; indent-tabs-mode: t -*- 2 3 /* 4 * Copyright (C) 2019 Canonical Ltd 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 3 as 8 * published by the Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * 18 */ 19 20 package syscalls 21 22 // Generated using arch-syscall-dump test tool from libseccomp tree, git 23 // revision bf747eb21e428c2b3ead6ebcca27951b681963a0. 24 var SeccompSyscalls = []string{ 25 "_llseek", 26 "_newselect", 27 "_sysctl", 28 "accept", 29 "accept4", 30 "access", 31 "acct", 32 "add_key", 33 "adjtimex", 34 "afs_syscall", 35 "alarm", 36 "arch_prctl", 37 "arm_fadvise64_64", 38 "arm_sync_file_range", 39 "bdflush", 40 "bind", 41 "bpf", 42 "break", 43 "breakpoint", 44 "brk", 45 "cachectl", 46 "cacheflush", 47 "capget", 48 "capset", 49 "chdir", 50 "chmod", 51 "chown", 52 "chown32", 53 "chroot", 54 "clock_adjtime", 55 "clock_adjtime64", 56 "clock_getres", 57 "clock_getres_time64", 58 "clock_gettime", 59 "clock_gettime64", 60 "clock_nanosleep", 61 "clock_nanosleep_time64", 62 "clock_settime", 63 "clock_settime64", 64 "clone", 65 "clone3", 66 "close", 67 "connect", 68 "copy_file_range", 69 "creat", 70 "create_module", 71 "delete_module", 72 "dup", 73 "dup2", 74 "dup3", 75 "epoll_create", 76 "epoll_create1", 77 "epoll_ctl", 78 "epoll_ctl_old", 79 "epoll_pwait", 80 "epoll_wait", 81 "epoll_wait_old", 82 "eventfd", 83 "eventfd2", 84 "execve", 85 "execveat", 86 "exit", 87 "exit_group", 88 "faccessat", 89 "fadvise64", 90 "fadvise64_64", 91 "fallocate", 92 "fanotify_init", 93 "fanotify_mark", 94 "fchdir", 95 "fchmod", 96 "fchmodat", 97 "fchown", 98 "fchown32", 99 "fchownat", 100 "fcntl", 101 "fcntl64", 102 "fdatasync", 103 "fgetxattr", 104 "finit_module", 105 "flistxattr", 106 "flock", 107 "fork", 108 "fremovexattr", 109 "fsconfig", 110 "fsetxattr", 111 "fsmount", 112 "fsopen", 113 "fspick", 114 "fstat", 115 "fstat64", 116 "fstatat64", 117 "fstatfs", 118 "fstatfs64", 119 "fsync", 120 "ftime", 121 "ftruncate", 122 "ftruncate64", 123 "futex", 124 "futex_time64", 125 "futimesat", 126 "get_kernel_syms", 127 "get_mempolicy", 128 "get_robust_list", 129 "get_thread_area", 130 "get_tls", 131 "getcpu", 132 "getcwd", 133 "getdents", 134 "getdents64", 135 "getegid", 136 "getegid32", 137 "geteuid", 138 "geteuid32", 139 "getgid", 140 "getgid32", 141 "getgroups", 142 "getgroups32", 143 "getitimer", 144 "getpeername", 145 "getpgid", 146 "getpgrp", 147 "getpid", 148 "getpmsg", 149 "getppid", 150 "getpriority", 151 "getrandom", 152 "getresgid", 153 "getresgid32", 154 "getresuid", 155 "getresuid32", 156 "getrlimit", 157 "getrusage", 158 "getsid", 159 "getsockname", 160 "getsockopt", 161 "gettid", 162 "gettimeofday", 163 "getuid", 164 "getuid32", 165 "getxattr", 166 "gtty", 167 "idle", 168 "init_module", 169 "inotify_add_watch", 170 "inotify_init", 171 "inotify_init1", 172 "inotify_rm_watch", 173 "io_cancel", 174 "io_destroy", 175 "io_getevents", 176 "io_pgetevents", 177 "io_pgetevents_time64", 178 "io_setup", 179 "io_submit", 180 "io_uring_enter", 181 "io_uring_register", 182 "io_uring_setup", 183 "ioctl", 184 "ioperm", 185 "iopl", 186 "ioprio_get", 187 "ioprio_set", 188 "ipc", 189 "kcmp", 190 "kexec_file_load", 191 "kexec_load", 192 "keyctl", 193 "kill", 194 "lchown", 195 "lchown32", 196 "lgetxattr", 197 "link", 198 "linkat", 199 "listen", 200 "listxattr", 201 "llistxattr", 202 "lock", 203 "lookup_dcookie", 204 "lremovexattr", 205 "lseek", 206 "lsetxattr", 207 "lstat", 208 "lstat64", 209 "madvise", 210 "mbind", 211 "membarrier", 212 "memfd_create", 213 "migrate_pages", 214 "mincore", 215 "mkdir", 216 "mkdirat", 217 "mknod", 218 "mknodat", 219 "mlock", 220 "mlock2", 221 "mlockall", 222 "mmap", 223 "mmap2", 224 "modify_ldt", 225 "mount", 226 "move_mount", 227 "move_pages", 228 "mprotect", 229 "mpx", 230 "mq_getsetattr", 231 "mq_notify", 232 "mq_open", 233 "mq_timedreceive", 234 "mq_timedreceive_time64", 235 "mq_timedsend", 236 "mq_timedsend_time64", 237 "mq_unlink", 238 "mremap", 239 "msgctl", 240 "msgget", 241 "msgrcv", 242 "msgsnd", 243 "msync", 244 "multiplexer", 245 "munlock", 246 "munlockall", 247 "munmap", 248 "name_to_handle_at", 249 "nanosleep", 250 "newfstatat", 251 "nfsservctl", 252 "nice", 253 "oldfstat", 254 "oldlstat", 255 "oldolduname", 256 "oldstat", 257 "olduname", 258 "oldwait4", 259 "open", 260 "open_by_handle_at", 261 "open_tree", 262 "openat", 263 "pause", 264 "pciconfig_iobase", 265 "pciconfig_read", 266 "pciconfig_write", 267 "perf_event_open", 268 "personality", 269 "pidfd_open", 270 "pidfd_send_signal", 271 "pipe", 272 "pipe2", 273 "pivot_root", 274 "pkey_alloc", 275 "pkey_free", 276 "pkey_mprotect", 277 "poll", 278 "ppoll", 279 "ppoll_time64", 280 "prctl", 281 "pread64", 282 "preadv", 283 "preadv2", 284 "prlimit64", 285 "process_vm_readv", 286 "process_vm_writev", 287 "prof", 288 "profil", 289 "pselect6", 290 "pselect6_time64", 291 "ptrace", 292 "putpmsg", 293 "pwrite64", 294 "pwritev", 295 "pwritev2", 296 "query_module", 297 "quotactl", 298 "read", 299 "readahead", 300 "readdir", 301 "readlink", 302 "readlinkat", 303 "readv", 304 "reboot", 305 "recv", 306 "recvfrom", 307 "recvmmsg", 308 "recvmmsg_time64", 309 "recvmsg", 310 "remap_file_pages", 311 "removexattr", 312 "rename", 313 "renameat", 314 "renameat2", 315 "request_key", 316 "restart_syscall", 317 "rmdir", 318 "rseq", 319 "rt_sigaction", 320 "rt_sigpending", 321 "rt_sigprocmask", 322 "rt_sigqueueinfo", 323 "rt_sigreturn", 324 "rt_sigsuspend", 325 "rt_sigtimedwait", 326 "rt_sigtimedwait_time64", 327 "rt_tgsigqueueinfo", 328 "rtas", 329 "s390_guarded_storage", 330 "s390_pci_mmio_read", 331 "s390_pci_mmio_write", 332 "s390_runtime_instr", 333 "s390_sthyi", 334 "sched_get_priority_max", 335 "sched_get_priority_min", 336 "sched_getaffinity", 337 "sched_getattr", 338 "sched_getparam", 339 "sched_getscheduler", 340 "sched_rr_get_interval", 341 "sched_rr_get_interval_time64", 342 "sched_setaffinity", 343 "sched_setattr", 344 "sched_setparam", 345 "sched_setscheduler", 346 "sched_yield", 347 "seccomp", 348 "security", 349 "select", 350 "semctl", 351 "semget", 352 "semop", 353 "semtimedop", 354 "semtimedop_time64", 355 "send", 356 "sendfile", 357 "sendfile64", 358 "sendmmsg", 359 "sendmsg", 360 "sendto", 361 "set_mempolicy", 362 "set_robust_list", 363 "set_thread_area", 364 "set_tid_address", 365 "set_tls", 366 "setdomainname", 367 "setfsgid", 368 "setfsgid32", 369 "setfsuid", 370 "setfsuid32", 371 "setgid", 372 "setgid32", 373 "setgroups", 374 "setgroups32", 375 "sethostname", 376 "setitimer", 377 "setns", 378 "setpgid", 379 "setpriority", 380 "setregid", 381 "setregid32", 382 "setresgid", 383 "setresgid32", 384 "setresuid", 385 "setresuid32", 386 "setreuid", 387 "setreuid32", 388 "setrlimit", 389 "setsid", 390 "setsockopt", 391 "settimeofday", 392 "setuid", 393 "setuid32", 394 "setxattr", 395 "sgetmask", 396 "shmat", 397 "shmctl", 398 "shmdt", 399 "shmget", 400 "shutdown", 401 "sigaction", 402 "sigaltstack", 403 "signal", 404 "signalfd", 405 "signalfd4", 406 "sigpending", 407 "sigprocmask", 408 "sigreturn", 409 "sigsuspend", 410 "socket", 411 "socketcall", 412 "socketpair", 413 "splice", 414 "spu_create", 415 "spu_run", 416 "ssetmask", 417 "stat", 418 "stat64", 419 "statfs", 420 "statfs64", 421 "statx", 422 "stime", 423 "stty", 424 "subpage_prot", 425 "swapcontext", 426 "swapoff", 427 "swapon", 428 "switch_endian", 429 "symlink", 430 "symlinkat", 431 "sync", 432 "sync_file_range", 433 "sync_file_range2", 434 "syncfs", 435 "sys_debug_setcontext", 436 "syscall", 437 "sysfs", 438 "sysinfo", 439 "syslog", 440 "sysmips", 441 "tee", 442 "tgkill", 443 "time", 444 "timer_create", 445 "timer_delete", 446 "timer_getoverrun", 447 "timer_gettime", 448 "timer_gettime64", 449 "timer_settime", 450 "timer_settime64", 451 "timerfd", 452 "timerfd_create", 453 "timerfd_gettime", 454 "timerfd_gettime64", 455 "timerfd_settime", 456 "timerfd_settime64", 457 "times", 458 "tkill", 459 "truncate", 460 "truncate64", 461 "tuxcall", 462 "ugetrlimit", 463 "ulimit", 464 "umask", 465 "umount", 466 "umount2", 467 "uname", 468 "unlink", 469 "unlinkat", 470 "unshare", 471 "uselib", 472 "userfaultfd", 473 "usr26", 474 "usr32", 475 "ustat", 476 "utime", 477 "utimensat", 478 "utimensat_time64", 479 "utimes", 480 "vfork", 481 "vhangup", 482 "vm86", 483 "vm86old", 484 "vmsplice", 485 "vserver", 486 "wait4", 487 "waitid", 488 "waitpid", 489 "write", 490 "writev", 491 }