Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+8
+8
security/apparmor/include/cred.h
··· 114 114 return aa_get_label(l); 115 115 } 116 116 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 + */ 117 124 static inline void __end_current_label_crit_section(struct aa_label *label, 118 125 bool needput) 119 126 { ··· 144 137 145 138 /** 146 139 * __begin_current_label_crit_section - current's confining label 140 + * @needput: store whether the label needs to be put when ending crit section 147 141 * 148 142 * Returns: up to date confining label or the ns unconfined label (NOT NULL) 149 143 *