For ptrace intercept mode, do not do a policy check for the initial command.
We can skip the policy check for the execve(2) of the initial command since it has already been check. Otherwise, we would log the command twice. When using fexecve(2) due to a digest check, there should be no need to skip the initial command since it will be executed via execveat(2) not execve(2). However, on older kernels without execveat(2), glibc will emulate fexecve(2) using /proc which will result in the extra log entry.
This commit is contained in:
@@ -44,6 +44,7 @@ struct intercept_closure {
|
||||
uint32_t off;
|
||||
int listen_sock;
|
||||
enum intercept_state state;
|
||||
int initial_command;
|
||||
};
|
||||
|
||||
void intercept_closure_reset(struct intercept_closure *closure);
|
||||
|
Reference in New Issue
Block a user