From: Thomas Gleixner Date: Fri, 4 May 2018 07:40:03 +0000 (+0200) Subject: seccomp: Use PR_SPEC_FORCE_DISABLE X-Git-Tag: v4.14.43~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d829fcceb8f532966bfb07fb67cb968374fcbbd2;p=platform%2Fkernel%2Flinux-exynos.git 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: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 55f20ae..6f22d9d 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -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,