]> git.hungrycats.org Git - linux/commit
[PATCH] selinux: check processed security context length
authorAndrew Morton <akpm@osdl.org>
Thu, 3 Jun 2004 00:59:21 +0000 (17:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 00:59:21 +0000 (17:59 -0700)
commit863dacddb3d17e76f1345d2e030d6c481b5d62fd
treeb8a6582d50f43e23735851d1b49f225d3ce44b92
parent2d34e81752929b4213e6f151f2b81de170423b8e
[PATCH] selinux: check processed security context length

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch changes security_context_to_sid to check the length of the
processed security context against the full length of the provided context,
rejecting any further data.

Signed-off-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/ss/mls.c
security/selinux/ss/services.c