summaryrefslogtreecommitdiff
path: root/modules/pam_limits/limits.conf.5.xml
diff options
context:
space:
mode:
authorJosef Moellers <jmoellers@suse.de>2021-04-14 16:39:28 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2021-04-22 10:47:22 +0200
commit3234488f2c52a021eec87df1990d256314c21bff (patch)
tree7e578397d3d928d6270c71e6a69e953c228de126 /modules/pam_limits/limits.conf.5.xml
parenta7453aeeb398d6cbb7a709c4e2a1d75905220fff (diff)
pam_limits: "Unlimited" is not a valid value for RLIMIT_NOFILE.
Replace it with a value obtained from /proc/sys/fs/nr_open * modules/pam_limits/limits.conf.5.xml: Document the replacement. * modules/pam_limits/pam_limits.c: Replace unlimited RLIMIT_NOFILE value with a value obtained from /proc/sys/fs/nr_open
Diffstat (limited to 'modules/pam_limits/limits.conf.5.xml')
-rw-r--r--modules/pam_limits/limits.conf.5.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pam_limits/limits.conf.5.xml b/modules/pam_limits/limits.conf.5.xml
index cd64ac90..c5bd6768 100644
--- a/modules/pam_limits/limits.conf.5.xml
+++ b/modules/pam_limits/limits.conf.5.xml
@@ -283,6 +283,8 @@
<emphasis>unlimited</emphasis> or <emphasis>infinity</emphasis> indicating no limit,
except for <emphasis remap='B'>priority</emphasis>, <emphasis remap='B'>nice</emphasis>,
and <emphasis remap='B'>nonewprivs</emphasis>.
+ If <emphasis remap='B'>nofile</emphasis> is to be set to one of these values,
+ it will be set to the contents of /proc/sys/fs/nr_open instead (see setrlimit(3)).
</para>
<para>
If a hard limit or soft limit of a resource is set to a valid value,