pam/pam-limit-nproc.patch
Wolfgang Engel 731ae6c394 Accepting request 416170 from home:develop7:branches:Linux-PAM
pam-limit-nproc.patch: increased process limit to help 
Chrome/Chromuim users with really lots of tabs. New limit gets 
closer to UserTasksMax parameter in logind.conf

Not sure why it is even there given the presence of logind, but let's deal with 
it gradually, one step at a time.

OBS-URL: https://build.opensuse.org/request/show/416170
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=165
2016-08-30 14:33:48 +00:00

16 lines
568 B
Diff

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