1AUSYSCALL(8) System Administration Utilities AUSYSCALL(8)
2
3
4
6 ausyscall - a program that allows mapping syscall names and numbers
7
9 ausyscall [arch] name | number | --dump | --exact
10
12 ausyscall is a program that prints out the mapping from syscall name to
13 number and reverse for the given arch. The arch can be anything re‐
14 turned by `uname -m`. If arch is not given, the program will take a
15 guess based on the running image. Or for convenience, you can pass b32
16 or b64 to use the current arch but a specific ABI. You may give the
17 syscall name or number and it will find the opposite. You can also dump
18 the whole table with the --dump option. By default a syscall name
19 lookup will be a substring match meaning that it will try to match all
20 occurrences of the given name with syscalls. So giving a name of chown
21 will match both fchown and chown as any other syscall with chown in its
22 name. If this behavior is not desired, pass the --exact flag and it
23 will do an exact string match.
24
25 This program can be used to verify syscall numbers on a biarch platform
26 for rule optimization. For example, suppose you had an auditctl rule:
27
28 -a always, exit -S open -F exit=-EPERM -k fail-open
29
30 If you wanted to verify that both 32 and 64 bit programs would be au‐
31 dited, run "ausyscall i386 open" and then "ausyscall x86_64 open". (Or
32 use the b32 and b64 option.) Look at the returned numbers. If they are
33 different, you will have to write two auditctl rules to get complete
34 coverage.
35
36 -a always,exit -F arch=b32 -S open -F exit=-EPERM -k fail-open
37 -a always,exit -F arch=b64 -S open -F exit=-EPERM -k fail-open
38
39 For more information about a specific syscall, use the man program and
40 pass the number 2 as an argument to make sure that you get the syscall
41 information rather than a shell script program or glibc function call
42 of the same name. For example, if you wanted to learn about the open
43 syscall, type: man 2 open.
44
46 --dump Print all syscalls for the given arch
47
48 --exact
49 Instead of doing a partial word match, match the given syscall
50 name exactly.
51
52
54 ausearch(8), auditctl(8).
55
56
58 Steve Grubb
59
60
61
62Red Hat Nov 2008 AUSYSCALL(8)