Skip to content

Commit

Permalink
apparmor: remove unused PROF_* macros
Browse files Browse the repository at this point in the history
The last usage of PROF_{ADD,REPLACE} were removed by commit 18e99f1
("apparmor: provide finer control over policy management"). So remove
these two unused macros.

Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
  • Loading branch information
GONG, Ruiqi authored and John Johansen committed Aug 8, 2023
1 parent 980a580 commit efea5b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions security/apparmor/include/policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,6 @@ ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label,
char *name, size_t size);
void __aa_profile_list_release(struct list_head *head);

#define PROF_ADD 1
#define PROF_REPLACE 0

#define profile_unconfined(X) ((X)->mode == APPARMOR_UNCONFINED)

/**
Expand Down

0 comments on commit efea5b0

Please sign in to comment.