• Home
  • Raw
  • Download

Lines Matching +full:resource +full:- +full:attachments

1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * Copyright (C) 1998-2008 Novell/SUSE
8 * Copyright 2009-2010 Canonical Ltd.
31 #include "resource.h"
43 ((_profile)->mode == (_mode)))
49 #define PROFILE_IS_HAT(_profile) ((_profile)->label.flags & FLAG_HAT)
51 #define profile_is_stale(_profile) (label_is_stale(&(_profile)->label))
53 #define on_list_rcu(X) (!list_empty(X) && (X)->prev != LIST_POISON2)
69 /* struct aa_policydb - match engine for a policy
80 /* struct aa_data - generic data structure
94 /* struct aa_profile - basic confinement data
95 * @base - base components of the profile (name, refcount, lists, lock ...)
96 * @label - label this profile is an extension of
115 * @data: hashtable for free-form policy aa_data
120 * attachments are determined by profile X transition rules.
171 #define profiles_ns(P) ((P)->ns)
172 #define name_is_shared(A, B) ((A)->hname && (A)->hname == (B)->hname)
201 #define profile_unconfined(X) ((X)->mode == APPARMOR_UNCONFINED)
204 * aa_get_newest_profile - simple wrapper fn to wrap the label version
213 return labels_profile(aa_get_newest_label(&p->label)); in aa_get_newest_profile()
220 return profile->policy.start[class]; in PROFILE_MEDIATES()
222 return aa_dfa_match_len(profile->policy.dfa, in PROFILE_MEDIATES()
223 profile->policy.start[0], &class, 1); in PROFILE_MEDIATES()
233 return aa_dfa_match_len(profile->policy.dfa, state, (char *) &be_af, 2); in PROFILE_MEDIATES_AF()
237 * aa_get_profile - increment refcount on profile @p
246 kref_get(&(p->label.count)); in aa_get_profile()
252 * aa_get_profile_not0 - increment refcount on profile @p found via lookup
260 if (p && kref_get_unless_zero(&p->label.count)) in aa_get_profile_not0()
267 * aa_get_profile_rcu - increment a refcount profile that can be replaced
280 } while (c && !kref_get_unless_zero(&c->label.count)); in aa_get_profile_rcu()
287 * aa_put_profile - decrement refcount on profile @p
293 kref_put(&p->label.count, aa_label_kref); in aa_put_profile()
301 return profile->audit; in AUDIT_MODE()