Skip to content

Commit b849a81

Browse files
committed
seccomp: Use PR_SPEC_FORCE_DISABLE
Use PR_SPEC_FORCE_DISABLE in seccomp() because seccomp does not allow to widen restrictions. Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 356e4bf commit b849a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/seccomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static inline void spec_mitigate(struct task_struct *task,
239239
int state = arch_prctl_spec_ctrl_get(task, which);
240240

241241
if (state > 0 && (state & PR_SPEC_PRCTL))
242-
arch_prctl_spec_ctrl_set(task, which, PR_SPEC_DISABLE);
242+
arch_prctl_spec_ctrl_set(task, which, PR_SPEC_FORCE_DISABLE);
243243
}
244244

245245
static inline void seccomp_assign_mode(struct task_struct *task,

0 commit comments

Comments
 (0)