]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
apparmor: remove unused PROF_* macros
authorGONG, Ruiqi <gongruiqi1@huawei.com>
Mon, 7 Aug 2023 09:39:04 +0000 (17:39 +0800)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 8 Aug 2023 20:24:48 +0000 (13:24 -0700)
The last usage of PROF_{ADD,REPLACE} were removed by commit 18e99f191a8e
("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>
security/apparmor/include/policy.h

index 6e5ec9c37b4879548c759a5c500f6898ea71da76..062a4cd3c36745b4f5eb0d4552a1a57a83a1b593 100644 (file)
@@ -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)
 
 /**