-
Notifications
You must be signed in to change notification settings - Fork 10
/
vu_syscalls.conf
100 lines (96 loc) · 4.7 KB
/
vu_syscalls.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Syscalls supported by UMView
# syscall_list: choice, wrapIN, wrapDURING, wrapOUT
# each syscall name has a parameter (/ followed by three octal digits)
# APN: A is 1 if this is an "l" call (lstat, lchown... not following the symlinks)
# A is 2 if this is an "at" call (openat, fstatat... using a path and a dirfd)
# A is 3 for special cases e.g. at supporting AT_SYMLINK_NOFOLLOW)
# P is the path argument (used by the choice fun, the dirfd arg in case of at calls)
# N is the number of arguments
# when the parameter is omitter it is 000.
# e.g. fork (no parameter, zero args, no path)
# write/3 (3 parameters, no path)
# stat/12 (2 parameters, the first being the path)
# lstat/112 (2 parameters, the first being the path, do not follow links)
# mkdirat/213 (3 parameters, at, the first is dirfd)
# faccessat/314 (4 parameters, the first is dirfd followed by the path + AT_SYMLINK_NOFOLLOW)
null: NULL, NULL, NULL, NULL
open/313, creat/12, openat/314: std, open, NULL, open
close/1: std, close, NULL, close
read/3, readv/3: std, read, read, read
write/3, writev/3: std, write, write, write
pread64/4, preadv/4, preadv2/5: std, pread, NULL, NULL
pwrite64/4, pwritev/4, pwritev2/5: std, pwrite, NULL, NULL
getdents64/3, getdents/3: std, getdents64, NULL, NULL
fcntl/3, fcntl64/3: fd, fcntl, fcntl, fcntl
lseek/3: std, lseek, NULL, NULL
lstat/112, stat/12, fstatat/314, newfstatat/314, fstat/2: std, lstat, NULL, NULL
access/12, faccessat/213, faccessat2/314: std, access, NULL, NULL
readlink/113, readlinkat/314: std, readlink, NULL, NULL
unlink/111, unlinkat/313: std, unlink, NULL, NULL
truncate/12, ftruncate/2: std, truncate, NULL, NULL
mkdir/12, mkdirat/213: std, mkdir, NULL, NULL
rmdir/11: std, rmdir, NULL, NULL
mknod/13, mknodat/214: std, mknod, NULL, NULL
lchown/13, fchown/3, chown/13, fchownat/315: std, lchown, NULL, NULL
chmod/12, fchmod/2, fchmodat/314: std, chmod, NULL, NULL
utimensat/314, utime/12, utimes/12, futimesat/213: utimensat, utimensat, NULL, NULL
link/22, linkat/335: std, link, NULL, NULL
symlink/22, symlinkat/223: std, symlink, NULL, NULL
rename/22, renameat/234, renameat2/235: std, rename, NULL, NULL
statfs/12, fstatfs/2: std, statfs, NULL, NULL
mount/25: mount, mount, NULL, NULL
umount2/312, umount/11: umount2, umount2, NULL, NULL
lgetxattr/114, getxattr/14, fgetxattr/4: std, lgetxattr, NULL, NULL
lsetxattr/115, setxattr/15, fsetxattr/5: std, lsetxattr, NULL, NULL
llistxattr/113, listxattr/13, flistxattr/3: std, llistxattr, NULL, NULL
lremovexattr/113, removexattr/13, fremovexattr/3: std, lremovexattr, NULL, NULL
ioctl/3: ioctl, ioctl, NULL, NULL
epoll_ctl/4: fd2, epoll_ctl, NULL, NULL
setresfuid/4, setresuid/3, setuid/1, setreuid/2, setfsuid/1: sc, setresfuid, NULL, setresfuid
setresfgid/4, setresgid/3, setgid/1, setregid/2, setfsgid/1: sc, setresfgid, NULL, setresfgid
getresfuid/4, getresuid/3, getuid/1, geteuid/1: sc, getresfuid, NULL, NULL
getresfgid/4, getresgid/3, getgid/1, getegid/1: sc, getresfgid, NULL, NULL
setgroups/2: sc, setgroups, NULL, setgroups
getgroups/2: sc, getgroups, NULL, NULL
socket/3: socket, socket, NULL, socket
bind/3: fd, bind, NULL, NULL
connect/3: fd, connect, NULL, NULL
listen/2: fd, listen, NULL, NULL
accept4/4, accept/3: fd, accept4, accept4, accept4
getsockname/3: fd, getsockname, NULL, NULL
getpeername/3: fd, getpeername, NULL, NULL
sendto/5, sendmsg/3, sendmmsg/4: fd, sendto, sendto, sendto
recvfrom/5, recvmsg/3, recvmmsg/4: fd, recvfrom, recvfrom, recvfrom
shutdown/2: fd, shutdown, NULL, NULL
setsockopt/5: fd, setsockopt, NULL, NULL
getsockopt/5: fd, getsockopt, NULL, NULL
capget/2: sc, capget, NULL, NULL
capset/2: sc, capset, NULL, NULL
clock_gettime/2, gettimeofday/2, time/1: sc, clock_gettime, NULL, NULL
clock_settime/2, settimeofday/2: sc, clock_settime, NULL, NULL
clock_getres/2: sc, clock_getres, NULL, NULL
statx/315: std, statx, NULL, NULL
BUILTIN
execve/13, execveat/315: path, execve, NULL, execve
dup3/3, dup2/2, dup/1: std, dup3, NULL, dup3
chdir/11, fchdir/1: std_nonest, chdir, NULL, chdir
getcwd/1: NULL, getcwd, NULL, NULL
umask/1: NULL, umask, NULL, NULL
chroot/11: NULL, chroot, NULL, NULL
mmap/6, mmap2/6: mmap, mmap, NULL, mmap
munmap/2: NULL, mm_cb_after, NULL, munmap
mremap/4: NULL, mm_cb_after, NULL, mremap
msync/3: NULL, mm_cb_after, NULL, msync
epoll_create1/1, epoll_create/1: NULL, epoll_create1, NULL, epoll_create1
epoll_wait/4, epoll_pwait5: NULL, epoll_wait, epoll_wait, epoll_wait
poll/3, ppoll/4: NULL, poll, poll, poll
select/5, pselect6/6: NULL, select, select, select
# return ENOSYS
clone3: NULL, clone3, NULL, NULL
sendfile: NULL, sendfile, NULL, NULL
copy_file_range: NULL, copy_file_range, NULL, NULL
-insmod/2: NULL, insmod
-rmmod/1: NULL, rmmod
-lsmod/2: NULL, lsmod
-vuctl/4: NULL, vuctl
-msocket/14: msocket, msocket