mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git
synced 2026-05-02 21:23:50 -04:00
apparmor: Remove deadcode
aa_label_audit, aa_label_find, aa_label_seq_print and aa_update_label_name were added by commitf1bd904175("apparmor: add the base fns() for domain labels") but never used. aa_profile_label_perm was added by commit637f688dc3("apparmor: switch from profiles to using labels on contexts") but never used. aa_secid_update was added by commitc092921219("apparmor: add support for mapping secids and using secctxes") but never used. aa_split_fqname has been unused since commit3664268f19("apparmor: add namespace lookup fns()") aa_lookup_profile has been unused since commit93c98a484c("apparmor: move exec domain mediation to using labels") aa_audit_perms_cb was only used by aa_profile_label_perm (see above). All of these commits are from around 2017. Remove them. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
committed by
John Johansen
parent
648e45d724
commit
75535669c9
@@ -291,8 +291,6 @@ bool aa_label_replace(struct aa_label *old, struct aa_label *new);
|
||||
bool aa_label_make_newest(struct aa_labelset *ls, struct aa_label *old,
|
||||
struct aa_label *new);
|
||||
|
||||
struct aa_label *aa_label_find(struct aa_label *l);
|
||||
|
||||
struct aa_profile *aa_label_next_in_merge(struct label_it *I,
|
||||
struct aa_label *a,
|
||||
struct aa_label *b);
|
||||
@@ -320,8 +318,6 @@ void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns,
|
||||
struct aa_label *label, int flags, gfp_t gfp);
|
||||
void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags,
|
||||
gfp_t gfp);
|
||||
void aa_label_audit(struct audit_buffer *ab, struct aa_label *label, gfp_t gfp);
|
||||
void aa_label_seq_print(struct seq_file *f, struct aa_label *label, gfp_t gfp);
|
||||
void aa_label_printk(struct aa_label *label, gfp_t gfp);
|
||||
|
||||
struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str,
|
||||
|
||||
Reference in New Issue
Block a user