]> git.baikalelectronics.ru Git - kernel.git/commit
SELinux: null-terminate context string in selinux_xfrm_sec_ctx_alloc
authorVenkat Yekkirala <vyekkirala@trustedcs.com>
Tue, 24 Jul 2007 14:53:23 +0000 (09:53 -0500)
committerJames Morris <jmorris@namei.org>
Wed, 25 Jul 2007 16:49:41 +0000 (12:49 -0400)
commit4795cc3fb3e09d5570c3e4f7b33e7596ecfce7ca
tree6842924dba1c4af0397d06aa4b6363e8c26c220e
parent851cec99a1c58bed48c72f510de50417ab574200
SELinux: null-terminate context string in selinux_xfrm_sec_ctx_alloc

xfrm_audit_log() expects the context string to be null-terminated
which currently doesn't happen with user-supplied contexts.

Signed-off-by: Venkat Yekkirala <vyekkirala@TrustedCS.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/xfrm.c