OpenCloudOS-Kernel/security/smack
Alan Cox 3b9fc37280 smack: off by one error
Consider the input case of a rule that consists entirely of non space
symbols followed by a \0. Say 64 + \0

In this case strlen(data) = 64
kzalloc of subject and object are 64 byte objects
sscanfdata, "%s %s %s", subject, ...)

will put 65 bytes into subject.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Cc: stable@vger.kernel.org
Signed-off-by: James Morris <james.l.morris@oracle.com>
2012-07-30 15:04:17 +10:00
..
Kconfig Smack: Simplified Mandatory Access Control Kernel 2008-02-05 09:44:20 -08:00
Makefile Smack: Simplified Mandatory Access Control Kernel 2008-02-05 09:44:20 -08:00
smack.h Smack: onlycap limits on CAP_MAC_ADMIN 2012-07-13 15:49:23 -07:00
smack_access.c Smack: onlycap limits on CAP_MAC_ADMIN 2012-07-13 15:49:23 -07:00
smack_lsm.c Smack: onlycap limits on CAP_MAC_ADMIN 2012-07-13 15:49:23 -07:00
smackfs.c smack: off by one error 2012-07-30 15:04:17 +10:00