Репозитории ALT
S: | 1.8.0-alt1 |
5.1: | 1.4.1-alt30 |
4.1: | 1.4.1-alt28 |
4.0: | 1.4.1-alt27 |
3.0: | 1.4.1-alt20 |
Группа :: Система/Ядро и оборудование
Пакет: sysklogd
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: sysklogd-1.4.2-alt-SO_BSDCOMPAT.patch
Скачать
Скачать
diff -upk.orig sysklogd-1.4.2.orig/syslogd.c sysklogd-1.4.2/syslogd.c
--- sysklogd-1.4.2.orig/syslogd.c 2006-10-01 23:12:15 +0000
+++ sysklogd-1.4.2/syslogd.c 2006-10-01 23:18:39 +0000
@@ -1434,6 +1434,8 @@ static int create_inet_socket()
close(fd);
return -1;
}
+/* SO_BSDCOMPAT is obsolete since linux-2.4 */
+#if 0
/* We need to enable BSD compatibility. Otherwise an attacker
* could flood our log files by sending us tons of ICMP errors.
*/
@@ -1443,6 +1445,7 @@ static int create_inet_socket()
close(fd);
return -1;
}
+#endif
/* We must not block on the network socket, in case a packet
* gets lost between select and recv, otherise the process
* will stall until the timeout, and other processes trying to