|author||Maciej S. Szmigiero <email@example.com>||2019-02-25 20:50:48 +0100|
|committer||Tomáš Mráz <firstname.lastname@example.org>||2019-02-26 10:06:07 +0100|
pam_tally2: Remove unnecessary fsync()
pam_tally2 does fsync() after writing to a tally file. This causes hard drive cache flushes on every failed SSH login on many (if not most) filesystems. And an internet-exposed machine can have a lot of these failed logins. This operation however doesn't seem to be necessary - the pam_tally2 module does not do any operation which would need explicit post-crash ordering, it just does simple file reads and writes. And doing a fsync() after them doesn't close any race if the system happens to crash between a write being posted and its fsync() completion. Let's remove this operation to get rid of all these extra cache flushes.
Diffstat (limited to 'modules/pam_unix')
0 files changed, 0 insertions, 0 deletions