From: Dhaval Giani Date: Fri, 27 Feb 2009 09:43:54 +0000 (+0530) Subject: sched: don't allow setuid to succeed if the user does not have rt bandwidth X-Git-Tag: v2.6.29-rc7~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54e991242850edc8c53f71fa5aa3ba7a93ce38f5;p=pandora-kernel.git sched: don't allow setuid to succeed if the user does not have rt bandwidth Impact: fix hung task with certain (non-default) rt-limit settings Corey Hickey reported that on using setuid to change the uid of a rt process, the process would be unkillable and not be running. This is because there was no rt runtime for that user group. Add in a check to see if a user can attach an rt task to its task group. On failure, return EINVAL, which is also returned in CONFIG_CGROUP_SCHED. Reported-by: Corey Hickey Signed-off-by: Dhaval Giani Acked-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed