Files
twx-linux/security
Alan Cox 4e9cca8302 smack: off by one error
commit 3b9fc37280 upstream.

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>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-08-09 08:22:36 -07:00
..
2012-08-09 08:22:36 -07:00
2012-01-10 10:20:35 -05:00
2012-02-10 09:18:52 +11:00
2012-07-03 21:41:03 +10:00