aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-extra.yml26
-rw-r--r--.github/workflows/build.yml6
-rw-r--r--.github/workflows/codeql-analysis.yml6
-rw-r--r--.github/workflows/profile-checks.yml2
-rw-r--r--.gitignore1
-rw-r--r--etc/profile-m-z/onionshare-gui.profile2
-rw-r--r--etc/profile-m-z/remmina.profile3
-rw-r--r--etc/profile-m-z/torbrowser-launcher.profile1
-rw-r--r--etc/profile-m-z/torbrowser.profile1
-rw-r--r--etc/profile-m-z/viewnior.profile1
-rw-r--r--etc/templates/syscalls.txt14
-rw-r--r--m4/ax_check_compile_flag.m431
-rw-r--r--src/firejail/firejail.h1
-rw-r--r--src/firejail/fs_bin.c6
-rw-r--r--src/firejail/fs_var.c2
-rw-r--r--src/firejail/join.c8
-rw-r--r--src/firejail/sandbox.c10
-rw-r--r--src/include/syscall_armeabi.h692
-rw-r--r--src/include/syscall_i386.h775
-rw-r--r--src/include/syscall_x86_64.h632
-rw-r--r--src/lib/ldd_utils.c2
-rw-r--r--src/lib/syscall.c52
-rw-r--r--test/Makefile2
-rwxr-xr-xtest/environment/dns.exp32
-rwxr-xr-xtest/sysutils/less.exp1
-rwxr-xr-xtest/utils/man.exp1
-rwxr-xr-xtest/utils/trace.exp4
27 files changed, 1202 insertions, 1112 deletions
diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml
index da54c1094..9296062c1 100644
--- a/.github/workflows/build-extra.yml
+++ b/.github/workflows/build-extra.yml
@@ -34,11 +34,13 @@ on:
34 34
35jobs: 35jobs:
36 build-clang: 36 build-clang:
37 runs-on: ubuntu-20.04 37 runs-on: ubuntu-22.04
38 steps: 38 steps:
39 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b 39 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
40 - name: install dependencies
41 run: sudo apt-get install libapparmor-dev libselinux1-dev
40 - name: configure 42 - name: configure
41 run: CC=clang-11 ./configure --enable-fatal-warnings 43 run: CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor --enable-selinux
42 - name: make 44 - name: make
43 run: make 45 run: make
44 - name: make install 46 - name: make install
@@ -46,16 +48,26 @@ jobs:
46 - name: print version 48 - name: print version
47 run: command -V firejail && firejail --version 49 run: command -V firejail && firejail --version
48 scan-build: 50 scan-build:
49 runs-on: ubuntu-20.04 51 runs-on: ubuntu-22.04
50 steps: 52 steps:
51 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b 53 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
52 - name: install clang-tools-11 54 - name: install clang-tools-14 and dependencies
53 run: sudo apt-get install clang-tools-11 55 run: sudo apt-get install clang-tools-14 libapparmor-dev libselinux1-dev
54 - name: configure 56 - name: configure
55 run: CC=clang-11 ./configure --enable-fatal-warnings 57 run: CC=clang-14 ./configure --enable-fatal-warnings --enable-apparmor --enable-selinux
56 - name: scan-build 58 - name: scan-build
57 run: NO_EXTRA_CFLAGS="yes" scan-build-11 --status-bugs make 59 run: NO_EXTRA_CFLAGS="yes" scan-build-14 --status-bugs make
58 cppcheck: 60 cppcheck:
61 runs-on: ubuntu-22.04
62 steps:
63 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
64 - name: install cppcheck
65 run: sudo apt-get install cppcheck
66 - name: cppcheck
67 run: cppcheck -q --force --error-exitcode=1 --enable=warning,performance -i src/firejail/checkcfg.c -i src/firejail/main.c .
68 # new cppcheck version currently chokes on checkcfg.c and main.c, therefore scan all files also
69 # with older cppcheck version from ubuntu 20.04.
70 cppcheck_old:
59 runs-on: ubuntu-20.04 71 runs-on: ubuntu-20.04
60 steps: 72 steps:
61 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b 73 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7b23ea0b3..3203e0677 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -26,15 +26,15 @@ on:
26 26
27jobs: 27jobs:
28 build_and_test: 28 build_and_test:
29 runs-on: ubuntu-20.04 29 runs-on: ubuntu-22.04
30 steps: 30 steps:
31 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b 31 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
32 - name: update package information 32 - name: update package information
33 run: sudo apt-get update 33 run: sudo apt-get update
34 - name: install dependencies 34 - name: install dependencies
35 run: sudo apt-get install gcc-11 libapparmor-dev libselinux1-dev expect xzdec 35 run: sudo apt-get install gcc-12 libapparmor-dev libselinux1-dev expect xzdec
36 - name: configure 36 - name: configure
37 run: CC=gcc-11 ./configure --enable-fatal-warnings --enable-analyzer --enable-apparmor --enable-selinux --prefix=/usr 37 run: CC=gcc-12 ./configure --enable-fatal-warnings --enable-analyzer --enable-apparmor --enable-selinux --prefix=/usr
38 - name: make 38 - name: make
39 run: make 39 run: make
40 - name: make install 40 - name: make install
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index fb5e7f9b3..4a09ad9d8 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -53,7 +53,7 @@ jobs:
53 53
54 # Initializes the CodeQL tools for scanning. 54 # Initializes the CodeQL tools for scanning.
55 - name: Initialize CodeQL 55 - name: Initialize CodeQL
56 uses: github/codeql-action/init@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 56 uses: github/codeql-action/init@3e7e3b32d0fb8283594bb0a76cc60a00918b0969
57 with: 57 with:
58 languages: ${{ matrix.language }} 58 languages: ${{ matrix.language }}
59 # If you wish to specify custom queries, you can do so here or in a config file. 59 # If you wish to specify custom queries, you can do so here or in a config file.
@@ -64,7 +64,7 @@ jobs:
64 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 64 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
65 # If this step fails, then you should remove it and run the build manually (see below) 65 # If this step fails, then you should remove it and run the build manually (see below)
66 - name: Autobuild 66 - name: Autobuild
67 uses: github/codeql-action/autobuild@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 67 uses: github/codeql-action/autobuild@3e7e3b32d0fb8283594bb0a76cc60a00918b0969
68 68
69 # ℹī¸ Command-line programs to run using the OS shell. 69 # ℹī¸ Command-line programs to run using the OS shell.
70 # 📚 https://git.io/JvXDl 70 # 📚 https://git.io/JvXDl
@@ -78,4 +78,4 @@ jobs:
78 # make release 78 # make release
79 79
80 - name: Perform CodeQL Analysis 80 - name: Perform CodeQL Analysis
81 uses: github/codeql-action/analyze@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 81 uses: github/codeql-action/analyze@3e7e3b32d0fb8283594bb0a76cc60a00918b0969
diff --git a/.github/workflows/profile-checks.yml b/.github/workflows/profile-checks.yml
index 9138e8a57..d235aeb64 100644
--- a/.github/workflows/profile-checks.yml
+++ b/.github/workflows/profile-checks.yml
@@ -18,7 +18,7 @@ on:
18 18
19jobs: 19jobs:
20 profile-checks: 20 profile-checks:
21 runs-on: ubuntu-20.04 21 runs-on: ubuntu-latest
22 steps: 22 steps:
23 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b 23 - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
24 - name: sort.py 24 - name: sort.py
diff --git a/.gitignore b/.gitignore
index 66daccf5d..b5d29dc19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@
10.directory 10.directory
11*.man 11*.man
12.vscode 12.vscode
13/firejail-*/
13autom4te.cache/ 14autom4te.cache/
14config.log 15config.log
15config.mk 16config.mk
diff --git a/etc/profile-m-z/onionshare-gui.profile b/etc/profile-m-z/onionshare-gui.profile
index fbf4c3ef0..db923056a 100644
--- a/etc/profile-m-z/onionshare-gui.profile
+++ b/etc/profile-m-z/onionshare-gui.profile
@@ -11,6 +11,8 @@ noblacklist ${HOME}/.config/onionshare
11# Allow python (blacklisted by disable-interpreters.inc) 11# Allow python (blacklisted by disable-interpreters.inc)
12include allow-python3.inc 12include allow-python3.inc
13 13
14blacklist /sys/class/net
15
14include disable-common.inc 16include disable-common.inc
15include disable-devel.inc 17include disable-devel.inc
16include disable-exec.inc 18include disable-exec.inc
diff --git a/etc/profile-m-z/remmina.profile b/etc/profile-m-z/remmina.profile
index 6b98c5976..79630f09c 100644
--- a/etc/profile-m-z/remmina.profile
+++ b/etc/profile-m-z/remmina.profile
@@ -13,6 +13,9 @@ noblacklist ${HOME}/.local/share/remmina
13# Allow ssh (blacklisted by disable-common.inc) 13# Allow ssh (blacklisted by disable-common.inc)
14include allow-ssh.inc 14include allow-ssh.inc
15 15
16# Allow python (blacklisted by disable-interpreters.inc)
17include allow-python3.inc
18
16include disable-common.inc 19include disable-common.inc
17include disable-devel.inc 20include disable-devel.inc
18include disable-exec.inc 21include disable-exec.inc
diff --git a/etc/profile-m-z/torbrowser-launcher.profile b/etc/profile-m-z/torbrowser-launcher.profile
index 700a10be8..9d66c5fa4 100644
--- a/etc/profile-m-z/torbrowser-launcher.profile
+++ b/etc/profile-m-z/torbrowser-launcher.profile
@@ -16,6 +16,7 @@ include allow-python2.inc
16include allow-python3.inc 16include allow-python3.inc
17 17
18blacklist /srv 18blacklist /srv
19blacklist /sys/class/net
19 20
20include disable-common.inc 21include disable-common.inc
21include disable-devel.inc 22include disable-devel.inc
diff --git a/etc/profile-m-z/torbrowser.profile b/etc/profile-m-z/torbrowser.profile
index fc579b973..15ca5b550 100644
--- a/etc/profile-m-z/torbrowser.profile
+++ b/etc/profile-m-z/torbrowser.profile
@@ -13,6 +13,7 @@ noblacklist ${HOME}/.cache/mozilla
13noblacklist ${HOME}/.mozilla 13noblacklist ${HOME}/.mozilla
14 14
15blacklist /usr/libexec 15blacklist /usr/libexec
16blacklist /sys/class/net
16 17
17mkdir ${HOME}/.cache/mozilla/torbrowser 18mkdir ${HOME}/.cache/mozilla/torbrowser
18mkdir ${HOME}/.mozilla 19mkdir ${HOME}/.mozilla
diff --git a/etc/profile-m-z/viewnior.profile b/etc/profile-m-z/viewnior.profile
index 47e618ae2..6d7fa94e7 100644
--- a/etc/profile-m-z/viewnior.profile
+++ b/etc/profile-m-z/viewnior.profile
@@ -19,6 +19,7 @@ include disable-interpreters.inc
19include disable-programs.inc 19include disable-programs.inc
20include disable-shell.inc 20include disable-shell.inc
21 21
22whitelist /usr/share/viewnior
22include whitelist-usr-share-common.inc 23include whitelist-usr-share-common.inc
23include whitelist-var-common.inc 24include whitelist-var-common.inc
24 25
diff --git a/etc/templates/syscalls.txt b/etc/templates/syscalls.txt
index 827b075e5..c33e6d602 100644
--- a/etc/templates/syscalls.txt
+++ b/etc/templates/syscalls.txt
@@ -27,26 +27,26 @@ Always have a look at 'man 1 firejail'.
27Definition of groups 27Definition of groups
28-------------------- 28--------------------
29 29
30@aio=io_cancel,io_destroy,io_getevents,io_pgetevents,io_setup,io_submit 30@aio=io_cancel,io_destroy,io_getevents,io_pgetevents,io_setup,io_submit,io_uring_enter,io_uring_register,io_uring_setup
31@basic-io=_llseek,close,dup,dup2,dup3,lseek,pread64,preadv,preadv2,pwrite64,pwritev,pwritev2,read,readv,write,writev 31@basic-io=_llseek,close,close_range,dup,dup2,dup3,lseek,pread64,preadv,preadv2,pwrite64,pwritev,pwritev2,read,readv,write,writev
32@chown=chown,chown32,fchown,fchown32,fchownat,lchown,lchown32 32@chown=chown,chown32,fchown,fchown32,fchownat,lchown,lchown32
33@clock=adjtimex,clock_adjtime,clock_settime,settimeofday,stime 33@clock=adjtimex,clock_adjtime,clock_settime,settimeofday,stime
34@cpu-emulation=modify_ldt,subpage_prot,switch_endian,vm86,vm86old 34@cpu-emulation=modify_ldt,subpage_prot,switch_endian,vm86,vm86old
35@debug=lookup_dcookie,perf_event_open,process_vm_writev,rtas,s390_runtime_instr,sys_debug_setcontext 35@debug=lookup_dcookie,perf_event_open,pidfd_getfd,process_vm_writev,rtas,s390_runtime_instr,sys_debug_setcontext
36@default=@clock,@cpu-emulation,@debug,@module,@mount,@obsolete,@raw-io,@reboot,@swap,open_by_handle_at,name_to_handle_at,ioprio_set,ni_syscall,syslog,fanotify_init,add_key,request_key,mbind,migrate_pages,move_pages,keyctl,io_setup,io_destroy,io_getevents,io_submit,io_cancel,remap_file_pages,set_mempolicyvmsplice,userfaultfd,acct,bpf,nfsservctl,setdomainname,sethostname,vhangup 36@default=@clock,@cpu-emulation,@debug,@module,@mount,@obsolete,@raw-io,@reboot,@swap,open_by_handle_at,name_to_handle_at,ioprio_set,ni_syscall,syslog,fanotify_init,add_key,request_key,mbind,migrate_pages,move_pages,keyctl,io_setup,io_destroy,io_getevents,io_submit,io_cancel,remap_file_pages,set_mempolicyvmsplice,userfaultfd,acct,bpf,nfsservctl,setdomainname,sethostname,vhangup
37@default-nodebuggers=@default,ptrace,personality,process_vm_readv 37@default-nodebuggers=@default,ptrace,personality,process_vm_readv
38@default-keep=execveat,execve,prctl 38@default-keep=execveat,execve,prctl
39@file-system=access,chdir,chmod,close,creat,faccessat,faccessat2,fallocate,fchdir,fchmod,fchmodat,fcntl,fcntl64,fgetxattr,flistxattr,fremovexattr,fsetxattr,fstat,fstat64,fstatat64,fstatfs,fstatfs64,ftruncate,ftruncate64,futimesat,getcwd,getdents,getdents64,getxattr,inotify_add_watch,inotify_init,inotify_init1,inotify_rm_watch,lgetxattr,link,linkat,listxattr,llistxattr,lremovexattr,lsetxattr,lstat,lstat64,mkdir,mkdirat,mknod,mknodat,mmap,mmap2,munmap,newfstatat,oldfstat,oldlstat,oldstat,open,openat,readlink,readlinkat,removexattr,rename,renameat,renameat2,rmdir,setxattr,stat,stat64,statfs,statfs64,statx,symlink,symlinkat,truncate,truncate64,unlink,unlinkat,utime,utimensat,utimes 39@file-system=access,chdir,chmod,close,close_range,creat,faccessat,faccessat2,fallocate,fchdir,fchmod,fchmodat,fcntl,fcntl64,fgetxattr,flistxattr,fremovexattr,fsetxattr,fstat,fstat64,fstatat64,fstatfs,fstatfs64,ftruncate,ftruncate64,futimesat,getcwd,getdents,getdents64,getxattr,inotify_add_watch,inotify_init,inotify_init1,inotify_rm_watch,lgetxattr,link,linkat,listxattr,llistxattr,lremovexattr,lsetxattr,lstat,lstat64,mkdir,mkdirat,mknod,mknodat,mmap,mmap2,munmap,newfstatat,oldfstat,oldlstat,oldstat,open,openat,openat2,readlink,readlinkat,removexattr,rename,renameat,renameat2,rmdir,setxattr,stat,stat64,statfs,statfs64,statx,symlink,symlinkat,truncate,truncate64,unlink,unlinkat,utime,utimensat,utimes
40@io-event=_newselect,epoll_create,epoll_create1,epoll_ctl,epoll_ctl_old,epoll_pwait,epoll_wait,epoll_wait_old,eventfd,eventfd2,poll,ppoll,pselect6,select 40@io-event=_newselect,epoll_create,epoll_create1,epoll_ctl,epoll_ctl_old,epoll_pwait,epoll_wait,epoll_wait_old,eventfd,eventfd2,poll,ppoll,pselect6,select
41@ipc=ipc,memfd_create,mq_getsetattr,mq_notify,mq_open,mq_timedreceive,mq_timedsend,mq_unlink,msgctl,msgget,msgrcv,msgsnd,pipe,pipe2,process_vm_readv,process_vm_writev,semctl,semget,semop,semtimedop,shmat,shmctl,shmdt,shmget 41@ipc=ipc,memfd_create,mq_getsetattr,mq_notify,mq_open,mq_timedreceive,mq_timedsend,mq_unlink,msgctl,msgget,msgrcv,msgsnd,pipe,pipe2,process_madvise,process_vm_readv,process_vm_writev,semctl,semget,semop,semtimedop,shmat,shmctl,shmdt,shmget
42@keyring=add_key,keyctl,request_key 42@keyring=add_key,keyctl,request_key
43@memlock=mlock,mlock2,mlockall,munlock,munlockall 43@memlock=mlock,mlock2,mlockall,munlock,munlockall
44@module=delete_module,finit_module,init_module 44@module=delete_module,finit_module,init_module
45@mount=chroot,mount,pivot_root,umount,umount2 45@mount=chroot,fsconfig,fsmount,fsopen,fspick,mount,move_mount,open_tree,pivot_root,umount,umount2
46@network-io=accept,accept4,bind,connect,getpeername,getsockname,getsockopt,listen,recv,recvfrom,recvmmsg,recvmsg,send,sendmmsg,sendmsg,sendto,setsockopt,shutdown,socket,socketcall,socketpair 46@network-io=accept,accept4,bind,connect,getpeername,getsockname,getsockopt,listen,recv,recvfrom,recvmmsg,recvmsg,send,sendmmsg,sendmsg,sendto,setsockopt,shutdown,socket,socketcall,socketpair
47@obsolete=_sysctl,afs_syscall,bdflush,break,create_module,ftime,get_kernel_syms,getpmsg,gtty,idle,lock,mpx,prof,profil,putpmsg,query_module,security,sgetmask,ssetmask,stty,sysfs,tuxcall,ulimit,uselib,ustat,vserver 47@obsolete=_sysctl,afs_syscall,bdflush,break,create_module,ftime,get_kernel_syms,getpmsg,gtty,idle,lock,mpx,prof,profil,putpmsg,query_module,security,sgetmask,ssetmask,stty,sysfs,tuxcall,ulimit,uselib,ustat,vserver
48@privileged=@chown,@clock,@module,@raw-io,@reboot,@swap,_sysctl,acct,bpf,capset,chroot,fanotify_init,mount,nfsservctl,open_by_handle_at,pivot_root,quotactl,setdomainname,setfsuid,setfsuid32,setgroups,setgroups32,sethostname,setresuid,setresuid32,setreuid,setreuid32,setuid,setuid32,umount2,vhangup 48@privileged=@chown,@clock,@module,@raw-io,@reboot,@swap,_sysctl,acct,bpf,capset,chroot,fanotify_init,mount,nfsservctl,open_by_handle_at,pivot_root,quotactl,setdomainname,setfsuid,setfsuid32,setgroups,setgroups32,sethostname,setresuid,setresuid32,setreuid,setreuid32,setuid,setuid32,umount2,vhangup
49@process=arch_prctl,capget,clone,execveat,fork,getrusage,kill,pidfd_send_signal,prctl,rt_sigqueueinfo,rt_tgsigqueueinfo,setns,swapcontext,tgkill,times,tkill,unshare,vfork,wait4,waitid,waitpid 49@process=arch_prctl,capget,clone,clone3,execveat,fork,getrusage,kill,pidfd_open,pidfd_send_signal,prctl,rt_sigqueueinfo,rt_tgsigqueueinfo,setns,swapcontext,tgkill,times,tkill,unshare,vfork,wait4,waitid,waitpid
50@raw-io=ioperm,iopl,pciconfig_iobase,pciconfig_read,pciconfig_write,s390_mmio_read,s390_mmio_write 50@raw-io=ioperm,iopl,pciconfig_iobase,pciconfig_read,pciconfig_write,s390_mmio_read,s390_mmio_write
51@reboot=kexec_load,kexec_file_load,reboot 51@reboot=kexec_load,kexec_file_load,reboot
52@resources=ioprio_set,mbind,migrate_pages,move_pages,nice,sched_setaffinity,sched_setattr,sched_setparam,sched_setscheduler,set_mempolicy 52@resources=ioprio_set,mbind,migrate_pages,move_pages,nice,sched_setaffinity,sched_setattr,sched_setparam,sched_setscheduler,set_mempolicy
diff --git a/m4/ax_check_compile_flag.m4 b/m4/ax_check_compile_flag.m4
index dcabb92a1..bd753b34d 100644
--- a/m4/ax_check_compile_flag.m4
+++ b/m4/ax_check_compile_flag.m4
@@ -29,33 +29,12 @@
29# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de> 29# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
30# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com> 30# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
31# 31#
32# This program is free software: you can redistribute it and/or modify it 32# Copying and distribution of this file, with or without modification, are
33# under the terms of the GNU General Public License as published by the 33# permitted in any medium without royalty provided the copyright notice
34# Free Software Foundation, either version 3 of the License, or (at your 34# and this notice are preserved. This file is offered as-is, without any
35# option) any later version. 35# warranty.
36#
37# This program is distributed in the hope that it will be useful, but
38# WITHOUT ANY WARRANTY; without even the implied warranty of
39# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
40# Public License for more details.
41#
42# You should have received a copy of the GNU General Public License along
43# with this program. If not, see <https://www.gnu.org/licenses/>.
44#
45# As a special exception, the respective Autoconf Macro's copyright owner
46# gives unlimited permission to copy, distribute and modify the configure
47# scripts that are the output of Autoconf when processing the Macro. You
48# need not follow the terms of the GNU General Public License when using
49# or distributing such scripts, even though portions of the text of the
50# Macro appear in them. The GNU General Public License (GPL) does govern
51# all other use of the material that constitutes the Autoconf Macro.
52#
53# This special exception to the GPL applies to versions of the Autoconf
54# Macro released by the Autoconf Archive. When you make and distribute a
55# modified version of the Autoconf Macro, you may extend this special
56# exception to the GPL to apply to your modified version as well.
57 36
58#serial 5 37#serial 6
59 38
60AC_DEFUN([AX_CHECK_COMPILE_FLAG], 39AC_DEFUN([AX_CHECK_COMPILE_FLAG],
61[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF 40[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF
diff --git a/src/firejail/firejail.h b/src/firejail/firejail.h
index f8a23678a..96e3f735e 100644
--- a/src/firejail/firejail.h
+++ b/src/firejail/firejail.h
@@ -385,7 +385,6 @@ char *guess_shell(void);
385#define SANDBOX_DONE '1' 385#define SANDBOX_DONE '1'
386int sandbox(void* sandbox_arg); 386int sandbox(void* sandbox_arg);
387void start_application(int no_sandbox, int fd, char *set_sandbox_status) __attribute__((noreturn)); 387void start_application(int no_sandbox, int fd, char *set_sandbox_status) __attribute__((noreturn));
388void set_apparmor(void);
389 388
390// network_main.c 389// network_main.c
391void net_configure_sandbox_ip(Bridge *br); 390void net_configure_sandbox_ip(Bridge *br);
diff --git a/src/firejail/fs_bin.c b/src/firejail/fs_bin.c
index 2b0b3003e..6228e9740 100644
--- a/src/firejail/fs_bin.c
+++ b/src/firejail/fs_bin.c
@@ -27,7 +27,7 @@
27 27
28static int prog_cnt = 0; 28static int prog_cnt = 0;
29 29
30static char *paths[] = { 30static const char * const paths[] = {
31 "/usr/local/bin", 31 "/usr/local/bin",
32 "/usr/bin", 32 "/usr/bin",
33 "/bin", 33 "/bin",
@@ -40,7 +40,7 @@ static char *paths[] = {
40}; 40};
41 41
42// return 1 if found, 0 if not found 42// return 1 if found, 0 if not found
43static char *check_dir_or_file(const char *name) { 43static const char *check_dir_or_file(const char *name) {
44 EUID_ASSERT(); 44 EUID_ASSERT();
45 assert(name); 45 assert(name);
46 struct stat s; 46 struct stat s;
@@ -160,7 +160,7 @@ static void duplicate(char *fname) {
160 else { 160 else {
161 // Find the standard directory (by looping through paths[]) 161 // Find the standard directory (by looping through paths[])
162 // where the filename fname is located 162 // where the filename fname is located
163 char *path = check_dir_or_file(fname); 163 const char *path = check_dir_or_file(fname);
164 if (!path) 164 if (!path)
165 return; 165 return;
166 if (asprintf(&full_path, "%s/%s", path, fname) == -1) 166 if (asprintf(&full_path, "%s/%s", path, fname) == -1)
diff --git a/src/firejail/fs_var.c b/src/firejail/fs_var.c
index 9523875d7..ad5ee6759 100644
--- a/src/firejail/fs_var.c
+++ b/src/firejail/fs_var.c
@@ -300,7 +300,7 @@ void fs_var_utmp(void) {
300 300
301 // read current utmp 301 // read current utmp
302 struct utmp *u; 302 struct utmp *u;
303 struct utmp u_boot; 303 struct utmp u_boot = {0};
304 setutent(); 304 setutent();
305 while ((u = getutent()) != NULL) { 305 while ((u = getutent()) != NULL) {
306 if (u->ut_type == BOOT_TIME) { 306 if (u->ut_type == BOOT_TIME) {
diff --git a/src/firejail/join.c b/src/firejail/join.c
index ec9c922ef..4e636ca27 100644
--- a/src/firejail/join.c
+++ b/src/firejail/join.c
@@ -33,10 +33,6 @@
33#define PR_SET_NO_NEW_PRIVS 38 33#define PR_SET_NO_NEW_PRIVS 38
34#endif 34#endif
35 35
36#ifdef HAVE_APPARMOR
37#include <sys/apparmor.h>
38#endif
39
40static int apply_caps = 0; 36static int apply_caps = 0;
41static uint64_t caps = 0; 37static uint64_t caps = 0;
42static unsigned display = 0; 38static unsigned display = 0;
@@ -513,10 +509,6 @@ void join(pid_t pid, int argc, char **argv, int index) {
513 // kill the child in case the parent died 509 // kill the child in case the parent died
514 prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); 510 prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
515 511
516#ifdef HAVE_APPARMOR
517 set_apparmor();
518#endif
519
520 extract_command(argc, argv, index); 512 extract_command(argc, argv, index);
521 if (cfg.command_line == NULL) 513 if (cfg.command_line == NULL)
522 cfg.window_title = cfg.usershell; 514 cfg.window_title = cfg.usershell;
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index e8c4a445a..e72b03e15 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -128,7 +128,7 @@ static void set_caps(void) {
128} 128}
129 129
130#ifdef HAVE_APPARMOR 130#ifdef HAVE_APPARMOR
131void set_apparmor(void) { 131static void set_apparmor(void) {
132 EUID_ASSERT(); 132 EUID_ASSERT();
133 if (checkcfg(CFG_APPARMOR) && arg_apparmor) { 133 if (checkcfg(CFG_APPARMOR) && arg_apparmor) {
134 if (aa_change_onexec("firejail-default")) { 134 if (aa_change_onexec("firejail-default")) {
@@ -486,6 +486,9 @@ static void close_file_descriptors(void) {
486 486
487void start_application(int no_sandbox, int fd, char *set_sandbox_status) { 487void start_application(int no_sandbox, int fd, char *set_sandbox_status) {
488 if (no_sandbox == 0) { 488 if (no_sandbox == 0) {
489#ifdef HAVE_APPARMOR
490 set_apparmor();
491#endif
489 close_file_descriptors(); 492 close_file_descriptors();
490 493
491 // set nice and rlimits 494 // set nice and rlimits
@@ -1299,10 +1302,7 @@ int sandbox(void* sandbox_arg) {
1299 errExit("fork"); 1302 errExit("fork");
1300 1303
1301 if (app_pid == 0) { 1304 if (app_pid == 0) {
1302#ifdef HAVE_APPARMOR 1305 start_application(0, -1, set_sandbox_status); // this function does not return
1303 set_apparmor();
1304#endif
1305 start_application(0, -1, set_sandbox_status);
1306 } 1306 }
1307 1307
1308 munmap(set_sandbox_status, 1); 1308 munmap(set_sandbox_status, 1);
diff --git a/src/include/syscall_armeabi.h b/src/include/syscall_armeabi.h
index 3b574f875..f19c2ac4b 100644
--- a/src/include/syscall_armeabi.h
+++ b/src/include/syscall_armeabi.h
@@ -1,355 +1,401 @@
1{ "accept", 285 }, 1{ "exit", 1 },
2{ "accept4", 366 }, 2{ "fork", 2 },
3{ "access", 33 }, 3{ "read", 3 },
4{ "acct", 51 }, 4{ "write", 4 },
5{ "add_key", 309 }, 5{ "open", 5 },
6{ "adjtimex", 124 }, 6{ "close", 6 },
7{ "alarm", 27 }, 7{ "creat", 8 },
8{ "arm_fadvise64_64", 270 }, 8{ "link", 9 },
9{ "arm_sync_file_range", 341 }, 9{ "unlink", 10 },
10{ "bdflush", 134 }, 10{ "execve", 11 },
11{ "bind", 282 },
12{ "bpf", 386 },
13{ "brk", 45 },
14{ "capget", 184 },
15{ "capset", 185 },
16{ "chdir", 12 }, 11{ "chdir", 12 },
12{ "mknod", 14 },
17{ "chmod", 15 }, 13{ "chmod", 15 },
18{ "chown", 182 }, 14{ "lchown", 16 },
19{ "chown32", 212 }, 15{ "lseek", 19 },
16{ "getpid", 20 },
17{ "mount", 21 },
18{ "setuid", 23 },
19{ "getuid", 24 },
20{ "ptrace", 26 },
21{ "pause", 29 },
22{ "access", 33 },
23{ "nice", 34 },
24{ "sync", 36 },
25{ "kill", 37 },
26{ "rename", 38 },
27{ "mkdir", 39 },
28{ "rmdir", 40 },
29{ "dup", 41 },
30{ "pipe", 42 },
31{ "times", 43 },
32{ "brk", 45 },
33{ "setgid", 46 },
34{ "getgid", 47 },
35{ "geteuid", 49 },
36{ "getegid", 50 },
37{ "acct", 51 },
38{ "umount2", 52 },
39{ "ioctl", 54 },
40{ "fcntl", 55 },
41{ "setpgid", 57 },
42{ "umask", 60 },
20{ "chroot", 61 }, 43{ "chroot", 61 },
21{ "clock_adjtime", 372 }, 44{ "ustat", 62 },
22{ "clock_getres", 264 },
23{ "clock_gettime", 263 },
24{ "clock_nanosleep", 265 },
25{ "clock_settime", 262 },
26{ "clone", 120 },
27{ "close", 6 },
28{ "connect", 283 },
29{ "creat", 8 },
30{ "delete_module", 129 },
31{ "dup2", 63 }, 45{ "dup2", 63 },
32{ "dup3", 358 }, 46{ "getppid", 64 },
33{ "dup", 41 }, 47{ "getpgrp", 65 },
34{ "epoll_create1", 357 }, 48{ "setsid", 66 },
35{ "epoll_create", 250 }, 49{ "sigaction", 67 },
36{ "epoll_ctl", 251 }, 50{ "setreuid", 70 },
37{ "epoll_pwait", 346 }, 51{ "setregid", 71 },
38{ "epoll_wait", 252 }, 52{ "sigsuspend", 72 },
39{ "eventfd2", 356 }, 53{ "sigpending", 73 },
40{ "eventfd", 351 }, 54{ "sethostname", 74 },
41{ "execve", 11 }, 55{ "setrlimit", 75 },
42{ "exit", 1 }, 56{ "getrusage", 77 },
43{ "exit_group", 248 }, 57{ "gettimeofday", 78 },
44{ "faccessat", 334 }, 58{ "settimeofday", 79 },
45{ "faccessat2", 439 }, 59{ "getgroups", 80 },
46{ "fallocate", 352 }, 60{ "setgroups", 81 },
47{ "fanotify_init", 367 }, 61{ "symlink", 83 },
48{ "fanotify_mark", 368 }, 62{ "readlink", 85 },
49{ "fchdir", 133 }, 63{ "uselib", 86 },
64{ "swapon", 87 },
65{ "reboot", 88 },
66{ "munmap", 91 },
67{ "truncate", 92 },
68{ "ftruncate", 93 },
50{ "fchmod", 94 }, 69{ "fchmod", 94 },
51{ "fchmodat", 333 },
52{ "fchown32", 207 },
53{ "fchown", 95 }, 70{ "fchown", 95 },
54{ "fchownat", 325 }, 71{ "getpriority", 96 },
55{ "fcntl", 55 }, 72{ "setpriority", 97 },
56{ "fcntl64", 221 }, 73{ "statfs", 99 },
57{ "fdatasync", 148 },
58{ "fgetxattr", 231 },
59{ "finit_module", 379 },
60{ "flistxattr", 234 },
61{ "flock", 143 },
62{ "fork", 2 },
63{ "fremovexattr", 237 },
64{ "fsetxattr", 228 },
65{ "fstat", 108 },
66{ "fstat64", 197 },
67{ "fstatat64", 327 },
68{ "fstatfs", 100 }, 74{ "fstatfs", 100 },
69{ "fstatfs64", 267 }, 75{ "syslog", 103 },
70{ "fsync", 118 }, 76{ "setitimer", 104 },
71{ "ftruncate64", 194 },
72{ "ftruncate", 93 },
73{ "futex", 240 },
74{ "futimesat", 326 },
75{ "getcpu", 345 },
76{ "getcwd", 183 },
77{ "getdents", 141 },
78{ "getdents64", 217 },
79{ "getegid32", 202 },
80{ "getegid", 50 },
81{ "geteuid32", 201 },
82{ "geteuid", 49 },
83{ "getgid32", 200 },
84{ "getgid", 47 },
85{ "getgroups32", 205 },
86{ "getgroups", 80 },
87{ "getitimer", 105 }, 77{ "getitimer", 105 },
88{ "get_mempolicy", 320 }, 78{ "stat", 106 },
89{ "getpeername", 287 },
90{ "getpgid", 132 },
91{ "getpgrp", 65 },
92{ "getpid", 20 },
93{ "getppid", 64 },
94{ "getpriority", 96 },
95{ "getrandom", 384 },
96{ "getresgid", 171 },
97{ "getresgid32", 211 },
98{ "getresuid", 165 },
99{ "getresuid32", 209 },
100{ "getrlimit", 76 },
101{ "get_robust_list", 339 },
102{ "getrusage", 77 },
103{ "getsid", 147 },
104{ "getsockname", 286 },
105{ "getsockopt", 295 },
106{ "gettid", 224 },
107{ "gettimeofday", 78 },
108{ "getuid", 24 },
109{ "getuid32", 199 },
110{ "getxattr", 229 },
111{ "init_module", 128 },
112{ "inotify_add_watch", 317 },
113{ "inotify_init1", 360 },
114{ "inotify_init", 316 },
115{ "inotify_rm_watch", 318 },
116{ "io_cancel", 247 },
117{ "ioctl", 54 },
118{ "io_destroy", 244 },
119{ "io_getevents", 245 },
120{ "ioprio_get", 315 },
121{ "ioprio_set", 314 },
122{ "io_setup", 243 },
123{ "io_submit", 246 },
124{ "ipc", 117 },
125{ "kcmp", 378 },
126{ "kexec_load", 347 },
127{ "keyctl", 311 },
128{ "kill", 37 },
129{ "lchown", 16 },
130{ "lchown32", 198 },
131{ "lgetxattr", 230 },
132{ "link", 9 },
133{ "linkat", 330 },
134{ "listen", 284 },
135{ "listxattr", 232 },
136{ "llistxattr", 233 },
137{ "_llseek", 140 },
138{ "lookup_dcookie", 249 },
139{ "lremovexattr", 236 },
140{ "lseek", 19 },
141{ "lsetxattr", 227 },
142{ "lstat", 107 }, 79{ "lstat", 107 },
143{ "lstat64", 196 }, 80{ "fstat", 108 },
144{ "madvise", 220 }, 81{ "vhangup", 111 },
145{ "mbind", 319 }, 82{ "wait4", 114 },
146{ "memfd_create", 385 }, 83{ "swapoff", 115 },
147{ "mincore", 219 }, 84{ "sysinfo", 116 },
148{ "mkdir", 39 }, 85{ "fsync", 118 },
149{ "mkdirat", 323 }, 86{ "sigreturn", 119 },
150{ "mknod", 14 }, 87{ "clone", 120 },
151{ "mknodat", 324 }, 88{ "setdomainname", 121 },
152{ "mlock", 150 }, 89{ "uname", 122 },
153{ "mlockall", 152 }, 90{ "adjtimex", 124 },
154{ "mmap2", 192 },
155{ "mmap", 90 },
156{ "mount", 21 },
157{ "move_pages", 344 },
158{ "mprotect", 125 }, 91{ "mprotect", 125 },
159{ "mq_getsetattr", 279 }, 92{ "sigprocmask", 126 },
160{ "mq_notify", 278 }, 93{ "init_module", 128 },
161{ "mq_open", 274 }, 94{ "delete_module", 129 },
162{ "mq_timedreceive", 277 }, 95{ "quotactl", 131 },
163{ "mq_timedsend", 276 }, 96{ "getpgid", 132 },
164{ "mq_unlink", 275 }, 97{ "fchdir", 133 },
165{ "mremap", 163 }, 98{ "bdflush", 134 },
166{ "msgctl", 304 }, 99{ "sysfs", 135 },
167{ "msgget", 303 }, 100{ "personality", 136 },
168{ "msgrcv", 302 }, 101{ "setfsuid", 138 },
169{ "msgsnd", 301 }, 102{ "setfsgid", 139 },
103{ "_llseek", 140 },
104{ "getdents", 141 },
105{ "_newselect", 142 },
106{ "flock", 143 },
170{ "msync", 144 }, 107{ "msync", 144 },
108{ "readv", 145 },
109{ "writev", 146 },
110{ "getsid", 147 },
111{ "fdatasync", 148 },
112{ "_sysctl", 149 },
113{ "mlock", 150 },
171{ "munlock", 151 }, 114{ "munlock", 151 },
115{ "mlockall", 152 },
172{ "munlockall", 153 }, 116{ "munlockall", 153 },
173{ "munmap", 91 }, 117{ "sched_setparam", 154 },
174{ "name_to_handle_at", 370 }, 118{ "sched_getparam", 155 },
119{ "sched_setscheduler", 156 },
120{ "sched_getscheduler", 157 },
121{ "sched_yield", 158 },
122{ "sched_get_priority_max", 159 },
123{ "sched_get_priority_min", 160 },
124{ "sched_rr_get_interval", 161 },
175{ "nanosleep", 162 }, 125{ "nanosleep", 162 },
176{ "_newselect", 142 }, 126{ "mremap", 163 },
177{ "nfsservctl", 169 }, 127{ "setresuid", 164 },
178{ "nice", 34 }, 128{ "getresuid", 165 },
179{ "open", 5 },
180{ "openat", 322 },
181{ "open_by_handle_at", 371 },
182{ "pause", 29 },
183{ "pciconfig_iobase", 271 },
184{ "pciconfig_read", 272 },
185{ "pciconfig_write", 273 },
186{ "perf_event_open", 364 },
187{ "personality", 136 },
188{ "pipe2", 359 },
189{ "pipe", 42 },
190{ "pivot_root", 218 },
191{ "poll", 168 }, 129{ "poll", 168 },
192{ "ppoll", 336 }, 130{ "nfsservctl", 169 },
131{ "setresgid", 170 },
132{ "getresgid", 171 },
193{ "prctl", 172 }, 133{ "prctl", 172 },
194{ "pread64", 180 }, 134{ "rt_sigreturn", 173 },
195{ "preadv", 361 },
196{ "prlimit64", 369 },
197{ "process_vm_readv", 376 },
198{ "process_vm_writev", 377 },
199{ "pselect6", 335 },
200{ "ptrace", 26 },
201{ "pwrite64", 181 },
202{ "pwritev", 362 },
203{ "quotactl", 131 },
204{ "read", 3 },
205{ "readahead", 225 },
206{ "readdir", 89 },
207{ "readlink", 85 },
208{ "readlinkat", 332 },
209{ "readv", 145 },
210{ "reboot", 88 },
211{ "recv", 291 },
212{ "recvfrom", 292 },
213{ "recvmmsg", 365 },
214{ "recvmsg", 297 },
215{ "remap_file_pages", 253 },
216{ "removexattr", 235 },
217{ "rename", 38 },
218{ "renameat2", 382 },
219{ "renameat", 329 },
220{ "request_key", 310 },
221{ "rmdir", 40 },
222{ "rt_sigaction", 174 }, 135{ "rt_sigaction", 174 },
223{ "rt_sigpending", 176 },
224{ "rt_sigprocmask", 175 }, 136{ "rt_sigprocmask", 175 },
137{ "rt_sigpending", 176 },
138{ "rt_sigtimedwait", 177 },
225{ "rt_sigqueueinfo", 178 }, 139{ "rt_sigqueueinfo", 178 },
226{ "rt_sigreturn", 173 },
227{ "rt_sigsuspend", 179 }, 140{ "rt_sigsuspend", 179 },
228{ "rt_sigtimedwait", 177 }, 141{ "pread64", 180 },
229{ "rt_tgsigqueueinfo", 363 }, 142{ "pwrite64", 181 },
230{ "sched_getaffinity", 242 }, 143{ "chown", 182 },
231{ "sched_getattr", 381 }, 144{ "getcwd", 183 },
232{ "sched_getparam", 155 }, 145{ "capget", 184 },
233{ "sched_get_priority_max", 159 }, 146{ "capset", 185 },
234{ "sched_get_priority_min", 160 }, 147{ "sigaltstack", 186 },
235{ "sched_getscheduler", 157 },
236{ "sched_rr_get_interval", 161 },
237{ "sched_setaffinity", 241 },
238{ "sched_setattr", 380 },
239{ "sched_setparam", 154 },
240{ "sched_setscheduler", 156 },
241{ "sched_yield", 158 },
242{ "seccomp", 383 },
243{ "select", 82 },
244{ "semctl", 300 },
245{ "semget", 299 },
246{ "semop", 298 },
247{ "semtimedop", 312 },
248{ "send", 289 },
249{ "sendfile", 187 }, 148{ "sendfile", 187 },
250{ "sendfile64", 239 }, 149{ "vfork", 190 },
251{ "sendmmsg", 374 }, 150{ "ugetrlimit", 191 },
252{ "sendmsg", 296 }, 151{ "mmap2", 192 },
253{ "sendto", 290 }, 152{ "truncate64", 193 },
254{ "setdomainname", 121 }, 153{ "ftruncate64", 194 },
255{ "setfsgid", 139 }, 154{ "stat64", 195 },
256{ "setfsgid32", 216 }, 155{ "lstat64", 196 },
257{ "setfsuid", 138 }, 156{ "fstat64", 197 },
258{ "setfsuid32", 215 }, 157{ "lchown32", 198 },
259{ "setgid32", 214 }, 158{ "getuid32", 199 },
260{ "setgid", 46 }, 159{ "getgid32", 200 },
261{ "setgroups32", 206 }, 160{ "geteuid32", 201 },
262{ "setgroups", 81 }, 161{ "getegid32", 202 },
263{ "sethostname", 74 }, 162{ "setreuid32", 203 },
264{ "setitimer", 104 },
265{ "set_mempolicy", 321 },
266{ "setns", 375 },
267{ "setpgid", 57 },
268{ "setpriority", 97 },
269{ "setregid32", 204 }, 163{ "setregid32", 204 },
270{ "setregid", 71 }, 164{ "getgroups32", 205 },
271{ "setresgid", 170 }, 165{ "setgroups32", 206 },
272{ "setresgid32", 210 }, 166{ "fchown32", 207 },
273{ "setresuid", 164 },
274{ "setresuid32", 208 }, 167{ "setresuid32", 208 },
275{ "setreuid32", 203 }, 168{ "getresuid32", 209 },
276{ "setreuid", 70 }, 169{ "setresgid32", 210 },
277{ "setrlimit", 75 }, 170{ "getresgid32", 211 },
278{ "set_robust_list", 338 }, 171{ "chown32", 212 },
279{ "setsid", 66 },
280{ "setsockopt", 294 },
281{ "set_tid_address", 256 },
282{ "settimeofday", 79 },
283{ "setuid", 23 },
284{ "setuid32", 213 }, 172{ "setuid32", 213 },
173{ "setgid32", 214 },
174{ "setfsuid32", 215 },
175{ "setfsgid32", 216 },
176{ "getdents64", 217 },
177{ "pivot_root", 218 },
178{ "mincore", 219 },
179{ "madvise", 220 },
180{ "fcntl64", 221 },
181{ "gettid", 224 },
182{ "readahead", 225 },
285{ "setxattr", 226 }, 183{ "setxattr", 226 },
184{ "lsetxattr", 227 },
185{ "fsetxattr", 228 },
186{ "getxattr", 229 },
187{ "lgetxattr", 230 },
188{ "fgetxattr", 231 },
189{ "listxattr", 232 },
190{ "llistxattr", 233 },
191{ "flistxattr", 234 },
192{ "removexattr", 235 },
193{ "lremovexattr", 236 },
194{ "fremovexattr", 237 },
195{ "tkill", 238 },
196{ "sendfile64", 239 },
197{ "futex", 240 },
198{ "sched_setaffinity", 241 },
199{ "sched_getaffinity", 242 },
200{ "io_setup", 243 },
201{ "io_destroy", 244 },
202{ "io_getevents", 245 },
203{ "io_submit", 246 },
204{ "io_cancel", 247 },
205{ "exit_group", 248 },
206{ "lookup_dcookie", 249 },
207{ "epoll_create", 250 },
208{ "epoll_ctl", 251 },
209{ "epoll_wait", 252 },
210{ "remap_file_pages", 253 },
211{ "set_tid_address", 256 },
212{ "timer_create", 257 },
213{ "timer_settime", 258 },
214{ "timer_gettime", 259 },
215{ "timer_getoverrun", 260 },
216{ "timer_delete", 261 },
217{ "clock_settime", 262 },
218{ "clock_gettime", 263 },
219{ "clock_getres", 264 },
220{ "clock_nanosleep", 265 },
221{ "statfs64", 266 },
222{ "fstatfs64", 267 },
223{ "tgkill", 268 },
224{ "utimes", 269 },
225{ "arm_fadvise64_64", 270 },
226{ "pciconfig_iobase", 271 },
227{ "pciconfig_read", 272 },
228{ "pciconfig_write", 273 },
229{ "mq_open", 274 },
230{ "mq_unlink", 275 },
231{ "mq_timedsend", 276 },
232{ "mq_timedreceive", 277 },
233{ "mq_notify", 278 },
234{ "mq_getsetattr", 279 },
235{ "waitid", 280 },
236{ "socket", 281 },
237{ "bind", 282 },
238{ "connect", 283 },
239{ "listen", 284 },
240{ "accept", 285 },
241{ "getsockname", 286 },
242{ "getpeername", 287 },
243{ "socketpair", 288 },
244{ "send", 289 },
245{ "sendto", 290 },
246{ "recv", 291 },
247{ "recvfrom", 292 },
248{ "shutdown", 293 },
249{ "setsockopt", 294 },
250{ "getsockopt", 295 },
251{ "sendmsg", 296 },
252{ "recvmsg", 297 },
253{ "semop", 298 },
254{ "semget", 299 },
255{ "semctl", 300 },
256{ "msgsnd", 301 },
257{ "msgrcv", 302 },
258{ "msgget", 303 },
259{ "msgctl", 304 },
286{ "shmat", 305 }, 260{ "shmat", 305 },
287{ "shmctl", 308 },
288{ "shmdt", 306 }, 261{ "shmdt", 306 },
289{ "shmget", 307 }, 262{ "shmget", 307 },
290{ "shutdown", 293 }, 263{ "shmctl", 308 },
291{ "sigaction", 67 }, 264{ "add_key", 309 },
292{ "sigaltstack", 186 }, 265{ "request_key", 310 },
293{ "signalfd", 349 }, 266{ "keyctl", 311 },
294{ "signalfd4", 355 }, 267{ "semtimedop", 312 },
295{ "sigpending", 73 }, 268{ "vserver", 313 },
296{ "sigprocmask", 126 }, 269{ "ioprio_set", 314 },
297{ "sigreturn", 119 }, 270{ "ioprio_get", 315 },
298{ "sigsuspend", 72 }, 271{ "inotify_init", 316 },
299{ "socket", 281 }, 272{ "inotify_add_watch", 317 },
300{ "socketcall", 102 }, 273{ "inotify_rm_watch", 318 },
301{ "socketpair", 288 }, 274{ "mbind", 319 },
302{ "splice", 340 }, 275{ "get_mempolicy", 320 },
303{ "stat", 106 }, 276{ "set_mempolicy", 321 },
304{ "stat64", 195 }, 277{ "openat", 322 },
305{ "statfs64", 266 }, 278{ "mkdirat", 323 },
306{ "statfs", 99 }, 279{ "mknodat", 324 },
307{ "stime", 25 }, 280{ "fchownat", 325 },
308{ "swapoff", 115 }, 281{ "futimesat", 326 },
309{ "swapon", 87 }, 282{ "fstatat64", 327 },
310{ "symlink", 83 }, 283{ "unlinkat", 328 },
284{ "renameat", 329 },
285{ "linkat", 330 },
311{ "symlinkat", 331 }, 286{ "symlinkat", 331 },
312{ "sync", 36 }, 287{ "readlinkat", 332 },
313{ "sync_file_range2", 341 }, 288{ "fchmodat", 333 },
314{ "syncfs", 373 }, 289{ "faccessat", 334 },
315{ "syscall", 113 }, 290{ "pselect6", 335 },
316{ "_sysctl", 149 }, 291{ "ppoll", 336 },
317{ "sysfs", 135 }, 292{ "unshare", 337 },
318{ "sysinfo", 116 }, 293{ "set_robust_list", 338 },
319{ "syslog", 103 }, 294{ "get_robust_list", 339 },
295{ "splice", 340 },
296{ "arm_sync_file_range", 341 },
320{ "tee", 342 }, 297{ "tee", 342 },
321{ "tgkill", 268 }, 298{ "vmsplice", 343 },
322{ "time", 13 }, 299{ "move_pages", 344 },
323{ "timer_create", 257 }, 300{ "getcpu", 345 },
324{ "timer_delete", 261 }, 301{ "epoll_pwait", 346 },
302{ "kexec_load", 347 },
303{ "utimensat", 348 },
304{ "signalfd", 349 },
325{ "timerfd_create", 350 }, 305{ "timerfd_create", 350 },
326{ "timerfd_gettime", 354 }, 306{ "eventfd", 351 },
307{ "fallocate", 352 },
327{ "timerfd_settime", 353 }, 308{ "timerfd_settime", 353 },
328{ "timer_getoverrun", 260 }, 309{ "timerfd_gettime", 354 },
329{ "timer_gettime", 259 }, 310{ "signalfd4", 355 },
330{ "timer_settime", 258 }, 311{ "eventfd2", 356 },
331{ "times", 43 }, 312{ "epoll_create1", 357 },
332{ "tkill", 238 }, 313{ "dup3", 358 },
333{ "truncate64", 193 }, 314{ "pipe2", 359 },
334{ "truncate", 92 }, 315{ "inotify_init1", 360 },
335{ "ugetrlimit", 191 }, 316{ "preadv", 361 },
336{ "umask", 60 }, 317{ "pwritev", 362 },
337{ "umount", 22 }, 318{ "rt_tgsigqueueinfo", 363 },
338{ "umount2", 52 }, 319{ "perf_event_open", 364 },
339{ "uname", 122 }, 320{ "recvmmsg", 365 },
340{ "unlink", 10 }, 321{ "accept4", 366 },
341{ "unlinkat", 328 }, 322{ "fanotify_init", 367 },
342{ "unshare", 337 }, 323{ "fanotify_mark", 368 },
343{ "uselib", 86 }, 324{ "prlimit64", 369 },
344{ "ustat", 62 }, 325{ "name_to_handle_at", 370 },
345{ "utime", 30 }, 326{ "open_by_handle_at", 371 },
346{ "utimensat", 348 }, 327{ "clock_adjtime", 372 },
347{ "utimes", 269 }, 328{ "syncfs", 373 },
348{ "vfork", 190 }, 329{ "sendmmsg", 374 },
349{ "vhangup", 111 }, 330{ "setns", 375 },
350{ "vmsplice", 343 }, 331{ "process_vm_readv", 376 },
351{ "vserver", 313 }, 332{ "process_vm_writev", 377 },
352{ "wait4", 114 }, 333{ "kcmp", 378 },
353{ "waitid", 280 }, 334{ "finit_module", 379 },
354{ "write", 4 }, 335{ "sched_setattr", 380 },
355{ "writev", 146 }, 336{ "sched_getattr", 381 },
337{ "renameat2", 382 },
338{ "seccomp", 383 },
339{ "getrandom", 384 },
340{ "memfd_create", 385 },
341{ "bpf", 386 },
342{ "execveat", 387 },
343{ "userfaultfd", 388 },
344{ "membarrier", 389 },
345{ "mlock2", 390 },
346{ "copy_file_range", 391 },
347{ "preadv2", 392 },
348{ "pwritev2", 393 },
349{ "pkey_mprotect", 394 },
350{ "pkey_alloc", 395 },
351{ "pkey_free", 396 },
352{ "statx", 397 },
353{ "rseq", 398 },
354{ "io_pgetevents", 399 },
355{ "migrate_pages", 400 },
356{ "kexec_file_load", 401 },
357{ "clock_gettime64", 403 },
358{ "clock_settime64", 404 },
359{ "clock_adjtime64", 405 },
360{ "clock_getres_time64", 406 },
361{ "clock_nanosleep_time64", 407 },
362{ "timer_gettime64", 408 },
363{ "timer_settime64", 409 },
364{ "timerfd_gettime64", 410 },
365{ "timerfd_settime64", 411 },
366{ "utimensat_time64", 412 },
367{ "pselect6_time64", 413 },
368{ "ppoll_time64", 414 },
369{ "io_pgetevents_time64", 416 },
370{ "recvmmsg_time64", 417 },
371{ "mq_timedsend_time64", 418 },
372{ "mq_timedreceive_time64", 419 },
373{ "semtimedop_time64", 420 },
374{ "rt_sigtimedwait_time64", 421 },
375{ "futex_time64", 422 },
376{ "sched_rr_get_interval_time64", 423 },
377{ "pidfd_send_signal", 424 },
378{ "io_uring_setup", 425 },
379{ "io_uring_enter", 426 },
380{ "io_uring_register", 427 },
381{ "open_tree", 428 },
382{ "move_mount", 429 },
383{ "fsopen", 430 },
384{ "fsconfig", 431 },
385{ "fsmount", 432 },
386{ "fspick", 433 },
387{ "pidfd_open", 434 },
388{ "clone3", 435 },
389{ "close_range", 436 },
390{ "openat2", 437 },
391{ "pidfd_getfd", 438 },
392{ "faccessat2", 439 },
393{ "process_madvise", 440 },
394{ "epoll_pwait2", 441 },
395{ "mount_setattr", 442 },
396{ "quotactl_fd", 443 },
397{ "landlock_create_ruleset", 444 },
398{ "landlock_add_rule", 445 },
399{ "landlock_restrict_self", 446 },
400{ "process_mrelease", 448 },
401{ "futex_waitv", 449 },
diff --git a/src/include/syscall_i386.h b/src/include/syscall_i386.h
index 752e11f24..af22089d7 100644
--- a/src/include/syscall_i386.h
+++ b/src/include/syscall_i386.h
@@ -1,426 +1,429 @@
1{ "_llseek", 140 }, 1{ "exit", 1 },
2{ "_newselect", 142 }, 2{ "fork", 2 },
3{ "_sysctl", 149 }, 3{ "read", 3 },
4{ "accept4", 364 }, 4{ "write", 4 },
5{ "access", 33 }, 5{ "open", 5 },
6{ "acct", 51 },
7{ "add_key", 286 },
8{ "adjtimex", 124 },
9{ "afs_syscall", 137 },
10{ "alarm", 27 },
11{ "arch_prctl", 384 },
12{ "bdflush", 134 },
13{ "bind", 361 },
14{ "bpf", 357 },
15{ "break", 17 },
16{ "brk", 45 },
17{ "capget", 184 },
18{ "capset", 185 },
19{ "chdir", 12 },
20{ "chmod", 15 },
21{ "chown", 182 },
22{ "chown32", 212 },
23{ "chroot", 61 },
24{ "clock_adjtime", 343 },
25{ "clock_adjtime64", 405 },
26{ "clock_getres", 266 },
27{ "clock_getres_time64", 406 },
28{ "clock_gettime", 265 },
29{ "clock_gettime64", 403 },
30{ "clock_nanosleep", 267 },
31{ "clock_nanosleep_time64", 407 },
32{ "clock_settime", 264 },
33{ "clock_settime64", 404 },
34{ "clone", 120 },
35{ "clone3", 435 },
36{ "close", 6 }, 6{ "close", 6 },
37{ "connect", 362 }, 7{ "waitpid", 7 },
38{ "copy_file_range", 377 },
39{ "creat", 8 }, 8{ "creat", 8 },
40{ "create_module", 127 }, 9{ "link", 9 },
41{ "delete_module", 129 }, 10{ "unlink", 10 },
11{ "execve", 11 },
12{ "chdir", 12 },
13{ "time", 13 },
14{ "mknod", 14 },
15{ "chmod", 15 },
16{ "lchown", 16 },
17{ "break", 17 },
18{ "oldstat", 18 },
19{ "lseek", 19 },
20{ "getpid", 20 },
21{ "mount", 21 },
22{ "umount", 22 },
23{ "setuid", 23 },
24{ "getuid", 24 },
25{ "stime", 25 },
26{ "ptrace", 26 },
27{ "alarm", 27 },
28{ "oldfstat", 28 },
29{ "pause", 29 },
30{ "utime", 30 },
31{ "stty", 31 },
32{ "gtty", 32 },
33{ "access", 33 },
34{ "nice", 34 },
35{ "ftime", 35 },
36{ "sync", 36 },
37{ "kill", 37 },
38{ "rename", 38 },
39{ "mkdir", 39 },
40{ "rmdir", 40 },
42{ "dup", 41 }, 41{ "dup", 41 },
42{ "pipe", 42 },
43{ "times", 43 },
44{ "prof", 44 },
45{ "brk", 45 },
46{ "setgid", 46 },
47{ "getgid", 47 },
48{ "signal", 48 },
49{ "geteuid", 49 },
50{ "getegid", 50 },
51{ "acct", 51 },
52{ "umount2", 52 },
53{ "lock", 53 },
54{ "ioctl", 54 },
55{ "fcntl", 55 },
56{ "mpx", 56 },
57{ "setpgid", 57 },
58{ "ulimit", 58 },
59{ "oldolduname", 59 },
60{ "umask", 60 },
61{ "chroot", 61 },
62{ "ustat", 62 },
43{ "dup2", 63 }, 63{ "dup2", 63 },
44{ "dup3", 330 }, 64{ "getppid", 64 },
45{ "epoll_create", 254 }, 65{ "getpgrp", 65 },
46{ "epoll_create1", 329 }, 66{ "setsid", 66 },
47{ "epoll_ctl", 255 }, 67{ "sigaction", 67 },
48{ "epoll_pwait", 319 }, 68{ "sgetmask", 68 },
49{ "epoll_wait", 256 }, 69{ "ssetmask", 69 },
50{ "eventfd", 323 }, 70{ "setreuid", 70 },
51{ "eventfd2", 328 }, 71{ "setregid", 71 },
52{ "execve", 11 }, 72{ "sigsuspend", 72 },
53{ "execveat", 358 }, 73{ "sigpending", 73 },
54{ "exit", 1 }, 74{ "sethostname", 74 },
55{ "exit_group", 252 }, 75{ "setrlimit", 75 },
56{ "faccessat", 307 }, 76{ "getrlimit", 76 },
57{ "faccessat2", 439 }, 77{ "getrusage", 77 },
58{ "fadvise64", 250 }, 78{ "gettimeofday", 78 },
59{ "fadvise64_64", 272 }, 79{ "settimeofday", 79 },
60{ "fallocate", 324 }, 80{ "getgroups", 80 },
61{ "fanotify_init", 338 }, 81{ "setgroups", 81 },
62{ "fanotify_mark", 339 }, 82{ "select", 82 },
63{ "fchdir", 133 }, 83{ "symlink", 83 },
84{ "oldlstat", 84 },
85{ "readlink", 85 },
86{ "uselib", 86 },
87{ "swapon", 87 },
88{ "reboot", 88 },
89{ "readdir", 89 },
90{ "mmap", 90 },
91{ "munmap", 91 },
92{ "truncate", 92 },
93{ "ftruncate", 93 },
64{ "fchmod", 94 }, 94{ "fchmod", 94 },
65{ "fchmodat", 306 },
66{ "fchown", 95 }, 95{ "fchown", 95 },
67{ "fchown32", 207 }, 96{ "getpriority", 96 },
68{ "fchownat", 298 }, 97{ "setpriority", 97 },
69{ "fcntl", 55 }, 98{ "profil", 98 },
70{ "fcntl64", 221 }, 99{ "statfs", 99 },
71{ "fdatasync", 148 },
72{ "fgetxattr", 231 },
73{ "finit_module", 350 },
74{ "flistxattr", 234 },
75{ "flock", 143 },
76{ "fork", 2 },
77{ "fremovexattr", 237 },
78{ "fsconfig", 431 },
79{ "fsetxattr", 228 },
80{ "fsmount", 432 },
81{ "fsopen", 430 },
82{ "fspick", 433 },
83{ "fstat", 108 },
84{ "fstat64", 197 },
85{ "fstatat64", 300 },
86{ "fstatfs", 100 }, 100{ "fstatfs", 100 },
87{ "fstatfs64", 269 }, 101{ "ioperm", 101 },
102{ "socketcall", 102 },
103{ "syslog", 103 },
104{ "setitimer", 104 },
105{ "getitimer", 105 },
106{ "stat", 106 },
107{ "lstat", 107 },
108{ "fstat", 108 },
109{ "olduname", 109 },
110{ "iopl", 110 },
111{ "vhangup", 111 },
112{ "idle", 112 },
113{ "vm86old", 113 },
114{ "wait4", 114 },
115{ "swapoff", 115 },
116{ "sysinfo", 116 },
117{ "ipc", 117 },
88{ "fsync", 118 }, 118{ "fsync", 118 },
89{ "ftime", 35 }, 119{ "sigreturn", 119 },
90{ "ftruncate", 93 }, 120{ "clone", 120 },
91{ "ftruncate64", 194 }, 121{ "setdomainname", 121 },
92{ "futex", 240 }, 122{ "uname", 122 },
93{ "futex_time64", 422 }, 123{ "modify_ldt", 123 },
94{ "futimesat", 299 }, 124{ "adjtimex", 124 },
125{ "mprotect", 125 },
126{ "sigprocmask", 126 },
127{ "create_module", 127 },
128{ "init_module", 128 },
129{ "delete_module", 129 },
95{ "get_kernel_syms", 130 }, 130{ "get_kernel_syms", 130 },
96{ "get_mempolicy", 275 }, 131{ "quotactl", 131 },
97{ "get_robust_list", 312 }, 132{ "getpgid", 132 },
98{ "get_thread_area", 244 }, 133{ "fchdir", 133 },
99{ "getcpu", 318 }, 134{ "bdflush", 134 },
100{ "getcwd", 183 }, 135{ "sysfs", 135 },
136{ "personality", 136 },
137{ "afs_syscall", 137 },
138{ "setfsuid", 138 },
139{ "setfsgid", 139 },
140{ "_llseek", 140 },
101{ "getdents", 141 }, 141{ "getdents", 141 },
102{ "getdents64", 220 }, 142{ "_newselect", 142 },
103{ "getegid", 50 }, 143{ "flock", 143 },
104{ "getegid32", 202 }, 144{ "msync", 144 },
105{ "geteuid", 49 }, 145{ "readv", 145 },
106{ "geteuid32", 201 }, 146{ "writev", 146 },
107{ "getgid", 47 }, 147{ "getsid", 147 },
148{ "fdatasync", 148 },
149{ "_sysctl", 149 },
150{ "mlock", 150 },
151{ "munlock", 151 },
152{ "mlockall", 152 },
153{ "munlockall", 153 },
154{ "sched_setparam", 154 },
155{ "sched_getparam", 155 },
156{ "sched_setscheduler", 156 },
157{ "sched_getscheduler", 157 },
158{ "sched_yield", 158 },
159{ "sched_get_priority_max", 159 },
160{ "sched_get_priority_min", 160 },
161{ "sched_rr_get_interval", 161 },
162{ "nanosleep", 162 },
163{ "mremap", 163 },
164{ "setresuid", 164 },
165{ "getresuid", 165 },
166{ "vm86", 166 },
167{ "query_module", 167 },
168{ "poll", 168 },
169{ "nfsservctl", 169 },
170{ "setresgid", 170 },
171{ "getresgid", 171 },
172{ "prctl", 172 },
173{ "rt_sigreturn", 173 },
174{ "rt_sigaction", 174 },
175{ "rt_sigprocmask", 175 },
176{ "rt_sigpending", 176 },
177{ "rt_sigtimedwait", 177 },
178{ "rt_sigqueueinfo", 178 },
179{ "rt_sigsuspend", 179 },
180{ "pread64", 180 },
181{ "pwrite64", 181 },
182{ "chown", 182 },
183{ "getcwd", 183 },
184{ "capget", 184 },
185{ "capset", 185 },
186{ "sigaltstack", 186 },
187{ "sendfile", 187 },
188{ "getpmsg", 188 },
189{ "putpmsg", 189 },
190{ "vfork", 190 },
191{ "ugetrlimit", 191 },
192{ "mmap2", 192 },
193{ "truncate64", 193 },
194{ "ftruncate64", 194 },
195{ "stat64", 195 },
196{ "lstat64", 196 },
197{ "fstat64", 197 },
198{ "lchown32", 198 },
199{ "getuid32", 199 },
108{ "getgid32", 200 }, 200{ "getgid32", 200 },
109{ "getgroups", 80 }, 201{ "geteuid32", 201 },
202{ "getegid32", 202 },
203{ "setreuid32", 203 },
204{ "setregid32", 204 },
110{ "getgroups32", 205 }, 205{ "getgroups32", 205 },
111{ "getitimer", 105 }, 206{ "setgroups32", 206 },
112{ "getpeername", 368 }, 207{ "fchown32", 207 },
113{ "getpgid", 132 }, 208{ "setresuid32", 208 },
114{ "getpgrp", 65 },
115{ "getpid", 20 },
116{ "getpmsg", 188 },
117{ "getppid", 64 },
118{ "getpriority", 96 },
119{ "getrandom", 355 },
120{ "getresgid", 171 },
121{ "getresgid32", 211 },
122{ "getresuid", 165 },
123{ "getresuid32", 209 }, 209{ "getresuid32", 209 },
124{ "getrlimit", 76 }, 210{ "setresgid32", 210 },
125{ "getrusage", 77 }, 211{ "getresgid32", 211 },
126{ "getsid", 147 }, 212{ "chown32", 212 },
127{ "getsockname", 367 }, 213{ "setuid32", 213 },
128{ "getsockopt", 365 }, 214{ "setgid32", 214 },
215{ "setfsuid32", 215 },
216{ "setfsgid32", 216 },
217{ "pivot_root", 217 },
218{ "mincore", 218 },
219{ "madvise", 219 },
220{ "getdents64", 220 },
221{ "fcntl64", 221 },
129{ "gettid", 224 }, 222{ "gettid", 224 },
130{ "gettimeofday", 78 }, 223{ "readahead", 225 },
131{ "getuid", 24 }, 224{ "setxattr", 226 },
132{ "getuid32", 199 }, 225{ "lsetxattr", 227 },
226{ "fsetxattr", 228 },
133{ "getxattr", 229 }, 227{ "getxattr", 229 },
134{ "gtty", 32 },
135{ "idle", 112 },
136{ "init_module", 128 },
137{ "inotify_add_watch", 292 },
138{ "inotify_init", 291 },
139{ "inotify_init1", 332 },
140{ "inotify_rm_watch", 293 },
141{ "io_cancel", 249 },
142{ "io_destroy", 246 },
143{ "io_getevents", 247 },
144{ "io_pgetevents", 385 },
145{ "io_pgetevents_time64", 416 },
146{ "io_setup", 245 },
147{ "io_submit", 248 },
148{ "io_uring_enter", 426 },
149{ "io_uring_register", 427 },
150{ "io_uring_setup", 425 },
151{ "ioctl", 54 },
152{ "ioperm", 101 },
153{ "iopl", 110 },
154{ "ioprio_get", 290 },
155{ "ioprio_set", 289 },
156{ "ipc", 117 },
157{ "kcmp", 349 },
158{ "kexec_load", 283 },
159{ "keyctl", 288 },
160{ "kill", 37 },
161{ "lchown", 16 },
162{ "lchown32", 198 },
163{ "lgetxattr", 230 }, 228{ "lgetxattr", 230 },
164{ "link", 9 }, 229{ "fgetxattr", 231 },
165{ "linkat", 303 },
166{ "listen", 363 },
167{ "listxattr", 232 }, 230{ "listxattr", 232 },
168{ "llistxattr", 233 }, 231{ "llistxattr", 233 },
169{ "lock", 53 }, 232{ "flistxattr", 234 },
170{ "lookup_dcookie", 253 }, 233{ "removexattr", 235 },
171{ "lremovexattr", 236 }, 234{ "lremovexattr", 236 },
172{ "lseek", 19 }, 235{ "fremovexattr", 237 },
173{ "lsetxattr", 227 }, 236{ "tkill", 238 },
174{ "lstat", 107 }, 237{ "sendfile64", 239 },
175{ "lstat64", 196 }, 238{ "futex", 240 },
176{ "madvise", 219 }, 239{ "sched_setaffinity", 241 },
240{ "sched_getaffinity", 242 },
241{ "set_thread_area", 243 },
242{ "get_thread_area", 244 },
243{ "io_setup", 245 },
244{ "io_destroy", 246 },
245{ "io_getevents", 247 },
246{ "io_submit", 248 },
247{ "io_cancel", 249 },
248{ "fadvise64", 250 },
249{ "exit_group", 252 },
250{ "lookup_dcookie", 253 },
251{ "epoll_create", 254 },
252{ "epoll_ctl", 255 },
253{ "epoll_wait", 256 },
254{ "remap_file_pages", 257 },
255{ "set_tid_address", 258 },
256{ "timer_create", 259 },
257{ "timer_settime", 260 },
258{ "timer_gettime", 261 },
259{ "timer_getoverrun", 262 },
260{ "timer_delete", 263 },
261{ "clock_settime", 264 },
262{ "clock_gettime", 265 },
263{ "clock_getres", 266 },
264{ "clock_nanosleep", 267 },
265{ "statfs64", 268 },
266{ "fstatfs64", 269 },
267{ "tgkill", 270 },
268{ "utimes", 271 },
269{ "fadvise64_64", 272 },
270{ "vserver", 273 },
177{ "mbind", 274 }, 271{ "mbind", 274 },
178{ "membarrier", 375 }, 272{ "get_mempolicy", 275 },
179{ "memfd_create", 356 }, 273{ "set_mempolicy", 276 },
274{ "mq_open", 277 },
275{ "mq_unlink", 278 },
276{ "mq_timedsend", 279 },
277{ "mq_timedreceive", 280 },
278{ "mq_notify", 281 },
279{ "mq_getsetattr", 282 },
280{ "kexec_load", 283 },
281{ "waitid", 284 },
282{ "add_key", 286 },
283{ "request_key", 287 },
284{ "keyctl", 288 },
285{ "ioprio_set", 289 },
286{ "ioprio_get", 290 },
287{ "inotify_init", 291 },
288{ "inotify_add_watch", 292 },
289{ "inotify_rm_watch", 293 },
180{ "migrate_pages", 294 }, 290{ "migrate_pages", 294 },
181{ "mincore", 218 }, 291{ "openat", 295 },
182{ "mkdir", 39 },
183{ "mkdirat", 296 }, 292{ "mkdirat", 296 },
184{ "mknod", 14 },
185{ "mknodat", 297 }, 293{ "mknodat", 297 },
186{ "mlock", 150 }, 294{ "fchownat", 298 },
187{ "mlock2", 376 }, 295{ "futimesat", 299 },
188{ "mlockall", 152 }, 296{ "fstatat64", 300 },
189{ "mmap", 90 }, 297{ "unlinkat", 301 },
190{ "mmap2", 192 }, 298{ "renameat", 302 },
191{ "modify_ldt", 123 }, 299{ "linkat", 303 },
192{ "mount", 21 }, 300{ "symlinkat", 304 },
193{ "move_mount", 429 }, 301{ "readlinkat", 305 },
302{ "fchmodat", 306 },
303{ "faccessat", 307 },
304{ "pselect6", 308 },
305{ "ppoll", 309 },
306{ "unshare", 310 },
307{ "set_robust_list", 311 },
308{ "get_robust_list", 312 },
309{ "splice", 313 },
310{ "sync_file_range", 314 },
311{ "tee", 315 },
312{ "vmsplice", 316 },
194{ "move_pages", 317 }, 313{ "move_pages", 317 },
195{ "mprotect", 125 }, 314{ "getcpu", 318 },
196{ "mpx", 56 }, 315{ "epoll_pwait", 319 },
197{ "mq_getsetattr", 282 }, 316{ "utimensat", 320 },
198{ "mq_notify", 281 }, 317{ "signalfd", 321 },
199{ "mq_open", 277 }, 318{ "timerfd_create", 322 },
200{ "mq_timedreceive", 280 }, 319{ "eventfd", 323 },
201{ "mq_timedreceive_time64", 419 }, 320{ "fallocate", 324 },
202{ "mq_timedsend", 279 }, 321{ "timerfd_settime", 325 },
203{ "mq_timedsend_time64", 418 }, 322{ "timerfd_gettime", 326 },
204{ "mq_unlink", 278 }, 323{ "signalfd4", 327 },
205{ "mremap", 163 }, 324{ "eventfd2", 328 },
206{ "msgctl", 402 }, 325{ "epoll_create1", 329 },
207{ "msgget", 399 }, 326{ "dup3", 330 },
208{ "msgrcv", 401 },
209{ "msgsnd", 400 },
210{ "msync", 144 },
211{ "munlock", 151 },
212{ "munlockall", 153 },
213{ "munmap", 91 },
214{ "name_to_handle_at", 341 },
215{ "nanosleep", 162 },
216{ "nfsservctl", 169 },
217{ "nice", 34 },
218{ "oldfstat", 28 },
219{ "oldlstat", 84 },
220{ "oldolduname", 59 },
221{ "oldstat", 18 },
222{ "olduname", 109 },
223{ "open", 5 },
224{ "open_by_handle_at", 342 },
225{ "open_tree", 428 },
226{ "openat", 295 },
227{ "pause", 29 },
228{ "perf_event_open", 336 },
229{ "personality", 136 },
230{ "pidfd_open", 434 },
231{ "pidfd_send_signal", 424 },
232{ "pipe", 42 },
233{ "pipe2", 331 }, 327{ "pipe2", 331 },
234{ "pivot_root", 217 }, 328{ "inotify_init1", 332 },
235{ "pkey_alloc", 381 },
236{ "pkey_free", 382 },
237{ "pkey_mprotect", 380 },
238{ "poll", 168 },
239{ "ppoll", 309 },
240{ "ppoll_time64", 414 },
241{ "prctl", 172 },
242{ "pread64", 180 },
243{ "preadv", 333 }, 329{ "preadv", 333 },
244{ "preadv2", 378 }, 330{ "pwritev", 334 },
331{ "rt_tgsigqueueinfo", 335 },
332{ "perf_event_open", 336 },
333{ "recvmmsg", 337 },
334{ "fanotify_init", 338 },
335{ "fanotify_mark", 339 },
245{ "prlimit64", 340 }, 336{ "prlimit64", 340 },
337{ "name_to_handle_at", 341 },
338{ "open_by_handle_at", 342 },
339{ "clock_adjtime", 343 },
340{ "syncfs", 344 },
341{ "sendmmsg", 345 },
342{ "setns", 346 },
246{ "process_vm_readv", 347 }, 343{ "process_vm_readv", 347 },
247{ "process_vm_writev", 348 }, 344{ "process_vm_writev", 348 },
248{ "prof", 44 }, 345{ "kcmp", 349 },
249{ "profil", 98 }, 346{ "finit_module", 350 },
250{ "pselect6", 308 }, 347{ "sched_setattr", 351 },
251{ "pselect6_time64", 413 }, 348{ "sched_getattr", 352 },
252{ "ptrace", 26 }, 349{ "renameat2", 353 },
253{ "putpmsg", 189 }, 350{ "seccomp", 354 },
254{ "pwrite64", 181 }, 351{ "getrandom", 355 },
255{ "pwritev", 334 }, 352{ "memfd_create", 356 },
256{ "pwritev2", 379 }, 353{ "bpf", 357 },
257{ "query_module", 167 }, 354{ "execveat", 358 },
258{ "quotactl", 131 }, 355{ "socket", 359 },
259{ "read", 3 }, 356{ "socketpair", 360 },
260{ "readahead", 225 }, 357{ "bind", 361 },
261{ "readdir", 89 }, 358{ "connect", 362 },
262{ "readlink", 85 }, 359{ "listen", 363 },
263{ "readlinkat", 305 }, 360{ "accept4", 364 },
264{ "readv", 145 }, 361{ "getsockopt", 365 },
265{ "reboot", 88 }, 362{ "setsockopt", 366 },
363{ "getsockname", 367 },
364{ "getpeername", 368 },
365{ "sendto", 369 },
366{ "sendmsg", 370 },
266{ "recvfrom", 371 }, 367{ "recvfrom", 371 },
267{ "recvmmsg", 337 },
268{ "recvmmsg_time64", 417 },
269{ "recvmsg", 372 }, 368{ "recvmsg", 372 },
270{ "remap_file_pages", 257 }, 369{ "shutdown", 373 },
271{ "removexattr", 235 }, 370{ "userfaultfd", 374 },
272{ "rename", 38 }, 371{ "membarrier", 375 },
273{ "renameat", 302 }, 372{ "mlock2", 376 },
274{ "renameat2", 353 }, 373{ "copy_file_range", 377 },
275{ "request_key", 287 }, 374{ "preadv2", 378 },
276{ "restart_syscall", 0 }, 375{ "pwritev2", 379 },
277{ "rmdir", 40 }, 376{ "pkey_mprotect", 380 },
377{ "pkey_alloc", 381 },
378{ "pkey_free", 382 },
379{ "statx", 383 },
380{ "arch_prctl", 384 },
381{ "io_pgetevents", 385 },
278{ "rseq", 386 }, 382{ "rseq", 386 },
279{ "rt_sigaction", 174 },
280{ "rt_sigpending", 176 },
281{ "rt_sigprocmask", 175 },
282{ "rt_sigqueueinfo", 178 },
283{ "rt_sigreturn", 173 },
284{ "rt_sigsuspend", 179 },
285{ "rt_sigtimedwait", 177 },
286{ "rt_sigtimedwait_time64", 421 },
287{ "rt_tgsigqueueinfo", 335 },
288{ "sched_get_priority_max", 159 },
289{ "sched_get_priority_min", 160 },
290{ "sched_getaffinity", 242 },
291{ "sched_getattr", 352 },
292{ "sched_getparam", 155 },
293{ "sched_getscheduler", 157 },
294{ "sched_rr_get_interval", 161 },
295{ "sched_rr_get_interval_time64", 423 },
296{ "sched_setaffinity", 241 },
297{ "sched_setattr", 351 },
298{ "sched_setparam", 154 },
299{ "sched_setscheduler", 156 },
300{ "sched_yield", 158 },
301{ "seccomp", 354 },
302{ "select", 82 },
303{ "semctl", 394 },
304{ "semget", 393 }, 383{ "semget", 393 },
305{ "semtimedop_time64", 420 }, 384{ "semctl", 394 },
306{ "sendfile", 187 }, 385{ "shmget", 395 },
307{ "sendfile64", 239 },
308{ "sendmmsg", 345 },
309{ "sendmsg", 370 },
310{ "sendto", 369 },
311{ "set_mempolicy", 276 },
312{ "set_robust_list", 311 },
313{ "set_thread_area", 243 },
314{ "set_tid_address", 258 },
315{ "setdomainname", 121 },
316{ "setfsgid", 139 },
317{ "setfsgid32", 216 },
318{ "setfsuid", 138 },
319{ "setfsuid32", 215 },
320{ "setgid", 46 },
321{ "setgid32", 214 },
322{ "setgroups", 81 },
323{ "setgroups32", 206 },
324{ "sethostname", 74 },
325{ "setitimer", 104 },
326{ "setns", 346 },
327{ "setpgid", 57 },
328{ "setpriority", 97 },
329{ "setregid", 71 },
330{ "setregid32", 204 },
331{ "setresgid", 170 },
332{ "setresgid32", 210 },
333{ "setresuid", 164 },
334{ "setresuid32", 208 },
335{ "setreuid", 70 },
336{ "setreuid32", 203 },
337{ "setrlimit", 75 },
338{ "setsid", 66 },
339{ "setsockopt", 366 },
340{ "settimeofday", 79 },
341{ "setuid", 23 },
342{ "setuid32", 213 },
343{ "setxattr", 226 },
344{ "sgetmask", 68 },
345{ "shmat", 397 },
346{ "shmctl", 396 }, 386{ "shmctl", 396 },
387{ "shmat", 397 },
347{ "shmdt", 398 }, 388{ "shmdt", 398 },
348{ "shmget", 395 }, 389{ "msgget", 399 },
349{ "shutdown", 373 }, 390{ "msgsnd", 400 },
350{ "sigaction", 67 }, 391{ "msgrcv", 401 },
351{ "sigaltstack", 186 }, 392{ "msgctl", 402 },
352{ "signal", 48 }, 393{ "clock_gettime64", 403 },
353{ "signalfd", 321 }, 394{ "clock_settime64", 404 },
354{ "signalfd4", 327 }, 395{ "clock_adjtime64", 405 },
355{ "sigpending", 73 }, 396{ "clock_getres_time64", 406 },
356{ "sigprocmask", 126 }, 397{ "clock_nanosleep_time64", 407 },
357{ "sigreturn", 119 },
358{ "sigsuspend", 72 },
359{ "socket", 359 },
360{ "socketcall", 102 },
361{ "socketpair", 360 },
362{ "splice", 313 },
363{ "ssetmask", 69 },
364{ "stat", 106 },
365{ "stat64", 195 },
366{ "statfs", 99 },
367{ "statfs64", 268 },
368{ "statx", 383 },
369{ "stime", 25 },
370{ "stty", 31 },
371{ "swapoff", 115 },
372{ "swapon", 87 },
373{ "symlink", 83 },
374{ "symlinkat", 304 },
375{ "sync", 36 },
376{ "sync_file_range", 314 },
377{ "syncfs", 344 },
378{ "sysfs", 135 },
379{ "sysinfo", 116 },
380{ "syslog", 103 },
381{ "tee", 315 },
382{ "tgkill", 270 },
383{ "time", 13 },
384{ "timer_create", 259 },
385{ "timer_delete", 263 },
386{ "timer_getoverrun", 262 },
387{ "timer_gettime", 261 },
388{ "timer_gettime64", 408 }, 398{ "timer_gettime64", 408 },
389{ "timer_settime", 260 },
390{ "timer_settime64", 409 }, 399{ "timer_settime64", 409 },
391{ "timerfd_create", 322 },
392{ "timerfd_gettime", 326 },
393{ "timerfd_gettime64", 410 }, 400{ "timerfd_gettime64", 410 },
394{ "timerfd_settime", 325 },
395{ "timerfd_settime64", 411 }, 401{ "timerfd_settime64", 411 },
396{ "times", 43 },
397{ "tkill", 238 },
398{ "truncate", 92 },
399{ "truncate64", 193 },
400{ "ugetrlimit", 191 },
401{ "ulimit", 58 },
402{ "umask", 60 },
403{ "umount", 22 },
404{ "umount2", 52 },
405{ "uname", 122 },
406{ "unlink", 10 },
407{ "unlinkat", 301 },
408{ "unshare", 310 },
409{ "uselib", 86 },
410{ "userfaultfd", 374 },
411{ "ustat", 62 },
412{ "utime", 30 },
413{ "utimensat", 320 },
414{ "utimensat_time64", 412 }, 402{ "utimensat_time64", 412 },
415{ "utimes", 271 }, 403{ "pselect6_time64", 413 },
416{ "vfork", 190 }, 404{ "ppoll_time64", 414 },
417{ "vhangup", 111 }, 405{ "io_pgetevents_time64", 416 },
418{ "vm86", 166 }, 406{ "recvmmsg_time64", 417 },
419{ "vm86old", 113 }, 407{ "mq_timedsend_time64", 418 },
420{ "vmsplice", 316 }, 408{ "mq_timedreceive_time64", 419 },
421{ "vserver", 273 }, 409{ "semtimedop_time64", 420 },
422{ "wait4", 114 }, 410{ "rt_sigtimedwait_time64", 421 },
423{ "waitid", 284 }, 411{ "futex_time64", 422 },
424{ "waitpid", 7 }, 412{ "sched_rr_get_interval_time64", 423 },
425{ "write", 4 }, 413{ "pidfd_send_signal", 424 },
426{ "writev", 146 }, 414{ "io_uring_setup", 425 },
415{ "io_uring_enter", 426 },
416{ "io_uring_register", 427 },
417{ "open_tree", 428 },
418{ "move_mount", 429 },
419{ "fsopen", 430 },
420{ "fsconfig", 431 },
421{ "fsmount", 432 },
422{ "fspick", 433 },
423{ "pidfd_open", 434 },
424{ "clone3", 435 },
425{ "close_range", 436 },
426{ "openat2", 437 },
427{ "pidfd_getfd", 438 },
428{ "faccessat2", 439 },
429{ "process_madvise", 440 },
diff --git a/src/include/syscall_x86_64.h b/src/include/syscall_x86_64.h
index 97f2762b1..5b6ef84b4 100644
--- a/src/include/syscall_x86_64.h
+++ b/src/include/syscall_x86_64.h
@@ -1,348 +1,352 @@
1{ "_sysctl", 156 }, 1{ "read", 0 },
2{ "accept", 43 }, 2{ "write", 1 },
3{ "accept4", 288 }, 3{ "open", 2 },
4{ "close", 3 },
5{ "stat", 4 },
6{ "fstat", 5 },
7{ "lstat", 6 },
8{ "poll", 7 },
9{ "lseek", 8 },
10{ "mmap", 9 },
11{ "mprotect", 10 },
12{ "munmap", 11 },
13{ "brk", 12 },
14{ "rt_sigaction", 13 },
15{ "rt_sigprocmask", 14 },
16{ "rt_sigreturn", 15 },
17{ "ioctl", 16 },
18{ "pread64", 17 },
19{ "pwrite64", 18 },
20{ "readv", 19 },
21{ "writev", 20 },
4{ "access", 21 }, 22{ "access", 21 },
5{ "acct", 163 }, 23{ "pipe", 22 },
6{ "add_key", 248 }, 24{ "select", 23 },
7{ "adjtimex", 159 }, 25{ "sched_yield", 24 },
8{ "afs_syscall", 183 }, 26{ "mremap", 25 },
27{ "msync", 26 },
28{ "mincore", 27 },
29{ "madvise", 28 },
30{ "shmget", 29 },
31{ "shmat", 30 },
32{ "shmctl", 31 },
33{ "dup", 32 },
34{ "dup2", 33 },
35{ "pause", 34 },
36{ "nanosleep", 35 },
37{ "getitimer", 36 },
9{ "alarm", 37 }, 38{ "alarm", 37 },
10{ "arch_prctl", 158 }, 39{ "setitimer", 38 },
40{ "getpid", 39 },
41{ "sendfile", 40 },
42{ "socket", 41 },
43{ "connect", 42 },
44{ "accept", 43 },
45{ "sendto", 44 },
46{ "recvfrom", 45 },
47{ "sendmsg", 46 },
48{ "recvmsg", 47 },
49{ "shutdown", 48 },
11{ "bind", 49 }, 50{ "bind", 49 },
12{ "bpf", 321 }, 51{ "listen", 50 },
13{ "brk", 12 }, 52{ "getsockname", 51 },
14{ "capget", 125 }, 53{ "getpeername", 52 },
15{ "capset", 126 }, 54{ "socketpair", 53 },
16{ "chdir", 80 }, 55{ "setsockopt", 54 },
17{ "chmod", 90 }, 56{ "getsockopt", 55 },
18{ "chown", 92 },
19{ "chroot", 161 },
20{ "clock_adjtime", 305 },
21{ "clock_getres", 229 },
22{ "clock_gettime", 228 },
23{ "clock_nanosleep", 230 },
24{ "clock_settime", 227 },
25{ "clone", 56 }, 57{ "clone", 56 },
26{ "clone3", 435 }, 58{ "fork", 57 },
27{ "close", 3 }, 59{ "vfork", 58 },
28{ "connect", 42 },
29{ "copy_file_range", 326 },
30{ "creat", 85 },
31{ "create_module", 174 },
32{ "delete_module", 176 },
33{ "dup", 32 },
34{ "dup2", 33 },
35{ "dup3", 292 },
36{ "epoll_create", 213 },
37{ "epoll_create1", 291 },
38{ "epoll_ctl", 233 },
39{ "epoll_ctl_old", 214 },
40{ "epoll_pwait", 281 },
41{ "epoll_wait", 232 },
42{ "epoll_wait_old", 215 },
43{ "eventfd", 284 },
44{ "eventfd2", 290 },
45{ "execve", 59 }, 60{ "execve", 59 },
46{ "execveat", 322 },
47{ "exit", 60 }, 61{ "exit", 60 },
48{ "exit_group", 231 }, 62{ "wait4", 61 },
49{ "faccessat", 269 }, 63{ "kill", 62 },
50{ "faccessat2", 439 }, 64{ "uname", 63 },
51{ "fadvise64", 221 }, 65{ "semget", 64 },
52{ "fallocate", 285 }, 66{ "semop", 65 },
53{ "fanotify_init", 300 }, 67{ "semctl", 66 },
54{ "fanotify_mark", 301 }, 68{ "shmdt", 67 },
55{ "fchdir", 81 }, 69{ "msgget", 68 },
56{ "fchmod", 91 }, 70{ "msgsnd", 69 },
57{ "fchmodat", 268 }, 71{ "msgrcv", 70 },
58{ "fchown", 93 }, 72{ "msgctl", 71 },
59{ "fchownat", 260 },
60{ "fcntl", 72 }, 73{ "fcntl", 72 },
61{ "fdatasync", 75 },
62{ "fgetxattr", 193 },
63{ "finit_module", 313 },
64{ "flistxattr", 196 },
65{ "flock", 73 }, 74{ "flock", 73 },
66{ "fork", 57 },
67{ "fremovexattr", 199 },
68{ "fsconfig", 431 },
69{ "fsetxattr", 190 },
70{ "fsmount", 432 },
71{ "fsopen", 430 },
72{ "fspick", 433 },
73{ "fstat", 5 },
74{ "fstatfs", 138 },
75{ "fsync", 74 }, 75{ "fsync", 74 },
76{ "fdatasync", 75 },
77{ "truncate", 76 },
76{ "ftruncate", 77 }, 78{ "ftruncate", 77 },
77{ "futex", 202 },
78{ "futimesat", 261 },
79{ "get_kernel_syms", 177 },
80{ "get_mempolicy", 239 },
81{ "get_robust_list", 274 },
82{ "get_thread_area", 211 },
83{ "getcpu", 309 },
84{ "getcwd", 79 },
85{ "getdents", 78 }, 79{ "getdents", 78 },
86{ "getdents64", 217 }, 80{ "getcwd", 79 },
87{ "getegid", 108 }, 81{ "chdir", 80 },
88{ "geteuid", 107 }, 82{ "fchdir", 81 },
83{ "rename", 82 },
84{ "mkdir", 83 },
85{ "rmdir", 84 },
86{ "creat", 85 },
87{ "link", 86 },
88{ "unlink", 87 },
89{ "symlink", 88 },
90{ "readlink", 89 },
91{ "chmod", 90 },
92{ "fchmod", 91 },
93{ "chown", 92 },
94{ "fchown", 93 },
95{ "lchown", 94 },
96{ "umask", 95 },
97{ "gettimeofday", 96 },
98{ "getrlimit", 97 },
99{ "getrusage", 98 },
100{ "sysinfo", 99 },
101{ "times", 100 },
102{ "ptrace", 101 },
103{ "getuid", 102 },
104{ "syslog", 103 },
89{ "getgid", 104 }, 105{ "getgid", 104 },
90{ "getgroups", 115 }, 106{ "setuid", 105 },
91{ "getitimer", 36 }, 107{ "setgid", 106 },
92{ "getpeername", 52 }, 108{ "geteuid", 107 },
93{ "getpgid", 121 }, 109{ "getegid", 108 },
94{ "getpgrp", 111 }, 110{ "setpgid", 109 },
95{ "getpid", 39 },
96{ "getpmsg", 181 },
97{ "getppid", 110 }, 111{ "getppid", 110 },
98{ "getpriority", 140 }, 112{ "getpgrp", 111 },
99{ "getrandom", 318 }, 113{ "setsid", 112 },
100{ "getresgid", 120 }, 114{ "setreuid", 113 },
115{ "setregid", 114 },
116{ "getgroups", 115 },
117{ "setgroups", 116 },
118{ "setresuid", 117 },
101{ "getresuid", 118 }, 119{ "getresuid", 118 },
102{ "getrlimit", 97 }, 120{ "setresgid", 119 },
103{ "getrusage", 98 }, 121{ "getresgid", 120 },
122{ "getpgid", 121 },
123{ "setfsuid", 122 },
124{ "setfsgid", 123 },
104{ "getsid", 124 }, 125{ "getsid", 124 },
105{ "getsockname", 51 }, 126{ "capget", 125 },
106{ "getsockopt", 55 }, 127{ "capset", 126 },
107{ "gettid", 186 }, 128{ "rt_sigpending", 127 },
108{ "gettimeofday", 96 }, 129{ "rt_sigtimedwait", 128 },
109{ "getuid", 102 }, 130{ "rt_sigqueueinfo", 129 },
110{ "getxattr", 191 }, 131{ "rt_sigsuspend", 130 },
111{ "init_module", 175 }, 132{ "sigaltstack", 131 },
112{ "inotify_add_watch", 254 }, 133{ "utime", 132 },
113{ "inotify_init", 253 },
114{ "inotify_init1", 294 },
115{ "inotify_rm_watch", 255 },
116{ "io_cancel", 210 },
117{ "io_destroy", 207 },
118{ "io_getevents", 208 },
119{ "io_pgetevents", 333 },
120{ "io_setup", 206 },
121{ "io_submit", 209 },
122{ "io_uring_enter", 426 },
123{ "io_uring_register", 427 },
124{ "io_uring_setup", 425 },
125{ "ioctl", 16 },
126{ "ioperm", 173 },
127{ "iopl", 172 },
128{ "ioprio_get", 252 },
129{ "ioprio_set", 251 },
130{ "kcmp", 312 },
131{ "kexec_file_load", 320 },
132{ "kexec_load", 246 },
133{ "keyctl", 250 },
134{ "kill", 62 },
135{ "lchown", 94 },
136{ "lgetxattr", 192 },
137{ "link", 86 },
138{ "linkat", 265 },
139{ "listen", 50 },
140{ "listxattr", 194 },
141{ "llistxattr", 195 },
142{ "lookup_dcookie", 212 },
143{ "lremovexattr", 198 },
144{ "lseek", 8 },
145{ "lsetxattr", 189 },
146{ "lstat", 6 },
147{ "madvise", 28 },
148{ "mbind", 237 },
149{ "membarrier", 324 },
150{ "memfd_create", 319 },
151{ "migrate_pages", 256 },
152{ "mincore", 27 },
153{ "mkdir", 83 },
154{ "mkdirat", 258 },
155{ "mknod", 133 }, 134{ "mknod", 133 },
156{ "mknodat", 259 }, 135{ "uselib", 134 },
136{ "personality", 135 },
137{ "ustat", 136 },
138{ "statfs", 137 },
139{ "fstatfs", 138 },
140{ "sysfs", 139 },
141{ "getpriority", 140 },
142{ "setpriority", 141 },
143{ "sched_setparam", 142 },
144{ "sched_getparam", 143 },
145{ "sched_setscheduler", 144 },
146{ "sched_getscheduler", 145 },
147{ "sched_get_priority_max", 146 },
148{ "sched_get_priority_min", 147 },
149{ "sched_rr_get_interval", 148 },
157{ "mlock", 149 }, 150{ "mlock", 149 },
158{ "mlock2", 325 },
159{ "mlockall", 151 },
160{ "mmap", 9 },
161{ "modify_ldt", 154 },
162{ "mount", 165 },
163{ "move_mount", 429 },
164{ "move_pages", 279 },
165{ "mprotect", 10 },
166{ "mq_getsetattr", 245 },
167{ "mq_notify", 244 },
168{ "mq_open", 240 },
169{ "mq_timedreceive", 243 },
170{ "mq_timedsend", 242 },
171{ "mq_unlink", 241 },
172{ "mremap", 25 },
173{ "msgctl", 71 },
174{ "msgget", 68 },
175{ "msgrcv", 70 },
176{ "msgsnd", 69 },
177{ "msync", 26 },
178{ "munlock", 150 }, 151{ "munlock", 150 },
152{ "mlockall", 151 },
179{ "munlockall", 152 }, 153{ "munlockall", 152 },
180{ "munmap", 11 }, 154{ "vhangup", 153 },
181{ "name_to_handle_at", 303 }, 155{ "modify_ldt", 154 },
182{ "nanosleep", 35 },
183{ "newfstatat", 262 },
184{ "nfsservctl", 180 },
185{ "open", 2 },
186{ "open_by_handle_at", 304 },
187{ "open_tree", 428 },
188{ "openat", 257 },
189{ "pause", 34 },
190{ "perf_event_open", 298 },
191{ "personality", 135 },
192{ "pidfd_open", 434 },
193{ "pidfd_send_signal", 424 },
194{ "pipe", 22 },
195{ "pipe2", 293 },
196{ "pivot_root", 155 }, 156{ "pivot_root", 155 },
197{ "pkey_alloc", 330 }, 157{ "_sysctl", 156 },
198{ "pkey_free", 331 },
199{ "pkey_mprotect", 329 },
200{ "poll", 7 },
201{ "ppoll", 271 },
202{ "prctl", 157 }, 158{ "prctl", 157 },
203{ "pread64", 17 }, 159{ "arch_prctl", 158 },
204{ "preadv", 295 }, 160{ "adjtimex", 159 },
205{ "preadv2", 327 }, 161{ "setrlimit", 160 },
206{ "prlimit64", 302 }, 162{ "chroot", 161 },
207{ "process_vm_readv", 310 }, 163{ "sync", 162 },
208{ "process_vm_writev", 311 }, 164{ "acct", 163 },
209{ "pselect6", 270 }, 165{ "settimeofday", 164 },
210{ "ptrace", 101 }, 166{ "mount", 165 },
211{ "putpmsg", 182 }, 167{ "umount2", 166 },
212{ "pwrite64", 18 }, 168{ "swapon", 167 },
213{ "pwritev", 296 }, 169{ "swapoff", 168 },
214{ "pwritev2", 328 }, 170{ "reboot", 169 },
171{ "sethostname", 170 },
172{ "setdomainname", 171 },
173{ "iopl", 172 },
174{ "ioperm", 173 },
175{ "create_module", 174 },
176{ "init_module", 175 },
177{ "delete_module", 176 },
178{ "get_kernel_syms", 177 },
215{ "query_module", 178 }, 179{ "query_module", 178 },
216{ "quotactl", 179 }, 180{ "quotactl", 179 },
217{ "read", 0 }, 181{ "nfsservctl", 180 },
182{ "getpmsg", 181 },
183{ "putpmsg", 182 },
184{ "afs_syscall", 183 },
185{ "tuxcall", 184 },
186{ "security", 185 },
187{ "gettid", 186 },
218{ "readahead", 187 }, 188{ "readahead", 187 },
219{ "readlink", 89 }, 189{ "setxattr", 188 },
220{ "readlinkat", 267 }, 190{ "lsetxattr", 189 },
221{ "readv", 19 }, 191{ "fsetxattr", 190 },
222{ "reboot", 169 }, 192{ "getxattr", 191 },
223{ "recvfrom", 45 }, 193{ "lgetxattr", 192 },
224{ "recvmmsg", 299 }, 194{ "fgetxattr", 193 },
225{ "recvmsg", 47 }, 195{ "listxattr", 194 },
226{ "remap_file_pages", 216 }, 196{ "llistxattr", 195 },
197{ "flistxattr", 196 },
227{ "removexattr", 197 }, 198{ "removexattr", 197 },
228{ "rename", 82 }, 199{ "lremovexattr", 198 },
229{ "renameat", 264 }, 200{ "fremovexattr", 199 },
230{ "renameat2", 316 }, 201{ "tkill", 200 },
231{ "request_key", 249 }, 202{ "time", 201 },
232{ "restart_syscall", 219 }, 203{ "futex", 202 },
233{ "rmdir", 84 },
234{ "rseq", 334 },
235{ "rt_sigaction", 13 },
236{ "rt_sigpending", 127 },
237{ "rt_sigprocmask", 14 },
238{ "rt_sigqueueinfo", 129 },
239{ "rt_sigreturn", 15 },
240{ "rt_sigsuspend", 130 },
241{ "rt_sigtimedwait", 128 },
242{ "rt_tgsigqueueinfo", 297 },
243{ "sched_get_priority_max", 146 },
244{ "sched_get_priority_min", 147 },
245{ "sched_getaffinity", 204 },
246{ "sched_getattr", 315 },
247{ "sched_getparam", 143 },
248{ "sched_getscheduler", 145 },
249{ "sched_rr_get_interval", 148 },
250{ "sched_setaffinity", 203 }, 204{ "sched_setaffinity", 203 },
251{ "sched_setattr", 314 }, 205{ "sched_getaffinity", 204 },
252{ "sched_setparam", 142 }, 206{ "set_thread_area", 205 },
253{ "sched_setscheduler", 144 }, 207{ "io_setup", 206 },
254{ "sched_yield", 24 }, 208{ "io_destroy", 207 },
255{ "seccomp", 317 }, 209{ "io_getevents", 208 },
256{ "security", 185 }, 210{ "io_submit", 209 },
257{ "select", 23 }, 211{ "io_cancel", 210 },
258{ "semctl", 66 }, 212{ "get_thread_area", 211 },
259{ "semget", 64 }, 213{ "lookup_dcookie", 212 },
260{ "semop", 65 }, 214{ "epoll_create", 213 },
215{ "epoll_ctl_old", 214 },
216{ "epoll_wait_old", 215 },
217{ "remap_file_pages", 216 },
218{ "getdents64", 217 },
219{ "set_tid_address", 218 },
220{ "restart_syscall", 219 },
261{ "semtimedop", 220 }, 221{ "semtimedop", 220 },
262{ "sendfile", 40 }, 222{ "fadvise64", 221 },
263{ "sendmmsg", 307 }, 223{ "timer_create", 222 },
264{ "sendmsg", 46 }, 224{ "timer_settime", 223 },
265{ "sendto", 44 }, 225{ "timer_gettime", 224 },
226{ "timer_getoverrun", 225 },
227{ "timer_delete", 226 },
228{ "clock_settime", 227 },
229{ "clock_gettime", 228 },
230{ "clock_getres", 229 },
231{ "clock_nanosleep", 230 },
232{ "exit_group", 231 },
233{ "epoll_wait", 232 },
234{ "epoll_ctl", 233 },
235{ "tgkill", 234 },
236{ "utimes", 235 },
237{ "vserver", 236 },
238{ "mbind", 237 },
266{ "set_mempolicy", 238 }, 239{ "set_mempolicy", 238 },
240{ "get_mempolicy", 239 },
241{ "mq_open", 240 },
242{ "mq_unlink", 241 },
243{ "mq_timedsend", 242 },
244{ "mq_timedreceive", 243 },
245{ "mq_notify", 244 },
246{ "mq_getsetattr", 245 },
247{ "kexec_load", 246 },
248{ "waitid", 247 },
249{ "add_key", 248 },
250{ "request_key", 249 },
251{ "keyctl", 250 },
252{ "ioprio_set", 251 },
253{ "ioprio_get", 252 },
254{ "inotify_init", 253 },
255{ "inotify_add_watch", 254 },
256{ "inotify_rm_watch", 255 },
257{ "migrate_pages", 256 },
258{ "openat", 257 },
259{ "mkdirat", 258 },
260{ "mknodat", 259 },
261{ "fchownat", 260 },
262{ "futimesat", 261 },
263{ "newfstatat", 262 },
264{ "unlinkat", 263 },
265{ "renameat", 264 },
266{ "linkat", 265 },
267{ "symlinkat", 266 },
268{ "readlinkat", 267 },
269{ "fchmodat", 268 },
270{ "faccessat", 269 },
271{ "pselect6", 270 },
272{ "ppoll", 271 },
273{ "unshare", 272 },
267{ "set_robust_list", 273 }, 274{ "set_robust_list", 273 },
268{ "set_thread_area", 205 }, 275{ "get_robust_list", 274 },
269{ "set_tid_address", 218 },
270{ "setdomainname", 171 },
271{ "setfsgid", 123 },
272{ "setfsuid", 122 },
273{ "setgid", 106 },
274{ "setgroups", 116 },
275{ "sethostname", 170 },
276{ "setitimer", 38 },
277{ "setns", 308 },
278{ "setpgid", 109 },
279{ "setpriority", 141 },
280{ "setregid", 114 },
281{ "setresgid", 119 },
282{ "setresuid", 117 },
283{ "setreuid", 113 },
284{ "setrlimit", 160 },
285{ "setsid", 112 },
286{ "setsockopt", 54 },
287{ "settimeofday", 164 },
288{ "setuid", 105 },
289{ "setxattr", 188 },
290{ "shmat", 30 },
291{ "shmctl", 31 },
292{ "shmdt", 67 },
293{ "shmget", 29 },
294{ "shutdown", 48 },
295{ "sigaltstack", 131 },
296{ "signalfd", 282 },
297{ "signalfd4", 289 },
298{ "socket", 41 },
299{ "socketpair", 53 },
300{ "splice", 275 }, 276{ "splice", 275 },
301{ "stat", 4 },
302{ "statfs", 137 },
303{ "statx", 332 },
304{ "swapoff", 168 },
305{ "swapon", 167 },
306{ "symlink", 88 },
307{ "symlinkat", 266 },
308{ "sync", 162 },
309{ "sync_file_range", 277 },
310{ "syncfs", 306 },
311{ "sysfs", 139 },
312{ "sysinfo", 99 },
313{ "syslog", 103 },
314{ "tee", 276 }, 277{ "tee", 276 },
315{ "tgkill", 234 }, 278{ "sync_file_range", 277 },
316{ "time", 201 }, 279{ "vmsplice", 278 },
317{ "timer_create", 222 }, 280{ "move_pages", 279 },
318{ "timer_delete", 226 }, 281{ "utimensat", 280 },
319{ "timer_getoverrun", 225 }, 282{ "epoll_pwait", 281 },
320{ "timer_gettime", 224 }, 283{ "signalfd", 282 },
321{ "timer_settime", 223 },
322{ "timerfd_create", 283 }, 284{ "timerfd_create", 283 },
323{ "timerfd_gettime", 287 }, 285{ "eventfd", 284 },
286{ "fallocate", 285 },
324{ "timerfd_settime", 286 }, 287{ "timerfd_settime", 286 },
325{ "times", 100 }, 288{ "timerfd_gettime", 287 },
326{ "tkill", 200 }, 289{ "accept4", 288 },
327{ "truncate", 76 }, 290{ "signalfd4", 289 },
328{ "tuxcall", 184 }, 291{ "eventfd2", 290 },
329{ "umask", 95 }, 292{ "epoll_create1", 291 },
330{ "umount2", 166 }, 293{ "dup3", 292 },
331{ "uname", 63 }, 294{ "pipe2", 293 },
332{ "unlink", 87 }, 295{ "inotify_init1", 294 },
333{ "unlinkat", 263 }, 296{ "preadv", 295 },
334{ "unshare", 272 }, 297{ "pwritev", 296 },
335{ "uselib", 134 }, 298{ "rt_tgsigqueueinfo", 297 },
299{ "perf_event_open", 298 },
300{ "recvmmsg", 299 },
301{ "fanotify_init", 300 },
302{ "fanotify_mark", 301 },
303{ "prlimit64", 302 },
304{ "name_to_handle_at", 303 },
305{ "open_by_handle_at", 304 },
306{ "clock_adjtime", 305 },
307{ "syncfs", 306 },
308{ "sendmmsg", 307 },
309{ "setns", 308 },
310{ "getcpu", 309 },
311{ "process_vm_readv", 310 },
312{ "process_vm_writev", 311 },
313{ "kcmp", 312 },
314{ "finit_module", 313 },
315{ "sched_setattr", 314 },
316{ "sched_getattr", 315 },
317{ "renameat2", 316 },
318{ "seccomp", 317 },
319{ "getrandom", 318 },
320{ "memfd_create", 319 },
321{ "kexec_file_load", 320 },
322{ "bpf", 321 },
323{ "execveat", 322 },
336{ "userfaultfd", 323 }, 324{ "userfaultfd", 323 },
337{ "ustat", 136 }, 325{ "membarrier", 324 },
338{ "utime", 132 }, 326{ "mlock2", 325 },
339{ "utimensat", 280 }, 327{ "copy_file_range", 326 },
340{ "utimes", 235 }, 328{ "preadv2", 327 },
341{ "vfork", 58 }, 329{ "pwritev2", 328 },
342{ "vhangup", 153 }, 330{ "pkey_mprotect", 329 },
343{ "vmsplice", 278 }, 331{ "pkey_alloc", 330 },
344{ "vserver", 236 }, 332{ "pkey_free", 331 },
345{ "wait4", 61 }, 333{ "statx", 332 },
346{ "waitid", 247 }, 334{ "io_pgetevents", 333 },
347{ "write", 1 }, 335{ "rseq", 334 },
348{ "writev", 20 }, 336{ "pidfd_send_signal", 424 },
337{ "io_uring_setup", 425 },
338{ "io_uring_enter", 426 },
339{ "io_uring_register", 427 },
340{ "open_tree", 428 },
341{ "move_mount", 429 },
342{ "fsopen", 430 },
343{ "fsconfig", 431 },
344{ "fsmount", 432 },
345{ "fspick", 433 },
346{ "pidfd_open", 434 },
347{ "clone3", 435 },
348{ "close_range", 436 },
349{ "openat2", 437 },
350{ "pidfd_getfd", 438 },
351{ "faccessat2", 439 },
352{ "process_madvise", 440 },
diff --git a/src/lib/ldd_utils.c b/src/lib/ldd_utils.c
index bc4f7cf9c..a50b759c3 100644
--- a/src/lib/ldd_utils.c
+++ b/src/lib/ldd_utils.c
@@ -47,7 +47,7 @@ int is_lib_64(const char *exe) {
47 if (fd < 0) 47 if (fd < 0)
48 return 0; 48 return 0;
49 49
50 unsigned char buf[EI_NIDENT]; 50 unsigned char buf[EI_NIDENT] = {0};
51 ssize_t len = 0; 51 ssize_t len = 0;
52 while (len < EI_NIDENT) { 52 while (len < EI_NIDENT) {
53 ssize_t sz = read(fd, buf + len, EI_NIDENT - len); 53 ssize_t sz = read(fd, buf + len, EI_NIDENT - len);
diff --git a/src/lib/syscall.c b/src/lib/syscall.c
index a17f6423a..29cf6318f 100644
--- a/src/lib/syscall.c
+++ b/src/lib/syscall.c
@@ -92,7 +92,16 @@ static const SyscallGroupList sysgroups[] = {
92 "io_setup," 92 "io_setup,"
93#endif 93#endif
94#ifdef SYS_io_submit 94#ifdef SYS_io_submit
95 "io_submit" 95 "io_submit,"
96#endif
97#ifdef SYS_io_uring_enter
98 "io_uring_enter,"
99#endif
100#ifdef SYS_io_uring_register
101 "io_uring_register,"
102#endif
103#ifdef SYS_io_uring_setup
104 "io_uring_setup"
96#endif 105#endif
97 }, 106 },
98 { .name = "@basic-io", .list = 107 { .name = "@basic-io", .list =
@@ -102,6 +111,9 @@ static const SyscallGroupList sysgroups[] = {
102#ifdef SYS_close 111#ifdef SYS_close
103 "close," 112 "close,"
104#endif 113#endif
114#ifdef SYS_close_range
115 "close_range,"
116#endif
105#ifdef SYS_dup 117#ifdef SYS_dup
106 "dup," 118 "dup,"
107#endif 119#endif
@@ -212,6 +224,9 @@ static const SyscallGroupList sysgroups[] = {
212#ifdef SYS_perf_event_open 224#ifdef SYS_perf_event_open
213 "perf_event_open," 225 "perf_event_open,"
214#endif 226#endif
227#ifdef SYS_pidfd_getfd
228 "pidfd_getfd,"
229#endif
215#ifdef SYS_process_vm_writev 230#ifdef SYS_process_vm_writev
216 "process_vm_writev," 231 "process_vm_writev,"
217#endif 232#endif
@@ -290,7 +305,7 @@ static const SyscallGroupList sysgroups[] = {
290 "remap_file_pages," 305 "remap_file_pages,"
291#endif 306#endif
292#ifdef SYS_set_mempolicy 307#ifdef SYS_set_mempolicy
293 "set_mempolicy" 308 "set_mempolicy,"
294#endif 309#endif
295#ifdef SYS_vmsplice 310#ifdef SYS_vmsplice
296 "vmsplice," 311 "vmsplice,"
@@ -350,6 +365,9 @@ static const SyscallGroupList sysgroups[] = {
350#ifdef SYS_close 365#ifdef SYS_close
351 "close," 366 "close,"
352#endif 367#endif
368#ifdef SYS_close_range
369 "close_range,"
370#endif
353#ifdef SYS_creat 371#ifdef SYS_creat
354 "creat," 372 "creat,"
355#endif 373#endif
@@ -503,6 +521,9 @@ static const SyscallGroupList sysgroups[] = {
503#ifdef SYS_openat 521#ifdef SYS_openat
504 "openat," 522 "openat,"
505#endif 523#endif
524#ifdef SYS_openat2
525 "openat2,"
526#endif
506#ifdef SYS_readlink 527#ifdef SYS_readlink
507 "readlink," 528 "readlink,"
508#endif 529#endif
@@ -657,6 +678,9 @@ static const SyscallGroupList sysgroups[] = {
657#ifdef SYS_pipe2 678#ifdef SYS_pipe2
658 "pipe2," 679 "pipe2,"
659#endif 680#endif
681#ifdef SYS_process_madvise
682 "process_madvise,"
683#endif
660#ifdef SYS_process_vm_readv 684#ifdef SYS_process_vm_readv
661 "process_vm_readv," 685 "process_vm_readv,"
662#endif 686#endif
@@ -731,9 +755,27 @@ static const SyscallGroupList sysgroups[] = {
731#ifdef SYS_chroot 755#ifdef SYS_chroot
732 "chroot," 756 "chroot,"
733#endif 757#endif
758#ifdef SYS_fsconfig
759 "fsconfig,"
760#endif
761#ifdef SYS_fsmount
762 "fsmount,"
763#endif
764#ifdef SYS_fsopen
765 "fsopen,"
766#endif
767#ifdef SYS_fspick
768 "fspick,"
769#endif
734#ifdef SYS_mount 770#ifdef SYS_mount
735 "mount," 771 "mount,"
736#endif 772#endif
773#ifdef SYS_move_mount
774 "move_mount,"
775#endif
776#ifdef SYS_open_tree
777 "open_tree,"
778#endif
737#ifdef SYS_pivot_root 779#ifdef SYS_pivot_root
738 "pivot_root," 780 "pivot_root,"
739#endif 781#endif
@@ -985,6 +1027,9 @@ static const SyscallGroupList sysgroups[] = {
985#ifdef SYS_clone 1027#ifdef SYS_clone
986 "clone," 1028 "clone,"
987#endif 1029#endif
1030#ifdef SYS_clone3
1031 "clone3,"
1032#endif
988#ifdef SYS_execveat 1033#ifdef SYS_execveat
989 "execveat," 1034 "execveat,"
990#endif 1035#endif
@@ -997,6 +1042,9 @@ static const SyscallGroupList sysgroups[] = {
997#ifdef SYS_kill 1042#ifdef SYS_kill
998 "kill," 1043 "kill,"
999#endif 1044#endif
1045#ifdef SYS_pidfd_open
1046 "pidfd_open,"
1047#endif
1000#ifdef SYS_pidfd_send_signal 1048#ifdef SYS_pidfd_send_signal
1001 "pidfd_send_signal," 1049 "pidfd_send_signal,"
1002#endif 1050#endif
diff --git a/test/Makefile b/test/Makefile
index 2f3a97d73..2c376da58 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -3,7 +3,7 @@ TESTS=$(patsubst %/,%,$(wildcard */))
3.PHONY: $(TESTS) 3.PHONY: $(TESTS)
4$(TESTS): 4$(TESTS):
5 cd $@ && ./$@.sh 2>&1 | tee $@.log 5 cd $@ && ./$@.sh 2>&1 | tee $@.log
6 cd $@ && grep -a TESTING $@.log && grep -a -L "TESTING ERROR" $@.log 6 cd $@ && grep -a TESTING $@.log && ! grep -a -q "TESTING ERROR" $@.log
7 7
8.PHONY: clean 8.PHONY: clean
9clean: 9clean:
diff --git a/test/environment/dns.exp b/test/environment/dns.exp
index b5a8c119b..2c00cfa1c 100755
--- a/test/environment/dns.exp
+++ b/test/environment/dns.exp
@@ -110,23 +110,23 @@ expect {
110send -- "exit\r" 110send -- "exit\r"
111sleep 1 111sleep 1
112 112
113send -- "firejail --trace --dns=208.67.222.222 wget -q debian.org\r" 113# test disabled, as Github CI uses systemd-resolved, which does not work
114expect { 114# properly with --dns=, so curl does not use the specified nameserver
115 timeout {puts "TESTING ERROR 6.1\n";exit} 115#send -- "firejail --trace --dns=208.67.222.222 -- curl --silent --output /dev/null debian.org\r"
116 "connect" 116#expect {
117} 117# timeout {puts "TESTING ERROR 6.1\n";exit}
118expect { 118# "connect"
119 timeout {puts "TESTING ERROR 6.2\n";exit} 119#}
120 "208.67.222.222" 120#expect {
121} 121# timeout {puts "TESTING ERROR 6.2\n";exit}
122expect { 122# "208.67.222.222"
123 timeout {puts "TESTING ERROR 6.3\n";exit} 123#}
124 "53" 124#expect {
125} 125# timeout {puts "TESTING ERROR 6.3\n";exit}
126after 100 126# "53"
127#}
128#after 100
127 129
128send -- "rm index.html\r"
129after 100
130send -- "exit\r" 130send -- "exit\r"
131sleep 1 131sleep 1
132 132
diff --git a/test/sysutils/less.exp b/test/sysutils/less.exp
index e6698eab0..01a298fe0 100755
--- a/test/sysutils/less.exp
+++ b/test/sysutils/less.exp
@@ -11,6 +11,7 @@ send -- "firejail less sysutils.sh\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 1\n";exit} 12 timeout {puts "TESTING ERROR 1\n";exit}
13 "(press RETURN)" {puts "TESTING SKIP 1.1\n";exit} 13 "(press RETURN)" {puts "TESTING SKIP 1.1\n";exit}
14 "Press RETURN to continue" {puts "TESTING SKIP 1.2\n";exit}
14 "MALLOC_CHECK" 15 "MALLOC_CHECK"
15} 16}
16expect { 17expect {
diff --git a/test/utils/man.exp b/test/utils/man.exp
index 3a0ca46d6..f62859a8f 100755
--- a/test/utils/man.exp
+++ b/test/utils/man.exp
@@ -11,6 +11,7 @@ send -- "man firejail\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 12 timeout {puts "TESTING ERROR 0\n";exit}
13 "(press RETURN)" {puts "TESTING SKIP 1.1\n";exit} 13 "(press RETURN)" {puts "TESTING SKIP 1.1\n";exit}
14 "Press RETURN to continue" {puts "TESTING SKIP 1.2\n";exit}
14 "Linux namespaces sandbox program" 15 "Linux namespaces sandbox program"
15} 16}
16after 100 17after 100
diff --git a/test/utils/trace.exp b/test/utils/trace.exp
index f14001c88..beb59d337 100755
--- a/test/utils/trace.exp
+++ b/test/utils/trace.exp
@@ -68,10 +68,6 @@ expect {
68 "wget:fopen /etc/wgetrc" {puts "OK\n";} 68 "wget:fopen /etc/wgetrc" {puts "OK\n";}
69} 69}
70expect { 70expect {
71 timeout {puts "TESTING ERROR 8.4\n";exit}
72 "wget:fopen /etc/hosts"
73}
74expect {
75 timeout {puts "TESTING ERROR 8.5\n";exit} 71 timeout {puts "TESTING ERROR 8.5\n";exit}
76 "wget:connect" 72 "wget:connect"
77} 73}