[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

pam_limits Document valid values



For me it wasn't clear whether pam_limits uses the range used by user
space [-20, 19] (tools like nice) or kernel [1, 40] (setrlimit). So here
is a patch for the relevant docs for the valid values. We could also
instead use a text like For valid values see man setpriority.

Regards,
Petteri
Index: modules/pam_limits/limits.conf
===================================================================
RCS file: /cvsroot/pam/Linux-PAM/modules/pam_limits/limits.conf,v
retrieving revision 1.2
diff -u -r1.2 limits.conf
--- modules/pam_limits/limits.conf	30 Apr 2007 11:25:09 -0000	1.2
+++ modules/pam_limits/limits.conf	2 Jan 2008 21:53:32 -0000
@@ -33,7 +33,7 @@
 #        - locks - max number of file locks the user can hold
 #        - sigpending - max number of pending signals
 #        - msgqueue - max memory used by POSIX message queues (bytes)
-#        - nice - max nice priority allowed to raise to
+#        - nice - max nice priority allowed to raise to values: [-20, 19]
 #        - rtprio - max realtime priority
 #
 #<domain>      <type>  <item>         <value>
Index: modules/pam_limits/limits.conf.5
===================================================================
RCS file: /cvsroot/pam/Linux-PAM/modules/pam_limits/limits.conf.5,v
retrieving revision 1.5
diff -u -r1.5 limits.conf.5
--- modules/pam_limits/limits.conf.5	6 Nov 2007 14:58:54 -0000	1.5
+++ modules/pam_limits/limits.conf.5	2 Jan 2008 21:53:32 -0000
@@ -169,7 +169,7 @@
 .PP
 \fBnice\fR
 .RS 4
-maximum nice priority allowed to raise to (Linux 2\.6\.12 and higher)
+maximum nice priority allowed to raise to (Linux 2\.6\.12 and higher) values: [-20,19]
 .RE
 .PP
 \fBrtprio\fR
Index: modules/pam_limits/limits.conf.5.xml
===================================================================
RCS file: /cvsroot/pam/Linux-PAM/modules/pam_limits/limits.conf.5.xml,v
retrieving revision 1.5
diff -u -r1.5 limits.conf.5.xml
--- modules/pam_limits/limits.conf.5.xml	6 Nov 2007 14:58:54 -0000	1.5
+++ modules/pam_limits/limits.conf.5.xml	2 Jan 2008 21:53:33 -0000
@@ -214,7 +214,7 @@
             <varlistentry>
               <term><option>nice</option></term>
               <listitem>
-                <para>maximum nice priority allowed to raise to (Linux 2.6.12 and higher)</para>
+                <para>maximum nice priority allowed to raise to (Linux 2.6.12 and higher) values: [20,19]</para>
               </listitem>
             </varlistentry>
             <varlistentry>

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]