buildkit/executor/oci
Brian Goff d9834f872c
Add support for apparmor/selinux
Set's an apparmor profile on the OCI spec if one is configred on the
worker.
Adds selinux labels to containers (only added if selinux is enabled on
the system).

This assumes that the specified apparmor profile is already loaded on
the system and does not try to load it or even check if it is loaded.

SELinux support requires the `selinux` build tag to be added.
Likewise, `runc` would require both the `apparmor` and `selinux` build
tags.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>

Vendored go-selinux to v1.8.0
Fixed tests

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 68bb095353)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-02-04 22:01:34 +01:00
..
hosts.go Add hostname specifying for building 2020-10-14 14:45:36 +08:00
mounts.go Refactor OCI Spec generation to use oci.SpecOpts more 2020-07-31 02:49:39 +10:00
mounts_test.go Refactor OCI Spec generation to use oci.SpecOpts more 2020-07-31 02:49:39 +10:00
resolvconf.go upgrade errors checks to Is() 2020-04-18 22:53:38 -07:00
resolvconf_test.go executor/oci: add TestResolvConfNotExist 2019-10-10 23:24:17 +00:00
spec.go Add support for apparmor/selinux 2021-02-04 22:01:34 +01:00
spec_unix.go Add support for apparmor/selinux 2021-02-04 22:01:34 +01:00
spec_windows.go Add support for apparmor/selinux 2021-02-04 22:01:34 +01:00
user.go executor/oci.GetUser(): remove unused context 2020-07-30 11:31:03 +02:00