MSM: fix access type length and validation 03/14703/1
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 10 Jan 2014 07:47:25 +0000 (09:47 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 10 Jan 2014 08:23:56 +0000 (10:23 +0200)
commite9e247d4c3b4b662d4847ed53f52ae79682fb835
treebd131937ceabfcbfb7003e3fb02806a16a4caf64
parent29a7b381f53c1b204c11d034bbf27b94034c17bb
MSM: fix access type length and validation

This patch fixes three issues with access type:

- SMACK_ACCESS_TYPE_LENGHT -> SMACK_ACCESS_TYPE_LENGTH
- Changed the value of SMACK_ACCESS_TYPE_LENGTH from 5 to 6.
- String length was calculated with unsafe 'strlen()'. Changed to
  use strlen(type, SMACK_LABEL_LENGTH + 1) instead.

Change-Id: I127d7b2beb8a3258ec1e4a5142f253f842b2fa7a
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
plugins/msm.h
plugins/msmmanifest.c