[PATCH 24/97] LSM: FIXUP - security_secctx_to_secid

From
Casey Schaufler <casey@schaufler-ca.com>
Date
2019-02-28 22:20:16
Also in
selinux
Reply to
Casey Schaufler, 2019-02-28
Initialize l in security_secctx_to_secid

Signed-off-by: Casey Schaufler <casey@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
Thread (79 messages) 79 messages, 3 authors, last reply 2019-03-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help