Of course, that patch got the RTLMIT_NICE range wrong :p
Attatched patch properly limits the "nice" value to the range of [-20, 19].
diff -ru pam-0.79/Linux-PAM/modules/pam_limits/pam_limits.c pam-0.79.rtlimit/Linux-PAM/modules/pam_limits/pam_limits.c
--- pam-0.79/Linux-PAM/modules/pam_limits/pam
Package: libpam-runtime
Version: 0.79-1
Followup-For: Bug #326555
This is my backport of the version of the rtlimits patch now merged in
the linux-pam CVS. Differences to previous patch are:
- item name in limits.conf is "rt_prio" rather than "rt_priority"
- nice value goes from
2 matches
Mail list logo