We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8ea989 commit c37eb11Copy full SHA for c37eb11
src/exec.c
@@ -408,8 +408,11 @@ direct_exec_allowed(const struct command_details *details)
408
debug_decl(direct_exec_allowed, SUDO_DEBUG_EXEC);
409
410
/* Assumes sudo_needs_pty() was already checked. */
411
- if (ISSET(details->flags, CD_RBAC_ENABLED|CD_SET_TIMEOUT|CD_SUDOEDIT) ||
412
- policy_plugin.u.policy->close != NULL)
+ if (policy_plugin.u.policy->close != NULL)
+ debug_return_bool(false);
413
+ if (ISSET(details->flags, CD_RBAC_ENABLED|CD_SET_TIMEOUT|CD_SUDOEDIT))
414
415
+ if (ISSET(details->flags, CD_INTERCEPT|CD_LOG_SUBCMDS))
416
debug_return_bool(false);
417
418
TAILQ_FOREACH(plugin, &audit_plugins, entries) {
0 commit comments