]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/passwd.c: add audit messages for passwd
authorIker Pedrosa <ipedrosa@redhat.com>
Fri, 13 Feb 2026 08:08:46 +0000 (09:08 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 13 Feb 2026 15:02:26 +0000 (16:02 +0100)
commit03a10499fb6d499e6db06d44007d67893db48e32
tree12da15a3875f6d75b9939aa136f293af0efdd439
parent1121946a9439647558e3bc38c49dbd2265176049
src/passwd.c: add audit messages for passwd

Add comprehensive audit messages for password operations, including
unlock, delete and expire operations.

Change update_shadow() to look up the actual target user instead of
using a dummy `passwd` struct. This ensures audit logging gets the
correct target UID. Audit logs should record the UID of the user being
affected (target), not the UID of whoever is running the passwd command
(source).

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
src/passwd.c