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