seccomp: Use PR_SPEC_FORCE_DISABLE
commit b849a812f7 upstream
Use PR_SPEC_FORCE_DISABLE in seccomp() because seccomp does not allow to
widen restrictions.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Srivatsa S. Bhat <srivatsa@csail.mit.edu>
Reviewed-by: Matt Helsley (VMware) <matt.helsley@gmail.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Bo Gan <ganb@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3f9cb20f91
commit
a08c3f484c
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ static inline void spec_mitigate(struct task_struct *task,
|
|||
int state = arch_prctl_spec_ctrl_get(task, which);
|
||||
|
||||
if (state > 0 && (state & PR_SPEC_PRCTL))
|
||||
arch_prctl_spec_ctrl_set(task, which, PR_SPEC_DISABLE);
|
||||
arch_prctl_spec_ctrl_set(task, which, PR_SPEC_FORCE_DISABLE);
|
||||
}
|
||||
|
||||
static inline void seccomp_assign_mode(struct task_struct *task,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue