| 449 | }; |
| 450 | |
| 451 | std::string GetLinuxSyscallName(uint32_t syscall_number) |
| 452 | { |
| 453 | const auto element = LINUX_SYSCALLS.find(syscall_number); |
| 454 | if (element != LINUX_SYSCALLS.end()) { |
| 455 | return element->second; |
| 456 | } |
| 457 | return "*unknown*"; |
| 458 | } |
| 459 | |
| 460 | // See Linux kernel developer Kees Cook's seccomp guide at <https://outflux.net/teach-seccomp/> for |
| 461 | // an accessible introduction to using seccomp. |
no test coverage detected