Commit d2d90f2f authored by John Johansen's avatar John Johansen Committed by Tim Gardner

UBUNTU: SAUCE: apparmor: add underscores to indicate aa_label_next_not_in_set() use needs locking

Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 821951db
...@@ -232,7 +232,7 @@ for ((I).i = (I).j = 0; \ ...@@ -232,7 +232,7 @@ for ((I).i = (I).j = 0; \
#define label_for_each_not_in_set(I, SET, SUB, P) \ #define label_for_each_not_in_set(I, SET, SUB, P) \
for ((I).i = (I).j = 0; \ for ((I).i = (I).j = 0; \
((P) = aa_label_next_not_in_set(&(I), (SET), (SUB))); \ ((P) = __aa_label_next_not_in_set(&(I), (SET), (SUB))); \
) )
#define fn_for_each_XXX(L, P, FN, ...) \ #define fn_for_each_XXX(L, P, FN, ...) \
...@@ -288,7 +288,7 @@ bool aa_label_init(struct aa_label *label, int size); ...@@ -288,7 +288,7 @@ bool aa_label_init(struct aa_label *label, int size);
struct aa_label *aa_label_alloc(int size, gfp_t gfp); struct aa_label *aa_label_alloc(int size, gfp_t gfp);
bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub); bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub);
struct aa_profile * aa_label_next_not_in_set(struct label_it *I, struct aa_profile *__aa_label_next_not_in_set(struct label_it *I,
struct aa_label *set, struct aa_label *set,
struct aa_label *sub); struct aa_label *sub);
bool aa_label_remove(struct aa_labelset *ls, struct aa_label *label); bool aa_label_remove(struct aa_labelset *ls, struct aa_label *label);
......
...@@ -151,7 +151,7 @@ static int profile_cmp(struct aa_profile *a, struct aa_profile *b); ...@@ -151,7 +151,7 @@ static int profile_cmp(struct aa_profile *a, struct aa_profile *b);
* Returns: profile in @sub that is not in @set, with iterator set pos after * Returns: profile in @sub that is not in @set, with iterator set pos after
* else NULL if @sub is a subset of @set * else NULL if @sub is a subset of @set
*/ */
struct aa_profile * aa_label_next_not_in_set(struct label_it *I, struct aa_profile *__aa_label_next_not_in_set(struct label_it *I,
struct aa_label *set, struct aa_label *set,
struct aa_label *sub) struct aa_label *sub)
{ {
...@@ -198,7 +198,7 @@ bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub) ...@@ -198,7 +198,7 @@ bool aa_label_is_subset(struct aa_label *set, struct aa_label *sub)
if (sub == set) if (sub == set)
return true; return true;
return aa_label_next_not_in_set(&i, set, sub) == NULL; return __aa_label_next_not_in_set(&i, set, sub) == NULL;
} }
void aa_label_destroy(struct aa_label *label) void aa_label_destroy(struct aa_label *label)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment