diff options
author | 2025-06-22 04:09:06 -0700 | |
---|---|---|
committer | 2025-07-15 22:39:43 -0700 | |
commit | 6afb0a7bc95a61e40c38c58e2bcf6c88fff68d67 (patch) | |
tree | 3a52a56e6c9d89db377b6409179df9d8119b4564 | |
parent | apparmor: make __begin_current_label_crit_section() indicate whether put is needed (diff) | |
download | wireguard-linux-6afb0a7bc95a61e40c38c58e2bcf6c88fff68d67.tar.xz wireguard-linux-6afb0a7bc95a61e40c38c58e2bcf6c88fff68d67.zip |
apparmor: update kernel doc comments for xxx_label_crit_section
Add a kernel doc header for __end_current_label_crit_section(), and
update the header for __begin_current_label_crit_section().
Fixes: b42ecc5f58ef ("apparmor: make __begin_current_label_crit_section() indicate whether put is needed")
Signed-off-by: John Johansen <john.johansen@canonical.com>
-rw-r--r-- | security/apparmor/include/cred.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/security/apparmor/include/cred.h b/security/apparmor/include/cred.h index de6ec4969598..b028e4c13b6f 100644 --- a/security/apparmor/include/cred.h +++ b/security/apparmor/include/cred.h @@ -114,6 +114,13 @@ static inline struct aa_label *aa_get_current_label(void) return aa_get_label(l); } +/** + * __end_current_label_crit_section - end crit section begun with __begin_... + * @label: label obtained from __begin_current_label_crit_section + * @needput: output: bool set by __begin_current_label_crit_section + * + * Returns: label to use for this crit section + */ static inline void __end_current_label_crit_section(struct aa_label *label, bool needput) { @@ -137,6 +144,7 @@ static inline void end_current_label_crit_section(struct aa_label *label) /** * __begin_current_label_crit_section - current's confining label + * @needput: store whether the label needs to be put when ending crit section * * Returns: up to date confining label or the ns unconfined label (NOT NULL) * |