Skip to content

Tracing: Add socket tracking#1060

Merged
jrfastab merged 1 commit into
mainfrom
pr/kevsecurity/track-socks
Jun 13, 2023
Merged

Tracing: Add socket tracking#1060
jrfastab merged 1 commit into
mainfrom
pr/kevsecurity/track-socks

Conversation

@kevsecurity

Copy link
Copy Markdown
Contributor

We currently can track file descriptors so that we can match on file names when we only have an FD. We can't currently track sockets, which is useful because a lot of network activity happens outside of the process context, meaning that the current task and pid_tgid are not of the process handling the socket.

This commit adds socket tracking so that sockets can be correctly attributed the process that owns them as opposed to whichever process the kernel was in the context of when it handled a socket function.

@kevsecurity
kevsecurity requested a review from a team as a code owner June 7, 2023 17:37
@kevsecurity
kevsecurity requested a review from jrfastab June 7, 2023 17:37
@netlify

netlify Bot commented Jun 7, 2023

Copy link
Copy Markdown

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 70febfc
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/6481c8cc47fd8e0008cef9dd
😎 Deploy Preview https://deploy-preview-1060--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kevsecurity
kevsecurity force-pushed the pr/kevsecurity/track-socks branch 3 times, most recently from 82b0c57 to 70febfc Compare June 8, 2023 12:25
We currently can track file descriptors so that we can match on file
names when we only have an FD. We can't currently track sockets, which
is useful because a lot of network activity happens outside of the
process context, meaning that the current task and pid_tgid are not of
the process handling the socket.

This commit adds socket tracking so that sockets can be correctly
attributed the process that owns them as opposed to whichever process
the kernel was in the context of when it handled a socket function.

Signed-off-by: Kevin Sheldrake <kevin.sheldrake@isovalent.com>
@kevsecurity
kevsecurity force-pushed the pr/kevsecurity/track-socks branch from 70febfc to f851189 Compare June 8, 2023 12:38
@kkourt
kkourt self-requested a review June 8, 2023 15:42
@jrfastab
jrfastab merged commit 42c42bb into main Jun 13, 2023
@jrfastab
jrfastab deleted the pr/kevsecurity/track-socks branch June 13, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants