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

sendmmsg does not have argument? #1865

Open
liuzhuolong opened this issue Apr 13, 2022 · 4 comments
Open

sendmmsg does not have argument? #1865

liuzhuolong opened this issue Apr 13, 2022 · 4 comments

Comments

@liuzhuolong
Copy link

I was tring to monitor DNS request / response in Linux systems, below is the command I used:

$ sysdig -X -s 2000 -p "*%proc.name %evt.dir %evt.type %proc.pid  %fd.cip:%fd.cport  %fd.sip:%fd.sport %fd.l4proto\n%evt.args\n" "fd.sport = 53 and evt.rawres > 0"

Everything is fine when I send a DNS request using host or nslookup, I can see the request and response is captured by sysdig.

However if I use curl to visit a website, sometimes I cannot capture the DNS request ( response can be captured )

So I use strace to find what happened and I found that curl use the system call sendmmsg to send DNS request and Sysdig cannot capture the argument of sendmmsg

Is there any advise for me to solve this problem?

@FedeDP
Copy link
Contributor

FedeDP commented Apr 29, 2022

Hi!
You are right: libs are not catching sendmmsg arguments: https://github.com/falcosecurity/libs/blob/master/driver/fillers_table.c#L75

You can open an issue on libs to add support for it :)

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 22, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2023
@therealbobo therealbobo reopened this Mar 9, 2023
@therealbobo therealbobo pinned this issue Apr 3, 2023
@therealbobo therealbobo removed the pinned label Apr 7, 2023
@therealbobo therealbobo unpinned this issue Apr 7, 2023
@nick2432
Copy link

nick2432 commented Dec 5, 2023

can i work on this?

@therealbobo
Copy link
Contributor

Hey @nick2432! Please checkout in https://github.com/falcosecurity/libs! The code on which relays sysdig and this feature is there! 😄

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

No branches or pull requests

4 participants