Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add querying by LIKE to the augeas table. This fixes querying the `/augeas` part of the tree, and should additionally improve the behavior around file paths. Prior, there is implicit magic that makes the path part work -- we append `//*` the augeas recursive wildcard. This combined with sqlite filtering made it appear to work for simple trailing wildcards. But, it would fail for leading or infix wildcards. This replaces that with some additional routines to allow wildcard conversion. The UX is a bit weird, in that `path` should _not_ have a trailing wildcard, and the behavior of `%` vs `%%` is different. But this feels like the simplest bridge between osquery and augeas. This is mostly clearly visible with `select * from augeas where node like "/augeas/load/%";` returning zero results. We could consider whether to keep using `/files//*` as the default pattern or not.
- Loading branch information