buildkit/executor
Brian Goff 68bb095353 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>
2021-01-27 23:40:43 +00:00
..
containerdexecutor Add support for apparmor/selinux 2021-01-27 23:40:43 +00:00
oci Add support for apparmor/selinux 2021-01-27 23:40:43 +00:00
runcexecutor Add support for apparmor/selinux 2021-01-27 23:40:43 +00:00
executor.go executor: change mount to struct 2020-11-02 22:20:51 -08:00
stubs.go executor: remove stub files from rootfs 2020-10-18 23:39:17 -07:00