Skip to content

Commit ec12f0f

Browse files
committed
direct_exec_allowed: add CD_USE_PTRACE to list of flags
This is only for completeness. It is not possible for CD_USE_PTRACE to be set without either CD_INTERCEPT or CD_LOG_SUBCMDS also being set.
1 parent 8339bbe commit ec12f0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ direct_exec_allowed(const struct command_details *details)
385385
debug_return_bool(false);
386386
if (ISSET(details->flags, CD_RBAC_ENABLED|CD_SET_TIMEOUT|CD_SUDOEDIT))
387387
debug_return_bool(false);
388-
if (ISSET(details->flags, CD_INTERCEPT|CD_LOG_SUBCMDS))
388+
if (ISSET(details->flags, CD_INTERCEPT|CD_LOG_SUBCMDS|CD_USE_PTRACE))
389389
debug_return_bool(false);
390390

391391
TAILQ_FOREACH(plugin, &audit_plugins, entries) {

0 commit comments

Comments
 (0)