From d28c9d112f49697b5faef8a6026e14a92837061c Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Mon, 5 Aug 2024 16:03:11 +0200 Subject: [PATCH] login: turn off btmp, utmp, lastlog writing Should be done by PAM instead. login from src:shadow had turned it off, especially with --enable-logind. Gbp-Pq: Topic debian Gbp-Pq: Name login-turn-off-btmp-utmp-lastlog-writing.patch --- login-utils/login.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/login-utils/login.c b/login-utils/login.c index 7ed3255..35e3cc3 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -971,7 +971,6 @@ static void loginpam_auth(struct login_context *cxt) cxt->username ? cxt->username : "(unknown)", pam_strerror(pamh, rc)); - log_btmp(cxt); log_audit(cxt, 0); if (!keep_username || rc == PAM_USER_UNKNOWN) { @@ -1003,7 +1002,6 @@ static void loginpam_auth(struct login_context *cxt) cxt->username ? cxt->username : "(unknown)", pam_strerror(pamh, rc)); - log_btmp(cxt); log_audit(cxt, 0); fprintf(stderr, _("\nLogin incorrect\n")); @@ -1495,9 +1493,7 @@ int main(int argc, char **argv) endpwent(); - log_utmp(&cxt); log_audit(&cxt, 1); - log_lastlog(&cxt); chown_tty(&cxt); -- 2.30.2