proc: convert the return type of proc_fd_access_allowed() to be boolean
authorQi Zheng <zhengqi.arch@bytedance.com>
Thu, 30 Dec 2021 09:29:03 +0000 (20:29 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 16 Jan 2022 07:39:34 +0000 (18:39 +1100)
commit9cfab172453826b4b9630037c70ed8251616a0ca
tree9a406efc15c5d14282b295cb789c446281cc1782
parenta7dd3aba57f013c5926899ae26b342d83ab4d74d
proc: convert the return type of proc_fd_access_allowed() to be boolean

Convert return type of proc_fd_access_allowed() and the 'allowed' in it to
be boolean since the return type of ptrace_may_access() is boolean.

Link: https://lkml.kernel.org/r/20211219024404.29779-1-zhengqi.arch@bytedance.com
Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
fs/proc/base.c