Commit ceb615bf authored by Kacper Kornet's avatar Kacper Kornet Committed by Greg Kroah-Hartman
Browse files

Fix prlimit64 for suid/sgid processes



commit aa5bd67d upstream.

Since check_prlimit_permission always fails in the case of SUID/GUID
processes, such processes are not able to read or set their own limits.
This commit changes this by assuming that process can always read/change
its own limits.

Signed-off-by: default avatarKacper Kornet <kornet@camk.edu.pl>
Acked-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fd70b698
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment