ausyscall(8) - Linux man page
Name
ausyscall - a program that allows mapping syscall names and numbersSynopsis
ausyscall [arch] name | number | --dump | --exactDescription
This program can be used to verify syscall numbers on a biarch platform for rule optimization. For example, suppose you had an auditctl rule:
-a always, exit -S open -F exit=-EPERM -k fail-open
If you wanted to verify that both 32 and 64 bit programs would be audited, run "ausyscall i386 open" and then "ausyscall x86_64 open". Look at the returned numbers. If they are different, you will have to write two auditctl rules to get complete coverage.
-a always,exit -F arch=b32 -S open -F exit=-EPERM -k fail-open-a always,exit -F arch=b64 -S open -F exit=-EPERM -k fail-open
Options
- --dump
- Print all syscalls for the given arch
- --exact
- Instead of doing a partial word match, match the given syscall name exactly.