When installed without pam, shadow does not support RLIMIT_NICE or RLIMIT_RTPRIO in /etc/limits. Reproducible: Always Steps to Reproduce: 1. USE="-pam" emerge shadow. 2. Attempt to set nice or rtprio limits. The included patches were tested against shadow-4.0.15-r2 and shadow-4.0.18.1 on amd64-nomultilib. The only difference between the two is dealing with man/limits.5.
Created attachment 130925 [details, diff] shadow-4.0.15-nice-rtprio.patch
Created attachment 130927 [details, diff] shadow-4.0.18.1-nice-rtprio.patch
Implemented upstream and in 4.0.18.2. Closing this.