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: add a tool to run command with a given BPF profile #382

Closed
wants to merge 1 commit into from

Conversation

bboozzoo
Copy link

@bboozzoo bboozzoo commented May 5, 2022

Add a trivial tool to run a given command under an exported BPF profile, with
primary purse of investigation and debugging of the profiles themselves.
Example:

$ sudo ./scmp_run -f profile.bin -- /some/dir/testprog foo bar

Add a trivial tool to run a given command under an exported BPF profile, with
primary purse of investigation and debugging of the profiles themselves.
Example:

$ sudo ./scmp_run -f profile.bin -- testprog.py foo bar

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
@pcmoore pcmoore changed the title tools: add a tool to run command with a given BPF profile RFE: add a tool to run command with a given BPF profile May 5, 2022
@pcmoore
Copy link
Member

pcmoore commented May 5, 2022

Hi @bboozzoo,

As things currently stand, I'm not sure why this would need to be part of the main libseccomp repo as it doesn't leverage any of the libseccomp functionality. However, if the tool was incorporated into work related to #15 or #342, it might make more sense. I would encourage you to either investigate those open issues or perhaps host this tool in your own repository.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 89.604% when pulling bee4fd7 on bboozzoo:bboozzoo/scmp-run into 832b65b on seccomp:main.

@bboozzoo
Copy link
Author

bboozzoo commented May 5, 2022

@pcmoore thanks for looking at the branch. That's a fair point. I'll see if I can help with either of the issues you linked. Thanks again!

@bboozzoo bboozzoo closed this May 5, 2022
@pcmoore
Copy link
Member

pcmoore commented May 5, 2022

Sounds good!

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.

3 participants