diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-03-22 22:24:52 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-22 23:36:02 +0100 |
commit | 5c38065e021bc76f97fc08997f6d7fc7ea3fb7a7 (patch) | |
tree | b7a7e4c70c597fb4abbbdf45350e25fb08edb7b1 /kernel/ptrace.c | |
parent | sparc/syscall: fix syscall_get_arch (diff) | |
download | linux-5c38065e021bc76f97fc08997f6d7fc7ea3fb7a7.tar.xz linux-5c38065e021bc76f97fc08997f6d7fc7ea3fb7a7.zip |
seccomp: check in_compat_syscall, not is_compat_task, in strict mode
Seccomp wants to know the syscall bitness, not the caller task bitness,
when it selects the syscall whitelist.
As far as I know, this makes no difference on any architecture, so it's
not a security problem. (It generates identical code everywhere except
sparc, and, on sparc, the syscall numbering is the same for both ABIs.)
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions