]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/renice.1
docs: renice(1): Rework discussion of unprivileged users,
authorMichael Kerrisk <mtk.man-pages@gmail.com>
Fri, 9 Dec 2016 12:25:20 +0000 (13:25 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Dec 2016 12:25:20 +0000 (13:25 +0100)
commitf0742932126a5a8c222776c4a924a02a034f7764
tree7fb5c7ed7a1d904c1be8c93d8e4a51c9d2aee1e1
parentf4e61504a457395018c02bafcf17d1e3f8644b78
docs: renice(1): Rework discussion of unprivileged users,

The BUGS section describing the limitations on what an unprivileged
user may do to the nice value is outdated, given the kernel changes
that added RLIMIT_NICE in Linux 2.6.12. So, remove that text.

The revised details for modern Linux were partially covered in NOTES,
but there were also inaccuracies there (and the use of the word
"monotonically" was unneeded). In particular, the point is that
unprivileged users can only increase the nice value. There is no
restriction particular to the range 0..+19. So, for example, the
following scenario is possible:

1. Superuser sets the nice value of an unprivileged user's
   process to -20.
2. The unprivileged user can now renice that process to (say) -10.

Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/renice.1