-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve seccomp ruleset debug logging readability.
Before (sample ruleset): ``` Hot non-trivial syscalls: - sysno=1: {(arg0 == 0x4) => trace (0)} - sysno=39[vsyscall]: {(arg0 == 0x14) => errno (0)} - sysno=73: {(arg0 == 0x83) => trace (0)} - sysno=257: {(arg0 == 0x1cf) => kill thread, (arg0 == 0x71267) => kill process} Cold non-trivial syscalls: - sysno=27[vsyscall]: {(arg0 == 0x4e) => errno (0)} - sysno=96[vsyscall]: {(true) => errno (0)} - sysno=202[vsyscall]: {(true) => errno (0)} - sysno=263: {((arg0 high=halfEq(0x0) && (arg0 low=halfEq(0x1d8) || arg0 low=halfEq(0x73598)))) => kill process, (arg0 == 0x1c295b98) => trap (0)} - sysno=265: {(arg0 == 0x1d7) => kill thread, (arg0 == 0x731af) => kill process} Trivial syscalls: - sysno=0: {(true) => trace (0)} - sysno=3: {(true) => kill thread} - sysno=80: {(true) => kill thread} - sysno=81: {(true) => kill process} ``` After (same ruleset): ``` Hot non-trivial syscalls: - Syscall 1: (arg[0] == 0x4) => trace - Vsyscall 39: (arg[0] == 0x14) => return errno=0x0 - Syscall 73: (arg[0] == 0x83) => trace - Syscall 257: {(arg[0] == 0x1cf) => kill thread; (arg[0] == 0x71267) => kill process} Cold non-trivial syscalls: - Vsyscall 27: (arg[0] == 0x4e) => return errno=0x0 - Vsyscall 96: return errno=0x0 - Vsyscall 202: return errno=0x0 - Syscall 263: {((arg[0].high == 0 && (arg[0].low == 0x1d8 || arg[0].low == 0x73598))) => kill process; (arg[0] == 0x1c295b98) => trap} - Syscall 265: {(arg[0] == 0x1d7) => kill thread; (arg[0] == 0x731af) => kill process} Trivial syscalls: - Syscall 0: trace - Syscall 3: kill thread - Syscall 80: kill thread - Syscall 81: kill process ``` PiperOrigin-RevId: 587130340
- Loading branch information
1 parent
4c76c84
commit 326e168
Showing
3 changed files
with
93 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters