github.com/Lephar/snapd@v0.0.0-20210825215435-c7fba9cef4d2/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 "landlock_add_rule", 198 "landlock_create_ruleset", 199 "landlock_restrict_self", 200 "lchown", 201 "lchown32", 202 "lgetxattr", 203 "link", 204 "linkat", 205 "listen", 206 "listxattr", 207 "llistxattr", 208 "lock", 209 "lookup_dcookie", 210 "lremovexattr", 211 "lseek", 212 "lsetxattr", 213 "lstat", 214 "lstat64", 215 "madvise", 216 "mbind", 217 "membarrier", 218 "memfd_create", 219 "memfd_secret", 220 "migrate_pages", 221 "mincore", 222 "mkdir", 223 "mkdirat", 224 "mknod", 225 "mknodat", 226 "mlock", 227 "mlock2", 228 "mlockall", 229 "mmap", 230 "mmap2", 231 "modify_ldt", 232 "mount", 233 "mount_setattr", 234 "move_mount", 235 "move_pages", 236 "mprotect", 237 "mpx", 238 "mq_getsetattr", 239 "mq_notify", 240 "mq_open", 241 "mq_timedreceive", 242 "mq_timedreceive_time64", 243 "mq_timedsend", 244 "mq_timedsend_time64", 245 "mq_unlink", 246 "mremap", 247 "msgctl", 248 "msgget", 249 "msgrcv", 250 "msgsnd", 251 "msync", 252 "multiplexer", 253 "munlock", 254 "munlockall", 255 "munmap", 256 "name_to_handle_at", 257 "nanosleep", 258 "newfstatat", 259 "nfsservctl", 260 "nice", 261 "oldfstat", 262 "oldlstat", 263 "oldolduname", 264 "oldstat", 265 "olduname", 266 "open", 267 "open_by_handle_at", 268 "open_tree", 269 "openat", 270 "openat2", 271 "pause", 272 "pciconfig_iobase", 273 "pciconfig_read", 274 "pciconfig_write", 275 "perf_event_open", 276 "personality", 277 "pidfd_getfd", 278 "pidfd_open", 279 "pidfd_send_signal", 280 "pipe", 281 "pipe2", 282 "pivot_root", 283 "pkey_alloc", 284 "pkey_free", 285 "pkey_mprotect", 286 "poll", 287 "ppoll", 288 "ppoll_time64", 289 "prctl", 290 "pread64", 291 "preadv", 292 "preadv2", 293 "prlimit64", 294 "process_madvise", 295 "process_vm_readv", 296 "process_vm_writev", 297 "prof", 298 "profil", 299 "pselect6", 300 "pselect6_time64", 301 "ptrace", 302 "putpmsg", 303 "pwrite64", 304 "pwritev", 305 "pwritev2", 306 "query_module", 307 "quotactl", 308 "quotactl_fd", 309 "read", 310 "readahead", 311 "readdir", 312 "readlink", 313 "readlinkat", 314 "readv", 315 "reboot", 316 "recv", 317 "recvfrom", 318 "recvmmsg", 319 "recvmmsg_time64", 320 "recvmsg", 321 "remap_file_pages", 322 "removexattr", 323 "rename", 324 "renameat", 325 "renameat2", 326 "request_key", 327 "restart_syscall", 328 "riscv_flush_icache", 329 "rmdir", 330 "rseq", 331 "rt_sigaction", 332 "rt_sigpending", 333 "rt_sigprocmask", 334 "rt_sigqueueinfo", 335 "rt_sigreturn", 336 "rt_sigsuspend", 337 "rt_sigtimedwait", 338 "rt_sigtimedwait_time64", 339 "rt_tgsigqueueinfo", 340 "rtas", 341 "s390_guarded_storage", 342 "s390_pci_mmio_read", 343 "s390_pci_mmio_write", 344 "s390_runtime_instr", 345 "s390_sthyi", 346 "sched_get_priority_max", 347 "sched_get_priority_min", 348 "sched_getaffinity", 349 "sched_getattr", 350 "sched_getparam", 351 "sched_getscheduler", 352 "sched_rr_get_interval", 353 "sched_rr_get_interval_time64", 354 "sched_setaffinity", 355 "sched_setattr", 356 "sched_setparam", 357 "sched_setscheduler", 358 "sched_yield", 359 "seccomp", 360 "security", 361 "select", 362 "semctl", 363 "semget", 364 "semop", 365 "semtimedop", 366 "semtimedop_time64", 367 "send", 368 "sendfile", 369 "sendfile64", 370 "sendmmsg", 371 "sendmsg", 372 "sendto", 373 "set_mempolicy", 374 "set_robust_list", 375 "set_thread_area", 376 "set_tid_address", 377 "set_tls", 378 "setdomainname", 379 "setfsgid", 380 "setfsgid32", 381 "setfsuid", 382 "setfsuid32", 383 "setgid", 384 "setgid32", 385 "setgroups", 386 "setgroups32", 387 "sethostname", 388 "setitimer", 389 "setns", 390 "setpgid", 391 "setpriority", 392 "setregid", 393 "setregid32", 394 "setresgid", 395 "setresgid32", 396 "setresuid", 397 "setresuid32", 398 "setreuid", 399 "setreuid32", 400 "setrlimit", 401 "setsid", 402 "setsockopt", 403 "settimeofday", 404 "setuid", 405 "setuid32", 406 "setxattr", 407 "sgetmask", 408 "shmat", 409 "shmctl", 410 "shmdt", 411 "shmget", 412 "shutdown", 413 "sigaction", 414 "sigaltstack", 415 "signal", 416 "signalfd", 417 "signalfd4", 418 "sigpending", 419 "sigprocmask", 420 "sigreturn", 421 "sigsuspend", 422 "socket", 423 "socketcall", 424 "socketpair", 425 "splice", 426 "spu_create", 427 "spu_run", 428 "ssetmask", 429 "stat", 430 "stat64", 431 "statfs", 432 "statfs64", 433 "statx", 434 "stime", 435 "stty", 436 "subpage_prot", 437 "swapcontext", 438 "swapoff", 439 "swapon", 440 "switch_endian", 441 "symlink", 442 "symlinkat", 443 "sync", 444 "sync_file_range", 445 "sync_file_range2", 446 "syncfs", 447 "sys_debug_setcontext", 448 "syscall", 449 "sysfs", 450 "sysinfo", 451 "syslog", 452 "sysmips", 453 "tee", 454 "tgkill", 455 "time", 456 "timer_create", 457 "timer_delete", 458 "timer_getoverrun", 459 "timer_gettime", 460 "timer_gettime64", 461 "timer_settime", 462 "timer_settime64", 463 "timerfd", 464 "timerfd_create", 465 "timerfd_gettime", 466 "timerfd_gettime64", 467 "timerfd_settime", 468 "timerfd_settime64", 469 "times", 470 "tkill", 471 "truncate", 472 "truncate64", 473 "tuxcall", 474 "ugetrlimit", 475 "ulimit", 476 "umask", 477 "umount", 478 "umount2", 479 "uname", 480 "unlink", 481 "unlinkat", 482 "unshare", 483 "uselib", 484 "userfaultfd", 485 "usr26", 486 "usr32", 487 "ustat", 488 "utime", 489 "utimensat", 490 "utimensat_time64", 491 "utimes", 492 "vfork", 493 "vhangup", 494 "vm86", 495 "vm86old", 496 "vmsplice", 497 "vserver", 498 "wait4", 499 "waitid", 500 "waitpid", 501 "write", 502 "writev", 503 }