SHA256
1
0
forked from pool/pam
pam/pam-limit-nproc.patch

16 lines
568 B
Diff
Raw Normal View History

Index: Linux-PAM-1.1.8/modules/pam_limits/limits.conf
===================================================================
--- Linux-PAM-1.1.8.orig/modules/pam_limits/limits.conf
+++ Linux-PAM-1.1.8/modules/pam_limits/limits.conf
@@ -47,4 +47,10 @@
#ftp hard nproc 0
#@student - maxlogins 4
+# harden against fork-bombs
+* hard nproc 4000
+* soft nproc 3500
+root hard nproc 3000
+root soft nproc 1850
+
# End of file