Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: utility for resolving architectures #63

Closed
wants to merge 2 commits into from

Conversation

tyhicks
Copy link
Contributor

@tyhicks tyhicks commented Jan 2, 2017

This pull request adds an (uninstalled) utility for resolving architecture tokens into names suitable for reading.

This allows for reusing the code that translates an architecture token
into a human readable string.

Signed-off-by: Tyler Hicks <[email protected]>
Add a utility, scmp_arch_resolver, to translate architecture tokens to
human readable strings and back. This may be useful, for example, when
needing to understand the "arch=N" portion of seccomp audit messages.

The Makefile.am is configured so that scmp_arch_resolver is not
installed at this time but that's something that can always be changed
if the utility proves to be useful.

Signed-off-by: Tyler Hicks <[email protected]>
@pcmoore pcmoore changed the title Utility for resolving architectures RFE: utility for resolving architectures Jan 2, 2017
@pcmoore
Copy link
Member

pcmoore commented Jan 2, 2017

Without looking at the code too closely, one thing jumps out at me: the libseccomp arch token is not the same as the "arch" field reported by the kernel's audit records, see x86_64/x32 as an example.

@pcmoore
Copy link
Member

pcmoore commented Jan 25, 2017

Okay, I'm going to close this out without merging because of the reasons listed above. If you really want to translate the architecture token in the audit messages, I might suggest using the ausearch tool with the '-i' parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants