]> git.baikalelectronics.ru Git - kernel.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)
commit2f691cd04688fae48340392faa7dc866338c9070
treec31c481854862a723ae06c004993d574fe229235
parenta211527748989b1a1d7c4775e9afa2a398d3c373
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