]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs: Use in_group_or_capable() helper to simplify the code
authorHongbo Li <lihongbo22@huawei.com>
Fri, 16 Aug 2024 06:38:49 +0000 (14:38 +0800)
committerChristian Brauner <brauner@kernel.org>
Fri, 30 Aug 2024 06:22:37 +0000 (08:22 +0200)
commit1aeb6defd11f28cf5d474f0a00875323c0d143b3
treed0a940aa7e35175f21757079e1e1a1fe362931af
parentb381fbbccb4cb60aefa1ab7f8e3766ddb4a461db
fs: Use in_group_or_capable() helper to simplify the code

Since in_group_or_capable has been exported, we can use
it to simplify the code when check group and capable.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Link: https://lore.kernel.org/r/20240816063849.1989856-1-lihongbo22@huawei.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/posix_acl.c