summaryrefslogtreecommitdiffstats
path: root/kernel/ns_cgroup.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-08-26 23:45:34 +0200
committerJiri Slaby <jirislaby@gmail.com>2010-07-16 09:48:46 +0200
commit7855c35da7ba16b389d17710401c4a55a3ea2102 (patch)
treec8092ed1fee23f044f9ac622a7263591901b6b35 /kernel/ns_cgroup.c
parenteb2d55a32b9a91bca0dea299eedb560bafa8b14e (diff)
downloadtalos-obmc-linux-7855c35da7ba16b389d17710401c4a55a3ea2102.tar.gz
talos-obmc-linux-7855c35da7ba16b389d17710401c4a55a3ea2102.zip
rlimits: split sys_setrlimit
Create do_setrlimit from sys_setrlimit and declare do_setrlimit in the resource header. This is the first phase to have generic do_prlimit which allows to be called from read, write and compat rlimits code. The new do_setrlimit also accepts a task pointer to change the limits of. Currently, it cannot be other than current, but this will change with locking later. Also pass tsk->group_leader to security_task_setrlimit to check whether current is allowed to change rlimits of the process and not its arbitrary thread because it makes more sense given that rlimit are per process and not per-thread. Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'kernel/ns_cgroup.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud