2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Update check for whether or not the runas user was set in the ldap

and sssd backends to match the sudoers file backend.  Introduces
the runas_user_set() macro to improve readability.  Previously,
runas_pw was set late, now it is set before checking sudoers.
This commit is contained in:
Todd C. Miller
2016-09-15 09:37:53 -06:00
parent db7ce3c219
commit ef82f792a1
4 changed files with 8 additions and 3 deletions

View File

@@ -568,7 +568,7 @@ sudo_sss_check_runas_user(struct sudo_sss_handle *handle, struct sss_sudo_rule *
int ret = false, i;
debug_decl(sudo_sss_check_runas_user, SUDOERS_DEBUG_SSSD);
if (!runas_pw)
if (!runas_user_set())
debug_return_int(UNSPEC);
/* get the runas user from the entry */