]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit910949a66839ff5f59fede5b7cb68ecf1453e22c
tree6842924dba1c4af0397d06aa4b6363e8c26c220e
parent0de085bb474f64e4fdb2f1ff3268590792648c7b
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