From 9cb97b28986548e20eb2e1e16c1ed810359b6b66 Mon Sep 17 00:00:00 2001 From: Sebastien ROHAUT Date: Fri, 23 Jan 2015 20:07:27 +0100 Subject: [PATCH] Add "-" to ulimit type Just edited pam_types to add the '-', as explained in man 5 limits.conf --- system/pam_limits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pam_limits.py b/system/pam_limits.py index 2a6bec383fd..649b9a175f7 100644 --- a/system/pam_limits.py +++ b/system/pam_limits.py @@ -95,7 +95,7 @@ def main(): pam_items = [ 'core', 'data', 'fsize', 'memlock', 'nofile', 'rss', 'stack', 'cpu', 'nproc', 'as', 'maxlogins', 'maxsyslogins', 'priority', 'locks', 'sigpending', 'msgqueue', 'nice', 'rtprio', 'chroot' ] - pam_types = [ 'soft', 'hard' ] + pam_types = [ 'soft', 'hard', '-' ] limits_conf = '/etc/security/limits.conf'