[PATCH 24/97] LSM: FIXUP - security_secctx_to_secid
Casey Schaufler
casey at schaufler-ca.com
Thu Feb 28 22:18:20 UTC 2019
Initialize l in security_secctx_to_secid
Signed-off-by: Casey Schaufler <casey at schaufler-ca.com>
---
security/security.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/security/security.c b/security/security.c
index a0767f8d7822..66f8ee392af5 100644
--- a/security/security.c
+++ b/security/security.c
@@ -1948,6 +1948,7 @@ EXPORT_SYMBOL(security_secid_to_secctx);
int security_secctx_to_secid(const char *secdata, u32 seclen,
struct lsm_export *l)
{
+ lsm_export_init(l);
return call_int_hook(secctx_to_secid, 0, secdata, seclen, l);
}
EXPORT_SYMBOL(security_secctx_to_secid);
--
2.17.0
More information about the Linux-security-module-archive
mailing list