Thread (2 messages) 2 messages, 1 author, 2025-02-10
STALE534d

[PATCH] lsm: fix a missing security_uring_allowed() prototype

From: Paul Moore <paul@paul-moore.com>
Date: 2025-02-10 03:41:45
Subsystem: security subsystem, the rest · Maintainers: Paul Moore, James Morris, "Serge E. Hallyn", Linus Torvalds

The !CONFIG_SECURITY dummy function was missing an inline attribute which
caused the compiler to complain about a missing prototype.  This patch
adds the missing inline attribute.

Reported-by: kernel test robot <redacted>
Reported-by: Stephen Rothwell <redacted>
Closes: https://lore.kernel.org/oe-kbuild-all/202502081912.TeokpAAe-lkp@intel.com/ (local)
Fixes: c6ad9fdbd44b ("io_uring,lsm,selinux: add LSM hooks for io_uring_setup()")
Signed-off-by: Paul Moore <paul@paul-moore.com>
---
 include/linux/security.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/security.h b/include/linux/security.h
index 3e68f8468a22..fab843d5e621 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -2376,7 +2376,7 @@ static inline int security_uring_cmd(struct io_uring_cmd *ioucmd)
 {
 	return 0;
 }
-extern int security_uring_allowed(void)
+extern inline int security_uring_allowed(void)
 {
 	return 0;
 }
-- 
2.48.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help