LSM: fix documentation for the task_setscheduler hook
authorDenis Efremov <efremov@ispras.ru>
Tue, 26 Feb 2019 20:49:05 +0000 (23:49 +0300)
committerJames Morris <james.morris@microsoft.com>
Tue, 26 Mar 2019 23:43:23 +0000 (16:43 -0700)
The task_setscheduler hook was changed in the commit
"security: remove unused parameter from security_task_setscheduler()"
(b0ae19811375). The arguments @policy, @lp were removed from the hook.
This patch updates the documentation accordingly.

Signed-off-by: Denis Efremov <efremov@ispras.ru>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
include/linux/lsm_hooks.h

index 85beba1cf03d379dbffc6effad38f942d61e7129..866aa62e900c6a2aa8ed315b25ec075123c67660 100644 (file)
  *     Return 0 if permission is granted.
  * @task_setscheduler:
  *     Check permission before setting scheduling policy and/or parameters of
- *     process @p based on @policy and @lp.
+ *     process @p.
  *     @p contains the task_struct for process.
- *     @policy contains the scheduling policy.
- *     @lp contains the scheduling parameters.
  *     Return 0 if permission is granted.
  * @task_getscheduler:
  *     Check permission before obtaining scheduling information for process