security: remove unused parameter from security_task_setscheduler()
All security modules shouldn't change sched_param parameter of security_task_setscheduler(). This is not only meaningless, but also make a harmful result if caller pass a static variable. This patch remove policy and sched_param parameter from security_task_setscheduler() becuase none of security module is using it. Cc: James Morris <jmorris@namei.org> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:

committed by
James Morris

parent
9b3056cca0
commit
b0ae198113
@@ -778,10 +778,9 @@ int security_task_setrlimit(struct task_struct *p, unsigned int resource,
|
||||
return security_ops->task_setrlimit(p, resource, new_rlim);
|
||||
}
|
||||
|
||||
int security_task_setscheduler(struct task_struct *p,
|
||||
int policy, struct sched_param *lp)
|
||||
int security_task_setscheduler(struct task_struct *p)
|
||||
{
|
||||
return security_ops->task_setscheduler(p, policy, lp);
|
||||
return security_ops->task_setscheduler(p);
|
||||
}
|
||||
|
||||
int security_task_getscheduler(struct task_struct *p)
|
||||
|
Reference in New Issue
Block a user