IMA: handle comments in policy
authorEric Paris <eparis@redhat.com>
Tue, 20 Apr 2010 14:21:24 +0000 (10:21 -0400)
committerJames Morris <jmorris@namei.org>
Tue, 20 Apr 2010 23:58:16 +0000 (09:58 +1000)
commit7233e3ee22b1506723411fe437bcf69f678e8cdd
tree3d84d037890a9918ed02b89fde875fd6e6cd3b10
parent28ef4002ec7b4be27f1110b83e255df8159c786a
IMA: handle comments in policy

IMA policy load parser will reject any policies with a comment.  This patch
will allow the parser to just ignore lines which start with a #.  This is not
very robust.  # can ONLY be used at the very beginning of a line.  Inline
comments are not allowed.

Signed-off-by: Eric Paris
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/integrity/ima/ima_policy.c