mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 12:57:50 +00:00
Cannot do direct exec of a command when SELinux RBAC is enabled.
This commit is contained in:
parent
f6452c7caf
commit
267b9a8a23
@ -345,7 +345,7 @@ direct_exec_allowed(struct command_details *details)
|
|||||||
debug_decl(direct_exec_allowed, SUDO_DEBUG_EXEC);
|
debug_decl(direct_exec_allowed, SUDO_DEBUG_EXEC);
|
||||||
|
|
||||||
/* Assumes sudo_needs_pty() was already checked. */
|
/* 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)
|
policy_plugin.u.policy->close != NULL)
|
||||||
debug_return_bool(false);
|
debug_return_bool(false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user