diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2018-05-04 09:40:03 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-05-05 00:51:43 +0200 |
commit | b849a812f7eb92e96d1c8239b06581b2cfd8b275 (patch) | |
tree | 88a51b11cb9cac2bc8de0c5faf057310a78da08e /kernel | |
parent | 356e4bfff2c5489e016fdb925adbf12a1e3950ee (diff) | |
download | op-kernel-dev-b849a812f7eb92e96d1c8239b06581b2cfd8b275.zip op-kernel-dev-b849a812f7eb92e96d1c8239b06581b2cfd8b275.tar.gz |
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 <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/seccomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 9f34533..2c819d6 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, |