[PATCH v2 1/4] ipc: Move MQUEUE_MAGIC to a shared header

Christian Brauner brauner at kernel.org
Fri Nov 6 09:14:36 UTC 2026


On Mon, Nov 02, 2026 at 02:45:57PM +0000, Oxana Kharitonova wrote:
> Move MQUEUE_MAGIC from ipc/mqueue.c to include/linux/ipc_namespace.h so
> it can be shared by code outside of ipc/mqueue.c without duplicating
> the constant.
> 
> Signed-off-by: Oxana Kharitonova <webprosto at gmail.com>
> ---
>  include/linux/ipc_namespace.h | 2 ++
>  ipc/mqueue.c                  | 1 -
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/linux/ipc_namespace.h b/include/linux/ipc_namespace.h
> index 12faca29bbb9..8a15ffe38e9a 100644
> --- a/include/linux/ipc_namespace.h
> +++ b/include/linux/ipc_namespace.h
> @@ -15,6 +15,8 @@
>  
>  struct user_namespace;
>  
> +#define MQUEUE_MAGIC 0x19800202

Should go into include/uapi/linux/magic.h ?



More information about the Linux-security-module-archive mailing list