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

Output a log when an application uses a Linux capability #1485

Open
ptodev opened this issue Dec 31, 2024 · 1 comment
Open

Output a log when an application uses a Linux capability #1485

ptodev opened this issue Dec 31, 2024 · 1 comment

Comments

@ptodev
Copy link
Contributor

ptodev commented Dec 31, 2024

It would be nice if Beyla could produce log lines similar to this Python utility. There are not many tools I could find for this on the internet, and this Python utility is a bit hard to run since it needs the Linux headers to be installed. That's not easy to do for some Linux distributions. There is also an application called Tetragon which seems to be able to do it, but it looks very tightly coupled with K8s.

My use case - I would like to know which Linux capabilities Alloy is using. That way we could document them in the Alloy docs. If this feature is part of Alloy's beyla.ebpf component, then it would be very easy to incorporate it into the Alloy CI.

@rafaelroquetto
Copy link
Contributor

Hey @ptodev - just to clarify, if all you want is to find out which capabilities an Alloy process is using, would the following be feasible to you?

capsh --decode=`cat /proc/<ALLOY_PID>/status | grep CapEff | awk '{print $2}'`

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

No branches or pull requests

2 participants