]> git.baikalelectronics.ru Git - kernel.git/commit
ima: ignore empty and with whitespaces policy lines
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 3 Oct 2014 11:40:20 +0000 (14:40 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Sun, 12 Oct 2014 03:29:19 +0000 (23:29 -0400)
commit7cc785a7bec9dfe4a9c999fdc8d63152c97ef10c
tree446106018f0d880b1e2dd3da0124bb3cfc03f5c3
parent4b36ccf95019164eaa434c3a8be784147c636b09
ima: ignore empty and with whitespaces policy lines

Empty policy lines cause parsing failures which is, especially
for new users, hard to spot. This patch prevents it.

Changes in v2:
* strip leading blanks and tabs in rules to prevent parsing failures

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