seccomp: simplify secure_computing()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 24 Sep 2019 06:44:20 +0000 (08:44 +0200)
committerKees Cook <keescook@chromium.org>
Thu, 10 Oct 2019 21:55:24 +0000 (14:55 -0700)
commitfefad9ef58ffc228f7b78b667c2aea8267503350
treebdcfd9137b45daf974fcad729eae74dd57d0b362
parent0eebfed2954f152259cae0ad57b91d3ea92968e8
seccomp: simplify secure_computing()

Afaict, the struct seccomp_data argument to secure_computing() is unused
by all current callers. So let's remove it.
The argument was added in [1]. It was added because having the arch
supply the syscall arguments used to be faster than having it done by
secure_computing() (cf. Andy's comment in [2]). This is not true anymore
though.

/* References */
[1]: 2f275de5d1ed ("seccomp: Add a seccomp_data parameter secure_computing()")
[2]: https://lore.kernel.org/r/CALCETrU_fs_At-hTpr231kpaAd0z7xJN4ku-DvzhRU6cvcJA_w@mail.gmail.com

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Drewry <wad@chromium.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-parisc@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Cc: linux-um@lists.infradead.org
Cc: x86@kernel.org
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20190924064420.6353-1-christian.brauner@ubuntu.com
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/arm/kernel/ptrace.c
arch/arm64/kernel/ptrace.c
arch/parisc/kernel/ptrace.c
arch/s390/kernel/ptrace.c
arch/um/kernel/skas/syscall.c
arch/x86/entry/vsyscall/vsyscall_64.c
include/linux/seccomp.h