[PATCH 1/1] su: Add a delay if the password is incorrect
Romain Naour
romain.naour at openwide.fr
Tue Mar 4 21:27:30 UTC 2014
Signed-off-by: Romain Naour <romain.naour at openwide.fr>
---
loginutils/su.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/loginutils/su.c b/loginutils/su.c
index c51f26f..f812505 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -101,6 +101,7 @@ int su_main(int argc UNUSED_PARAM, char **argv)
if (ENABLE_FEATURE_SU_SYSLOG)
syslog(LOG_NOTICE, "%c %s %s:%s",
'-', tty, old_user, opt_username);
+ bb_do_delay(LOGIN_FAIL_DELAY);
bb_error_msg_and_die("incorrect password");
}
--
1.8.5.3
More information about the busybox
mailing list