* [PATCH] apparmor: remove unused PROF_* macros
@ 2023-08-07 9:39 GONG, Ruiqi
2023-08-22 19:28 ` John Johansen
0 siblings, 1 reply; 2+ messages in thread
From: GONG, Ruiqi @ 2023-08-07 9:39 UTC (permalink / raw)
To: John Johansen, Paul Moore, James Morris, Serge E . Hallyn
Cc: apparmor, linux-security-module, linux-kernel, Xiu Jianfeng,
Wang Weiyang, gongruiqi
From: "GONG, Ruiqi" <gongruiqi1@huawei.com>
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>
---
security/apparmor/include/policy.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/security/apparmor/include/policy.h b/security/apparmor/include/policy.h
index 545f791cabda..ed9a8669af80 100644
--- a/security/apparmor/include/policy.h
+++ b/security/apparmor/include/policy.h
@@ -254,9 +254,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)
/**
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] apparmor: remove unused PROF_* macros
2023-08-07 9:39 [PATCH] apparmor: remove unused PROF_* macros GONG, Ruiqi
@ 2023-08-22 19:28 ` John Johansen
0 siblings, 0 replies; 2+ messages in thread
From: John Johansen @ 2023-08-22 19:28 UTC (permalink / raw)
To: GONG, Ruiqi, Paul Moore, James Morris, Serge E . Hallyn
Cc: apparmor, linux-security-module, linux-kernel, Xiu Jianfeng,
Wang Weiyang
On 8/7/23 02:39, GONG, Ruiqi wrote:
> From: "GONG, Ruiqi" <gongruiqi1@huawei.com>
>
> 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>
sorry, I seem to have dropped my reply to this, I have
pulled this into apparmor-next
Acked-by: John Johansen <john.johansen@canonical.com>
> ---
> security/apparmor/include/policy.h | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/security/apparmor/include/policy.h b/security/apparmor/include/policy.h
> index 545f791cabda..ed9a8669af80 100644
> --- a/security/apparmor/include/policy.h
> +++ b/security/apparmor/include/policy.h
> @@ -254,9 +254,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)
>
> /**
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-22 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-07 9:39 [PATCH] apparmor: remove unused PROF_* macros GONG, Ruiqi
2023-08-22 19:28 ` John Johansen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.