mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-01 18:53:02 +09:00
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
20d036a2e2
commit
d829fcceb8
@@ -239,7 +239,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,
|
||||
|
||||
Reference in New Issue
Block a user