|
@@ -214,17 +214,7 @@ static inline struct aa_profile *aa_get_newest_profile(struct aa_profile *p)
|
|
|
return labels_profile(aa_get_newest_label(&p->label));
|
|
|
}
|
|
|
|
|
|
-#define PROFILE_MEDIATES(P, T) ((P)->policy.start[(T)])
|
|
|
-/* safe version of POLICY_MEDIATES for full range input */
|
|
|
-static inline unsigned int PROFILE_MEDIATES_SAFE(struct aa_profile *profile,
|
|
|
- unsigned char class)
|
|
|
-{
|
|
|
- if (profile->policy.dfa)
|
|
|
- return aa_dfa_match_len(profile->policy.dfa,
|
|
|
- profile->policy.start[0], &class, 1);
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
+#define PROFILE_MEDIATES(P, T) ((P)->policy.start[(unsigned char) (T)])
|
|
|
static inline unsigned int PROFILE_MEDIATES_AF(struct aa_profile *profile,
|
|
|
u16 AF) {
|
|
|
unsigned int state = PROFILE_MEDIATES(profile, AA_CLASS_NET);
|