]> git.baikalelectronics.ru Git - kernel.git/commit
ima: no need to allocate entry for comment
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 3 Oct 2014 11:40:19 +0000 (14:40 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Sun, 12 Oct 2014 03:28:07 +0000 (23:28 -0400)
commit4b36ccf95019164eaa434c3a8be784147c636b09
treed083a538be224e4c2a25e2380a789cff8d80e455
parent7aabeb6b6cadae54d3c3f3f26a099c242d5feee3
ima: no need to allocate entry for comment

If a rule is a comment, there is no need to allocate an entry.
Move the checking for comments before allocating the entry.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_policy.c