mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Update apparmor_kernel_development_guide
@@ -86,6 +86,7 @@ Except in a few special cases NEVER directly use the cred's label. Doing so coul
|
|||||||
Instead use
|
Instead use
|
||||||
- task context: begin_label_crit_section/end_label_crit_section
|
- task context: begin_label_crit_section/end_label_crit_section
|
||||||
- atomic context: __begin_label_crit_section/__end_label_crit_section
|
- atomic context: __begin_label_crit_section/__end_label_crit_section
|
||||||
|
|
||||||
unless you are going to update the task's label. NEVER update the task's label inside of a label_crit_section. Instead
|
unless you are going to update the task's label. NEVER update the task's label inside of a label_crit_section. Instead
|
||||||
- get a reference count on the task's label
|
- get a reference count on the task's label
|
||||||
- update the tasks label via updating the cred
|
- update the tasks label via updating the cred
|
||||||
|
Reference in New Issue
Block a user