summaryrefslogtreecommitdiff
path: root/vendor/github.com/moby/buildkit/cmd/buildkitd/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/moby/buildkit/cmd/buildkitd/config/config.go')
-rw-r--r--vendor/github.com/moby/buildkit/cmd/buildkitd/config/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/moby/buildkit/cmd/buildkitd/config/config.go b/vendor/github.com/moby/buildkit/cmd/buildkitd/config/config.go
index fe3e7ffa0d..1841fefe1a 100644
--- a/vendor/github.com/moby/buildkit/cmd/buildkitd/config/config.go
+++ b/vendor/github.com/moby/buildkit/cmd/buildkitd/config/config.go
@@ -87,6 +87,10 @@ type OCIConfig struct {
// Decoding this is delayed in order to remove the dependency from this
// config pkg to stargz snapshotter's config pkg.
StargzSnapshotterConfig toml.Primitive `toml:"stargzSnapshotter"`
+
+ // ApparmorProfile is the name of the apparmor profile that should be used to constrain build containers.
+ // The profile should already be loaded (by a higher level system) before creating a worker.
+ ApparmorProfile string `toml:"apparmor-profile"`
}
type ContainerdConfig struct {
@@ -98,6 +102,10 @@ type ContainerdConfig struct {
GCConfig
NetworkConfig
Snapshotter string `toml:"snapshotter"`
+
+ // ApparmorProfile is the name of the apparmor profile that should be used to constrain build containers.
+ // The profile should already be loaded (by a higher level system) before creating a worker.
+ ApparmorProfile string `toml:"apparmor-profile"`
}
type GCPolicy struct {