Skip to content

Commit 6afb0a7

Browse files
committed
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 <[email protected]>
1 parent 87cc7b0 commit 6afb0a7

File tree

1 file changed

+8
-0
lines changed
  • security/apparmor/include

1 file changed

+8
-0
lines changed

security/apparmor/include/cred.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ static inline struct aa_label *aa_get_current_label(void)
114114
return aa_get_label(l);
115115
}
116116

117+
/**
118+
* __end_current_label_crit_section - end crit section begun with __begin_...
119+
* @label: label obtained from __begin_current_label_crit_section
120+
* @needput: output: bool set by __begin_current_label_crit_section
121+
*
122+
* Returns: label to use for this crit section
123+
*/
117124
static inline void __end_current_label_crit_section(struct aa_label *label,
118125
bool needput)
119126
{
@@ -137,6 +144,7 @@ static inline void end_current_label_crit_section(struct aa_label *label)
137144

138145
/**
139146
* __begin_current_label_crit_section - current's confining label
147+
* @needput: store whether the label needs to be put when ending crit section
140148
*
141149
* Returns: up to date confining label or the ns unconfined label (NOT NULL)
142150
*

0 commit comments

Comments
 (0)