mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 23:05:17 +00:00
Cannot do direct exec of a command when SELinux RBAC is enabled.
This commit is contained in:
@@ -345,7 +345,7 @@ direct_exec_allowed(struct command_details *details)
|
||||
debug_decl(direct_exec_allowed, SUDO_DEBUG_EXEC);
|
||||
|
||||
/* Assumes sudo_needs_pty() was already checked. */
|
||||
if (ISSET(details->flags, CD_SET_TIMEOUT|CD_SUDOEDIT) ||
|
||||
if (ISSET(details->flags, CD_RBAC_ENABLED|CD_SET_TIMEOUT|CD_SUDOEDIT) ||
|
||||
policy_plugin.u.policy->close != NULL)
|
||||
debug_return_bool(false);
|
||||
|
||||
|
Reference in New Issue
Block a user