summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2026-08-04 12:02:24 -0700
committerJohn Johansen <john.johansen@canonical.com>2026-08-10 22:49:43 -0700
commitfbedf6d92e544648a48c054bfc6d494a4866ec14 (patch)
tree1d8f9ba32a66590408c2b7bcf49deb0690cbfdf3 /include/linux/debugobjects.h
parent01a915e8239b7e806605a4ed1c93aab35528a452 (diff)
apparmor: constify aa_label parameters on read-only query helpers
Several label helpers only read from their struct aa_label * arguments: they compare labels, test subset relationships, or check the mediation bitmask, all via direct field/index access. Mark those parameters const struct aa_label * to document intent and let the compiler enforce that the label is not modified. The converted functions are: - label_mediates(), label_mediates_safe() - aa_label_cmp() (and its vec_cmp() helper) - __aa_label_next_not_in_set(), aa_label_is_subset(), aa_label_is_unconfined_subset() - __aa_subj_label_is_cached() - aa_label_next_confined(), aa_label_next_in_merge() These all access the label through direct indexing or manual iterators rather than the label_for_each()/fn_for_each() macros, which are not const-correct and so gate the majority of the remaining label consumers (the print, match, and permission-check paths) from being constified. No functional change. Signed-off-by: John Johansen <john.johansen@canonical.com> Assisted-by: Claude:claude-opus-4.8
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions