Re: [PATCH] Fix prlimit64 for suid/sgid processes

From: Linus Torvalds
Date: Thu Jan 27 2011 - 17:59:27 EST


On 1/27/11, Kacper Kornet <kornet@xxxxxxxxxxx> wrote:
> 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.

Shouldn't this be fixed in check_prlimit_permissions() instead of in the caller?

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/