Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 3 of 3) sorted by relevance

/security/apparmor/
Dlabel.c186 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale() argument
190 AA_BUG(!vec); in vec_is_stale()
193 if (profile_is_stale(vec[i])) in vec_is_stale()
200 static bool vec_unconfined(struct aa_profile **vec, int n) in vec_unconfined() argument
204 AA_BUG(!vec); in vec_unconfined()
207 if (!profile_unconfined(vec[i])) in vec_unconfined()
224 static inline int unique(struct aa_profile **vec, int n) in unique() argument
229 AA_BUG(!vec); in unique()
233 int res = profile_cmp(vec[pos], vec[i]); in unique()
238 aa_put_profile(vec[i]); in unique()
[all …]
Dpolicy.c284 profile->label.vec[0] = profile; in aa_alloc_profile()
/security/apparmor/include/
Dlabel.h58 int aa_vec_unique(struct aa_profile **vec, int n, int flags);
59 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len,
134 struct aa_profile *vec[]; member
149 #define labels_ns(X) (vec_ns(&((X)->vec[0]), (X)->size))
151 #define labels_profile(X) ((X)->vec[(X)->size - 1])
158 for ((I).i = 0; ((P) = (L)->vec[(I).i]); ++((I).i))
162 for (++((I).i); ((P) = (L)->vec[(I).i]); ++((I).i))
177 ((P1) = (L1)->vec[(I).i]) && ((P2) = (L2)->vec[(I).j]); \
193 ((P) = (L)->vec[(I).i]); \
209 while ((L)->vec[___i] && (L)->vec[___i]->ns != (NS)) \
[all …]