lsm: fix a missing security_uring_allowed() prototype
Paul Moore
maintainerPATCH 1/1 lsm: fix a missing security_uring_allowed() prototype
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 <[email protected]>
Reported-by Stephen Rothwell <[email protected]>
Fixes c6ad9fdbd44b ("io_uring,lsm,selinux: add LSM hooks for io_uring_setup()")
Signed-off-by Paul Moore <[email protected]>
--- include/linux/security.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/security.h +1 -1
@@ -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 ; }
Signature · 1 line
2.48.1
Paul Moore
maintainerQuoted 19 lines · Paul Moore
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 <[email protected]>Reported-by Stephen Rothwell <[email protected]>Fixes c6ad9fdbd44b ("io_uring,lsm,selinux: add LSM hooks for io_uring_setup()")Signed-off-by Paul Moore <[email protected]>--- include/linux/security.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/security.h +0
-0
include/linux/security.h static inline int security_uring_cmd(struct io_uring_cmd *ioucmd) · line 2379
Quoted 5 lines
include/linux/security.h +1
-1@@ -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 )
The extern also needed to be changed out, essentially doing s/extern int/static inline/. Regardless, this is now merged into lsm/dev.
Quoted 5 lines
include/linux/security.h +0
-1{return 0 ; } --2.48.1
Signature · 1 line
paul-moore.com