Skip to content

Commit 9a0dbdb

Browse files
Xiu Jianfengjrjohansen
authored andcommitted
apparmor: cleanup unused declarations in policy.h
The implementions of these declarations do not exist, remove them all. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent d2fe16e commit 9a0dbdb

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

security/apparmor/include/policy.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ extern enum profile_mode aa_g_profile_mode;
227227
#define profiles_ns(P) ((P)->ns)
228228
#define name_is_shared(A, B) ((A)->hname && (A)->hname == (B)->hname)
229229

230-
void aa_add_profile(struct aa_policy *common, struct aa_profile *profile);
231-
232-
233-
void aa_free_proxy_kref(struct kref *kref);
234230
struct aa_ruleset *aa_alloc_ruleset(gfp_t gfp);
235231
struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy,
236232
gfp_t gfp);
@@ -239,14 +235,12 @@ struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name,
239235
struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat,
240236
const char *base, gfp_t gfp);
241237
void aa_free_profile(struct aa_profile *profile);
242-
void aa_free_profile_kref(struct kref *kref);
243238
struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name);
244239
struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
245240
size_t n);
246241
struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name);
247242
struct aa_profile *aa_fqlookupn_profile(struct aa_label *base,
248243
const char *fqname, size_t n);
249-
struct aa_profile *aa_match_profile(struct aa_ns *ns, const char *name);
250244

251245
ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label,
252246
u32 mask, struct aa_loaddata *udata);

0 commit comments

Comments
 (0)