diff options
author | 2009-08-26 18:41:16 +0200 | |
---|---|---|
committer | 2010-07-16 09:48:45 +0200 | |
commit | 8fd00b4d7014b00448eb33cf0590815304769798 (patch) | |
tree | f97cc5b4401dd038e539dae7ad66066383012866 /kernel/sys.c | |
parent | Merge master.kernel.org:/home/rmk/linux-2.6-arm (diff) | |
download | linux-8fd00b4d7014b00448eb33cf0590815304769798.tar.gz linux-8fd00b4d7014b00448eb33cf0590815304769798.tar.bz2 linux-8fd00b4d7014b00448eb33cf0590815304769798.zip |
rlimits: security, add task_struct to setrlimit
Add task_struct to task_setrlimit of security_operations to be able to set
rlimit of task other than current.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Eric Paris <eparis@redhat.com>
Acked-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index e83ddbbaf89d..1ba4522689d4 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -1290,7 +1290,7 @@ SYSCALL_DEFINE2(setrlimit, unsigned int, resource, struct rlimit __user *, rlim) if (resource == RLIMIT_NOFILE && new_rlim.rlim_max > sysctl_nr_open) return -EPERM; - retval = security_task_setrlimit(resource, &new_rlim); + retval = security_task_setrlimit(current, resource, &new_rlim); if (retval) return retval; |