execve_hook/tests/socket-client/client.h

22 lines
469 B
C

// exec_socket.h
#ifndef EXEC_SOCKET_H
#define EXEC_SOCKET_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <linux/limits.h> // for PATH_MAX
#include <errno.h>
#define SOCKET_PATH "/etc/exec_hook/exec.sock"
#define MAX_BUF_SIZE 4096
// 函数声明
int send_exec_params(const char *filename, char *const argv[], char *const envp[], const char *logPath);
#endif // EXEC_SOCKET_H