Fix reading from the rules file
Current slsm_dump_tree
is broken.
A feasible implementation: slsm_dump_tree
is called on open
and serialises the entire ruleset, allocating as much space as it needs. read
then writes out that buffer, close
frees it.
Note that with the these changes and those describe described in #2 (closed), slsm_dump_tree
would have to grab the lock, since allocating might sleep (I think).