diff options
author | Kees Cook <[email protected]> | 2020-06-19 12:20:15 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2020-07-10 16:01:52 -0700 |
commit | fe4bfff86ec54773df3db79e8112e3b0f820c799 (patch) | |
tree | cee16ed72bbd27d395c6394252ec9a9cd0160862 /lib/mpi/mpi-sub-ui.c | |
parent | 47e33c05f9f07cac3de833e531bcac9ae052c7ca (diff) |
seccomp: Use -1 marker for end of mode 1 syscall list
The terminator for the mode 1 syscalls list was a 0, but that could be
a valid syscall number (e.g. x86_64 __NR_read). By luck, __NR_read was
listed first and the loop construct would not test it, so there was no
bug. However, this is fragile. Replace the terminator with -1 instead,
and make the variable name for mode 1 syscall lists more descriptive.
Cc: Andy Lutomirski <[email protected]>
Cc: Will Drewry <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions