]> git.baikalelectronics.ru Git - kernel.git/commit
proc: convert the return type of proc_fd_access_allowed() to be boolean
authorQi Zheng <zhengqi.arch@bytedance.com>
Thu, 20 Jan 2022 02:08:03 +0000 (18:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Jan 2022 06:52:52 +0000 (08:52 +0200)
commitffd374e24aa7270becd0c4c023eb04da9246b461
tree57126c8cd56339bc9086628563a2638050d948f2
parentd7c1bfb3099da8db0644c83cc38d55c60831d3ec
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: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c