diff options
| author | 2020-04-15 12:15:01 +0800 | |
|---|---|---|
| committer | 2020-09-08 16:26:45 -0700 | |
| commit | a23042882ff29ae2df04f46ac0d4c50f66e7e497 (patch) | |
| tree | 1651c0bb38233d1a5411df139e1e1baf99cad481 /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | seccomp: Use current_pt_regs() instead of task_pt_regs(current) (diff) | |
| download | linux-dev-a23042882ff29ae2df04f46ac0d4c50f66e7e497.tar.xz linux-dev-a23042882ff29ae2df04f46ac0d4c50f66e7e497.zip | |
selftests/seccomp: Use bitwise instead of arithmetic operator for flags
This silences the following coccinelle warning:
"WARNING: sum of probable bitmasks, consider |"
tools/testing/selftests/seccomp/seccomp_bpf.c:3131:17-18: WARNING: sum of probable bitmasks, consider |
tools/testing/selftests/seccomp/seccomp_bpf.c:3133:18-19: WARNING: sum of probable bitmasks, consider |
tools/testing/selftests/seccomp/seccomp_bpf.c:3134:18-19: WARNING: sum of probable bitmasks, consider |
tools/testing/selftests/seccomp/seccomp_bpf.c:3135:18-19: WARNING: sum of probable bitmasks, consider |
Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1586924101-65940-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
