Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c71def81 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Greg Kroah-Hartman
Browse files

seccomp: Use PR_SPEC_FORCE_DISABLE



commit b849a812f7eb92e96d1c8239b06581b2cfd8b275 upstream

Use PR_SPEC_FORCE_DISABLE in seccomp() because seccomp does not allow to
widen restrictions.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 036608d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,