]> git.karo-electronics.de Git - linux-beck.git/commit
smack: fix logic in smack_inode_init_security function
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 26 Nov 2014 14:31:07 +0000 (15:31 +0100)
committerCasey Schaufler <casey@schaufler-ca.com>
Mon, 19 Jan 2015 17:18:11 +0000 (09:18 -0800)
commit68390ccf8b0a3470032f053d50379cfd49fbe952
treec31c481854862a723ae06c004993d574fe229235
parent1a28979b322bb28d8f95f76f080c53dbb9a8222d
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.

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