Add --verbose flag to fleetd_tables (needed when osqueryd runs in verbose mode) (#12504)

Found while load testing the macOS CIS benchmark policy queries using
`fleetd_tables` as an extension (#10292).

Basically, osqueryd passes the `--verbose` flag to the extension, so we
need to add it here to not fail the extension execution.
This commit is contained in:
Lucas Manuel Rodriguez 2023-06-27 10:42:48 -03:00 committed by GitHub
parent 37884f2d0e
commit 7a33a108cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

3
.gitignore vendored
View file

@ -94,3 +94,6 @@ orbit/cmd/desktop/manifest.xml
orbit/cmd/desktop/resource.syso
orbit/cmd/orbit/manifest.xml
orbit/cmd/orbit/resource.syso
# Residual files when building fleetd_tables extension.
fleetd_tables_*

View file

@ -16,6 +16,8 @@ var (
socket = flag.String("socket", "", "Path to the extensions UNIX domain socket")
timeout = flag.Int("timeout", 3, "Seconds to wait for autoloaded extensions")
interval = flag.Int("interval", 3, "Seconds delay between connectivity checks")
// verbose must be set because osqueryd will set it on the extension when running in verbose mode.
_ = flag.Bool("verbose", false, "Enable verbose informational messages")
)
func main() {