From: Oxana Kharitonova <webprosto@gmail.com>
To: mic@digikod.net, brauner@kernel.org, viro@zeniv.linux.org.uk,
gnoack@google.com, utilityemal77@gmail.com
Cc: linux-security-module@vger.kernel.org,
linux-fsdevel@vger.kernel.org, webprosto@gmail.com,
landlock@lists.linux.dev
Subject: [PATCH v2 1/4] ipc: Move MQUEUE_MAGIC to a shared header
Date: Mon, 2 Nov 2026 14:45:57 +0000 [thread overview]
Message-ID: <20261102144708.920232-2-webprosto@gmail.com> (raw)
In-Reply-To: <20261102144708.920232-1-webprosto@gmail.com>
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@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
+
struct ipc_ids {
int in_use;
unsigned short seq;
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index d1dd36a651b0..0f00e4efcb60 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -47,7 +47,6 @@ struct mqueue_fs_context {
bool newns; /* Set if newly created ipc namespace */
};
-#define MQUEUE_MAGIC 0x19800202
#define DIRENT_SIZE 20
#define FILENT_SIZE 80
--
2.43.0
next prev parent reply other threads:[~2026-11-02 14:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 14:45 [PATCH v2 0/4] Landlock: Restrict POSIX message queue creation and access Oxana Kharitonova
2026-11-02 14:45 ` Oxana Kharitonova [this message]
2026-11-02 14:51 ` [PATCH v2 1/4] ipc: Move MQUEUE_MAGIC to a shared header sashiko-bot
2026-11-02 14:45 ` [PATCH v2 2/4] Landlock: Enforce MAKE_REG for POSIX message queue creation Oxana Kharitonova
2026-11-02 15:06 ` sashiko-bot
2026-11-03 2:42 ` kernel test robot
2026-11-02 14:45 ` [PATCH v2 3/4] Landlock: Add POSIX message queue scoping Oxana Kharitonova
2026-11-02 15:09 ` sashiko-bot
2026-11-03 4:55 ` kernel test robot
2026-11-03 5:22 ` kernel test robot
2026-11-02 14:46 ` [PATCH v2 4/4] samples/landlock: Add POSIX message queue scoping to sandboxer Oxana Kharitonova
2026-11-02 15:22 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261102144708.920232-2-webprosto@gmail.com \
--to=webprosto@gmail.com \
--cc=brauner@kernel.org \
--cc=gnoack@google.com \
--cc=landlock@lists.linux.dev \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=mic@digikod.net \
--cc=utilityemal77@gmail.com \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.