Package: pam
Version: 0.79-4
Severity: normal

While merging pam 0.79-4 into Ubuntu, I noticed that the new version of
pam_limits calculates the RLIMIT_NICE value passed to setrlimit() using
"19 - int_value". However, setpriority(2) says that unice = 20 - knice,
implying of course that knice = 20 - unice; the current pam_limits
behaviour will map the range [-20,19] onto [39,0] rather than [40,1] as
indicated by setpriority(2). Isn't this off by one?

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to