libminijail: Fix minijail_parse_seccomp_filters to ignore comment lines.

Also fixes minijail_parse_seccomp_filters to report the correct line
number of an invalid line in a policy file.

BUG=chromium-os:21690
TEST=Manually tested the following cases:
1. A comment line that starts with '#' but contains no ':' is ignored.
2. A comment line that starts with '#' and also contains ':' is ignored.
3. The line number of invalid filter lines are reported correctly.
4. Valid filter lines are parsed correctly.

Change-Id: Iadacfae6c0b6c03fcf44e7e419d2635cb849e7a1
Reviewed-on: http://gerrit.chromium.org/gerrit/10104
Reviewed-by: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
1 file changed