scmp_sys_resolver(1)
π scmp_sys_resolver β the libseccomp girlie's guide π
okay so bestie, this is scmp_sys_resolver(1), and yes it's part of the libseccomp documentation. it resolves system calls. that's the whole vibe. let's go π¦
β¨ NAME β¨
scmp_sys_resolver β resolve system calls π
π SYNOPSIS π
scmp_sys_resolver [-h] [-a ARCH ] [-t] SYSCALL_NAME | SYSCALL_NUMBER
πΈ DESCRIPTION πΈ
so this command resolves both system call names AND numbers with respect to whatever architecture you hand it in the optional ARCH argument. no cap. π
if you don't supply an architecture on the command line, it just uses the native architecture. easy. default behavior, we love her.
now β if you pass -t along with a system call name, then the system call gets translated as necessary for the given architecture. that's the whole point of -t. but β and this is important bestie β -t has no effect if you specified a system call number. none. zero. she said "not today." π
and here's the spicy part: in some combinations of architecture and system call, you'll get a negative system call number displayed. a negative number means the system call is not defined for that architecture, and libseccomp treats it in a special manner depending on the operation. so if you see a negative, don't panic β that's the signal. π¨
π OPTIONS π
-a ARCHβ the architecture to use for resolving the system call. the valid ARCH values are"x86","x86_64","x32","arm","aarch64","loongarch64","m68k","mips","mipsel","mips64","mipsel64","mips64n32","mipsel64n32","parisc","parisc64","ppc","ppc64","ppc64le","s390","s390x","sheb"and"sh". (yes, all of them. pick your fighter. π)-tβ if necessary, translate the system call name to the proper system call number, even if the system call name is different. like, for example,socket(2)onx86. it's giving "same energy, different number." π₯-hβ a simple one-line usage display. short, sweet, iconic. β¨
π«Ά EXIT STATUS π«Ά
returns zero on success, and errno values on failure. that's it, that's the whole story. π
π§ NOTES π§
the libseccomp project site β with more info and the source code repository β lives at https://github.com/seccomp/libseccomp. go visit her, she's lovely. π
this tool, as well as the libseccomp library, is currently under development, so please report any bugs at the project site or directly to the author. bestie we are actively building, ty for your patience π
β AUTHOR β
Paul Moore <paul@paul-moore.com> β the main character who made all this happen π
ok that's the whole page, you're basically a seccomp expert now, no notes π
and a lil sign-off from the original footer: this one's brought to you by paul@paul-moore.com, dated 23 May 2013, and it's scmp_sys_resolver(1) β periodt. ππ¦
π¦ where this page comes from
- alpine 3.22: libseccomp-doc 2.6.1-r0 Β· LGPL-2.1-or-later
- alpine 3.23: libseccomp-doc 2.6.1-r0 Β· LGPL-2.1-or-later
- alpine 3.24: libseccomp-doc 2.6.1-r0 Β· LGPL-2.1-or-later
- arch rolling: libseccomp 2.6.0-1 Β· LGPL-2.1-only
- debian trixie: seccomp 2.6.0-2 Β· LGPL-2.1-only
- fedora 43: libseccomp-devel 2.6.0-2.fc43 Β· LGPL-2.1-only
- fedora 43: libseccomp-devel 2.6.0-2.fc43 Β· LGPL-2.1-only
- fedora 43: libseccomp-devel 2.6.1-2.fc43 Β· LGPL-2.1-only
- fedora 43: libseccomp-devel 2.6.1-2.fc43 Β· LGPL-2.1-only
- fedora 44: libseccomp-devel 2.6.0-3.fc44 Β· LGPL-2.1-only
- fedora 44: libseccomp-devel 2.6.0-3.fc44 Β· LGPL-2.1-only
- fedora 44: libseccomp-devel 2.6.1-2.fc44 Β· LGPL-2.1-only
- fedora 44: libseccomp-devel 2.6.1-2.fc44 Β· LGPL-2.1-only
- nixpkgs unstable: libseccomp 2.6.1
- opensuse-leap 16.0: libseccomp-tools 2.6.0-160000.2.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: libseccomp-tools 2.6.0-160000.2.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: libseccomp-tools 2.6.0-160000.2.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: libseccomp-tools 2.6.0-160000.2.2 Β· LGPL-2.1-only
- ubuntu questing: seccomp 2.6.0-2ubuntu2
- ubuntu resolute: seccomp 2.6.0-2ubuntu5 Β· LGPL-2.1-only
- ubuntu stonking: seccomp 2.6.1-1ubuntu1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms