mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-02 07:15:27 +00:00
Sprinkle a few more debugging printfs.
This commit is contained in:
@@ -127,6 +127,8 @@ check_user_interactive(int validated, int mode, struct passwd *auth_pw)
|
|||||||
ret = true;
|
ret = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
sudo_debug_printf(SUDO_DEBUG_INFO,
|
||||||
|
"%s: check user flag overrides time stamp", __func__);
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -192,6 +194,9 @@ check_user(int validated, int mode)
|
|||||||
* If the user is not changing uid/gid, no need for a password.
|
* If the user is not changing uid/gid, no need for a password.
|
||||||
*/
|
*/
|
||||||
if (!def_authenticate || user_is_exempt()) {
|
if (!def_authenticate || user_is_exempt()) {
|
||||||
|
sudo_debug_printf(SUDO_DEBUG_INFO, "%s: %s", __func__,
|
||||||
|
!def_authenticate ? "authentication disabled" :
|
||||||
|
"user exempt from authentication");
|
||||||
ret = true;
|
ret = true;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
@@ -204,6 +209,8 @@ check_user(int validated, int mode)
|
|||||||
if (runas_privs == NULL && runas_limitprivs == NULL)
|
if (runas_privs == NULL && runas_limitprivs == NULL)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
sudo_debug_printf(SUDO_DEBUG_INFO,
|
||||||
|
"%s: user running command as self", __func__);
|
||||||
ret = true;
|
ret = true;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
@@ -238,6 +238,9 @@ parse_default_entry(struct sudo_defs_types *def, const char *val, int op,
|
|||||||
int rc;
|
int rc;
|
||||||
debug_decl(parse_default_entry, SUDOERS_DEBUG_DEFAULTS)
|
debug_decl(parse_default_entry, SUDOERS_DEBUG_DEFAULTS)
|
||||||
|
|
||||||
|
sudo_debug_printf(SUDO_DEBUG_INFO, "%s: %s:%d %s=%s op=%d",
|
||||||
|
__func__, file, lineno, def->name, val ? val : "", op);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If no value specified, the boolean flag must be set for non-flags.
|
* If no value specified, the boolean flag must be set for non-flags.
|
||||||
* Only flags and tuples support boolean "true".
|
* Only flags and tuples support boolean "true".
|
||||||
|
Reference in New Issue
Block a user