smack: fix logic in smack_inode_init_security function 61/36361/1
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 26 Nov 2014 14:31:07 +0000 (15:31 +0100)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 5 Mar 2015 12:05:59 +0000 (13:05 +0100)
commit57a6d7499a51ba40e62d4c4ba84212846b210c35
treec8d78f1123d4c9633a78df567da90ab615fe10b3
parent760a6c76a7a8ef4eca045f4bc97c605561005628
smack: fix logic in smack_inode_init_security function

In principle if this function was called with "value" == NULL and "len"
not NULL it could return different results for the "len" compared to a
case where "name" was not NULL. This is a hypothetical case that does
not exist in the kernel, but it's a logic bug nonetheless.

Change-Id: I081705e02c2944eeed1f5ec65891cd20751936b6
Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@samsung.com>
security/smack/smack_lsm.c