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