mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The cpacfstats daemon is susceptible to dos attacks from malicious clients that connect but either do not send a query or receive an answer fast enough. The latter currently is impossible but might occur once we introduce further counters. Solve both problems by exploiting a timed read/write operation in the daemon and close the connection on timeout. Signed-off-by: Juergen Christ <jchrist@linux.ibm.com> Reviewed-By: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>