[RFC PATCH] LSM: security_read_selinux_policy() can be static
kernel test robot
lkp at intel.com
Sat Jul 18 15:31:36 UTC 2020
Signed-off-by: kernel test robot <lkp at intel.com>
---
services.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index 79a6b462f1fe9..4374c75f91a21 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -3734,8 +3734,8 @@ static int security_read_policy_len(struct selinux_state *state, size_t *len)
* @data: binary policy data
* @len: length of data in bytes
*/
-int security_read_selinux_policy(struct selinux_state *state,
- void **data, size_t *len)
+static int security_read_selinux_policy(struct selinux_state *state,
+ void **data, size_t *len)
{
struct policydb *policydb = &state->ss->policydb;
int rc;
More information about the Linux-security-module-archive
mailing list