]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: fix documentation mismatches in val_mask_to_str and socket functions
authorPeng Jiang <jiang.peng9@zte.com.cn>
Mon, 23 Jun 2025 06:41:11 +0000 (14:41 +0800)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 20 Jul 2025 09:19:28 +0000 (02:19 -0700)
commitf9c9dce01e9640d94a37304bddc97b738ee4ac35
treef792896b0c00e8d2dc0a7bcb7ecc770a8c9bf484
parent4ce7d3cf5ad846a8843f8afc78de2a8309f74f12
apparmor: fix documentation mismatches in val_mask_to_str and socket functions

This patch fixes kernel-doc warnings:
1. val_mask_to_str:
- Added missing descriptions for `size` and `table` parameters.
- Removed outdated str_size and chrs references.
2. Socket Functions:
- Makes non-null requirements clear for socket/address args.
- Standardizes return values per kernel conventions.
- Adds Unix domain socket protocol details.

These changes silence doc validation warnings and improve accuracy for
AppArmor LSM docs.

Signed-off-by: Peng Jiang <jiang.peng9@zte.com.cn>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/lib.c
security/apparmor/lsm.c