mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
container create: add inspect data to event
When the new `events_container_create_inspect_data` option is enabled in containers.conf set the `ContainersInspectData` event field for each container-create event. The data was requested for the purpose of auditing (e.g., intrusion detection). Jira: https://issues.redhat.com/browse/RUN-1702 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
5
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
5
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@ -273,6 +273,11 @@ type EngineConfig struct {
|
||||
// EventsLogger determines where events should be logged.
|
||||
EventsLogger string `toml:"events_logger,omitempty"`
|
||||
|
||||
// EventsContainerCreateInspectData creates a more verbose
|
||||
// container-create event which includes a JSON payload with detailed
|
||||
// information about the container.
|
||||
EventsContainerCreateInspectData bool `toml:"events_container_create_inspect_data,omitempty"`
|
||||
|
||||
// graphRoot internal stores the location of the graphroot
|
||||
graphRoot string
|
||||
|
||||
|
4
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
4
vendor/github.com/containers/common/pkg/config/containers.conf
generated
vendored
@ -410,6 +410,10 @@ default_sysctls = [
|
||||
#
|
||||
#events_logger = "journald"
|
||||
|
||||
# Creates a more verbose container-create event which includes a JSON payload
|
||||
# with detailed information about the container.
|
||||
#events_container_create_inspect_data = false
|
||||
|
||||
# A is a list of directories which are used to search for helper binaries.
|
||||
#
|
||||
#helper_binaries_dir = [
|
||||
|
Reference in New Issue
Block a user