Skip to content

Commit

Permalink
lsm: fix a missing security_uring_allowed() prototype
Browse files Browse the repository at this point in the history
The !CONFIG_SECURITY dummy function was declared as an "extern int"
instead of "static inline" (likely a copy-n-paste error), which was
was causing the compiler to complain about a missing prototype.  This
patch converts the dummy definition over to a "static inline" to resolve
the compiler problems.

Reported-by: kernel test robot <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: c6ad9fd ("io_uring,lsm,selinux: add LSM hooks for io_uring_setup()")
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
pcmoore committed Feb 10, 2025
1 parent c6ad9fd commit 4632cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/security.h
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,7 @@ static inline int security_uring_cmd(struct io_uring_cmd *ioucmd)
{
return 0;
}
extern int security_uring_allowed(void)
static inline int security_uring_allowed(void)
{
return 0;
}
Expand Down

0 comments on commit 4632cd0

Please sign in to comment.