Backport: emperor, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
str %= quoted_string | unquoted_word;
estr %= equoted_string | unquoted_word;
- spaces = +lit(' ');
+ spaces = +(lit(' ') | lit('\n') | lit('\t'));
+
// match := [pool[=]<poolname> [namespace[=]<namespace>] | auid <123>] [object_prefix <prefix>]
pool_name %= -(spaces >> lit("pool") >> (lit('=') | spaces) >> str);
" allow pool foo rwx; allow pool bar r ",
" allow pool foo rwx; allow pool bar r ",
" allow wx pool taco",
+ "\tallow\nwx\tpool \n taco\t",
"allow r pool foo object_prefix blah ; allow w auid 5",
"allow class-read object_prefix rbd_children, allow pool libvirt-pool-test rwx",
"allow class-read object_prefix rbd-children, allow pool libvirt_pool_test rwx",