2023-11-02 02:11:35 +00:00
|
|
|
//go:build linux
|
|
|
|
|
|
|
|
|
|
package table
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/fleetdm/fleet/v4/orbit/pkg/table/crowdstrike/falcon_kernel_check"
|
|
|
|
|
"github.com/fleetdm/fleet/v4/orbit/pkg/table/crowdstrike/falconctl"
|
|
|
|
|
"github.com/fleetdm/fleet/v4/orbit/pkg/table/cryptsetup"
|
2024-12-04 17:10:09 +00:00
|
|
|
"github.com/fleetdm/fleet/v4/orbit/pkg/table/dataflattentable"
|
2024-06-27 17:26:20 +00:00
|
|
|
"github.com/rs/zerolog/log"
|
2023-11-02 02:11:35 +00:00
|
|
|
|
|
|
|
|
"github.com/osquery/osquery-go"
|
|
|
|
|
)
|
|
|
|
|
|
2024-06-14 20:56:58 +00:00
|
|
|
func PlatformTables(_ PluginOpts) ([]osquery.OsqueryPlugin, error) {
|
2023-11-02 02:11:35 +00:00
|
|
|
return []osquery.OsqueryPlugin{
|
2024-06-27 17:26:20 +00:00
|
|
|
cryptsetup.TablePlugin(log.Logger), // table name is "cryptsetup_status"
|
|
|
|
|
falconctl.NewFalconctlOptionTable(log.Logger), // table name is "falconctl_option"
|
|
|
|
|
falcon_kernel_check.TablePlugin(log.Logger), // table name is "falcon_kernel_check"
|
2024-12-04 17:10:09 +00:00
|
|
|
dataflattentable.TablePluginExec(log.Logger, "nftables", dataflattentable.JsonType, []string{"nft", "-jat", "list", "ruleset"}, dataflattentable.WithBinDirs("/usr/bin", "/usr/sbin")), // -j (json) -a (show object handles) -t (terse, omit set contents)
|
2024-06-14 20:56:58 +00:00
|
|
|
}, nil
|
2023-11-02 02:11:35 +00:00
|
|
|
}
|