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>
This commit is contained in:
@@ -412,7 +412,8 @@ static int cap_task_getioprio(struct task_struct *p)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cap_task_setrlimit(unsigned int resource, struct rlimit *new_rlim)
|
||||
static int cap_task_setrlimit(struct task_struct *p, unsigned int resource,
|
||||
struct rlimit *new_rlim)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user