aboutsummaryrefslogtreecommitdiff
path: root/lib/libintercept.h
blob: 0efb3a856c57e4b5792a2fb490c1330f356fe378 (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once


#define COMM_SOCKET_ENVVAR "EXEC_INTERCEPT_SOCKET"

// Socket protocol: the client process sends one message per execve invocation.
// Format:
// - Number of arguments (8 byte little-endian unsigned integer)
// - Program path (null-terminated string)
// - Arguments (null-terminated strings)