github.com/tompreston/snapd@v0.0.0-20210817193607-954edfcb9611/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 "close_range", 68 "connect", 69 "copy_file_range", 70 "creat", 71 "create_module", 72 "delete_module", 73 "dup", 74 "dup2", 75 "dup3", 76 "epoll_create", 77 "epoll_create1", 78 "epoll_ctl", 79 "epoll_ctl_old", 80 "epoll_pwait", 81 "epoll_pwait2", 82 "epoll_wait", 83 "epoll_wait_old", 84 "eventfd", 85 "eventfd2", 86 "execve", 87 "execveat", 88 "exit", 89 "exit_group", 90 "faccessat", 91 "faccessat2", 92 "fadvise64", 93 "fadvise64_64", 94 "fallocate", 95 "fanotify_init", 96 "fanotify_mark", 97 "fchdir", 98 "fchmod", 99 "fchmodat", 100 "fchown", 101 "fchown32", 102 "fchownat", 103 "fcntl", 104 "fcntl64", 105 "fdatasync", 106 "fgetxattr", 107 "finit_module", 108 "flistxattr", 109 "flock", 110 "fork", 111 "fremovexattr", 112 "fsconfig", 113 "fsetxattr", 114 "fsmount", 115 "fsopen", 116 "fspick", 117 "fstat", 118 "fstat64", 119 "fstatat64", 120 "fstatfs", 121 "fstatfs64", 122 "fsync", 123 "ftime", 124 "ftruncate", 125 "ftruncate64", 126 "futex", 127 "futex_time64", 128 "futimesat", 129 "get_kernel_syms", 130 "get_mempolicy", 131 "get_robust_list", 132 "get_thread_area", 133 "get_tls", 134 "getcpu", 135 "getcwd", 136 "getdents", 137 "getdents64", 138 "getegid", 139 "getegid32", 140 "geteuid", 141 "geteuid32", 142 "getgid", 143 "getgid32", 144 "getgroups", 145 "getgroups32", 146 "getitimer", 147 "getpeername", 148 "getpgid", 149 "getpgrp", 150 "getpid", 151 "getpmsg", 152 "getppid", 153 "getpriority", 154 "getrandom", 155 "getresgid", 156 "getresgid32", 157 "getresuid", 158 "getresuid32", 159 "getrlimit", 160 "getrusage", 161 "getsid", 162 "getsockname", 163 "getsockopt", 164 "gettid", 165 "gettimeofday", 166 "getuid", 167 "getuid32", 168 "getxattr", 169 "gtty", 170 "idle", 171 "init_module", 172 "inotify_add_watch", 173 "inotify_init", 174 "inotify_init1", 175 "inotify_rm_watch", 176 "io_cancel", 177 "io_destroy", 178 "io_getevents", 179 "io_pgetevents", 180 "io_pgetevents_time64", 181 "io_setup", 182 "io_submit", 183 "io_uring_enter", 184 "io_uring_register", 185 "io_uring_setup", 186 "ioctl", 187 "ioperm", 188 "iopl", 189 "ioprio_get", 190 "ioprio_set", 191 "ipc", 192 "kcmp", 193 "kexec_file_load", 194 "kexec_load", 195 "keyctl", 196 "kill", 197 "lchown", 198 "lchown32", 199 "lgetxattr", 200 "link", 201 "linkat", 202 "listen", 203 "listxattr", 204 "llistxattr", 205 "lock", 206 "lookup_dcookie", 207 "lremovexattr", 208 "lseek", 209 "lsetxattr", 210 "lstat", 211 "lstat64", 212 "madvise", 213 "mbind", 214 "membarrier", 215 "memfd_create", 216 "migrate_pages", 217 "mincore", 218 "mkdir", 219 "mkdirat", 220 "mknod", 221 "mknodat", 222 "mlock", 223 "mlock2", 224 "mlockall", 225 "mmap", 226 "mmap2", 227 "modify_ldt", 228 "mount", 229 "mount_setattr", 230 "move_mount", 231 "move_pages", 232 "mprotect", 233 "mpx", 234 "mq_getsetattr", 235 "mq_notify", 236 "mq_open", 237 "mq_timedreceive", 238 "mq_timedreceive_time64", 239 "mq_timedsend", 240 "mq_timedsend_time64", 241 "mq_unlink", 242 "mremap", 243 "msgctl", 244 "msgget", 245 "msgrcv", 246 "msgsnd", 247 "msync", 248 "multiplexer", 249 "munlock", 250 "munlockall", 251 "munmap", 252 "name_to_handle_at", 253 "nanosleep", 254 "newfstatat", 255 "nfsservctl", 256 "nice", 257 "oldfstat", 258 "oldlstat", 259 "oldolduname", 260 "oldstat", 261 "olduname", 262 "open", 263 "open_by_handle_at", 264 "open_tree", 265 "openat", 266 "openat2", 267 "pause", 268 "pciconfig_iobase", 269 "pciconfig_read", 270 "pciconfig_write", 271 "perf_event_open", 272 "personality", 273 "pidfd_getfd", 274 "pidfd_open", 275 "pidfd_send_signal", 276 "pipe", 277 "pipe2", 278 "pivot_root", 279 "pkey_alloc", 280 "pkey_free", 281 "pkey_mprotect", 282 "poll", 283 "ppoll", 284 "ppoll_time64", 285 "prctl", 286 "pread64", 287 "preadv", 288 "preadv2", 289 "prlimit64", 290 "process_madvise", 291 "process_vm_readv", 292 "process_vm_writev", 293 "prof", 294 "profil", 295 "pselect6", 296 "pselect6_time64", 297 "ptrace", 298 "putpmsg", 299 "pwrite64", 300 "pwritev", 301 "pwritev2", 302 "query_module", 303 "quotactl", 304 "read", 305 "readahead", 306 "readdir", 307 "readlink", 308 "readlinkat", 309 "readv", 310 "reboot", 311 "recv", 312 "recvfrom", 313 "recvmmsg", 314 "recvmmsg_time64", 315 "recvmsg", 316 "remap_file_pages", 317 "removexattr", 318 "rename", 319 "renameat", 320 "renameat2", 321 "request_key", 322 "restart_syscall", 323 "riscv_flush_icache", 324 "rmdir", 325 "rseq", 326 "rt_sigaction", 327 "rt_sigpending", 328 "rt_sigprocmask", 329 "rt_sigqueueinfo", 330 "rt_sigreturn", 331 "rt_sigsuspend", 332 "rt_sigtimedwait", 333 "rt_sigtimedwait_time64", 334 "rt_tgsigqueueinfo", 335 "rtas", 336 "s390_guarded_storage", 337 "s390_pci_mmio_read", 338 "s390_pci_mmio_write", 339 "s390_runtime_instr", 340 "s390_sthyi", 341 "sched_get_priority_max", 342 "sched_get_priority_min", 343 "sched_getaffinity", 344 "sched_getattr", 345 "sched_getparam", 346 "sched_getscheduler", 347 "sched_rr_get_interval", 348 "sched_rr_get_interval_time64", 349 "sched_setaffinity", 350 "sched_setattr", 351 "sched_setparam", 352 "sched_setscheduler", 353 "sched_yield", 354 "seccomp", 355 "security", 356 "select", 357 "semctl", 358 "semget", 359 "semop", 360 "semtimedop", 361 "semtimedop_time64", 362 "send", 363 "sendfile", 364 "sendfile64", 365 "sendmmsg", 366 "sendmsg", 367 "sendto", 368 "set_mempolicy", 369 "set_robust_list", 370 "set_thread_area", 371 "set_tid_address", 372 "set_tls", 373 "setdomainname", 374 "setfsgid", 375 "setfsgid32", 376 "setfsuid", 377 "setfsuid32", 378 "setgid", 379 "setgid32", 380 "setgroups", 381 "setgroups32", 382 "sethostname", 383 "setitimer", 384 "setns", 385 "setpgid", 386 "setpriority", 387 "setregid", 388 "setregid32", 389 "setresgid", 390 "setresgid32", 391 "setresuid", 392 "setresuid32", 393 "setreuid", 394 "setreuid32", 395 "setrlimit", 396 "setsid", 397 "setsockopt", 398 "settimeofday", 399 "setuid", 400 "setuid32", 401 "setxattr", 402 "sgetmask", 403 "shmat", 404 "shmctl", 405 "shmdt", 406 "shmget", 407 "shutdown", 408 "sigaction", 409 "sigaltstack", 410 "signal", 411 "signalfd", 412 "signalfd4", 413 "sigpending", 414 "sigprocmask", 415 "sigreturn", 416 "sigsuspend", 417 "socket", 418 "socketcall", 419 "socketpair", 420 "splice", 421 "spu_create", 422 "spu_run", 423 "ssetmask", 424 "stat", 425 "stat64", 426 "statfs", 427 "statfs64", 428 "statx", 429 "stime", 430 "stty", 431 "subpage_prot", 432 "swapcontext", 433 "swapoff", 434 "swapon", 435 "switch_endian", 436 "symlink", 437 "symlinkat", 438 "sync", 439 "sync_file_range", 440 "sync_file_range2", 441 "syncfs", 442 "sys_debug_setcontext", 443 "syscall", 444 "sysfs", 445 "sysinfo", 446 "syslog", 447 "sysmips", 448 "tee", 449 "tgkill", 450 "time", 451 "timer_create", 452 "timer_delete", 453 "timer_getoverrun", 454 "timer_gettime", 455 "timer_gettime64", 456 "timer_settime", 457 "timer_settime64", 458 "timerfd", 459 "timerfd_create", 460 "timerfd_gettime", 461 "timerfd_gettime64", 462 "timerfd_settime", 463 "timerfd_settime64", 464 "times", 465 "tkill", 466 "truncate", 467 "truncate64", 468 "tuxcall", 469 "ugetrlimit", 470 "ulimit", 471 "umask", 472 "umount", 473 "umount2", 474 "uname", 475 "unlink", 476 "unlinkat", 477 "unshare", 478 "uselib", 479 "userfaultfd", 480 "usr26", 481 "usr32", 482 "ustat", 483 "utime", 484 "utimensat", 485 "utimensat_time64", 486 "utimes", 487 "vfork", 488 "vhangup", 489 "vm86", 490 "vm86old", 491 "vmsplice", 492 "vserver", 493 "wait4", 494 "waitid", 495 "waitpid", 496 "write", 497 "writev", 498 }