Commit Graph

4 Commits

Author SHA1 Message Date
Daniel J Walsh 580356f0c3
SELinux no longer requires a tag.
It should work fine on linux and not linux boxes. Since there
is no glibc added, we can safely compile and run this code
on non SELinux boxes.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-12-21 15:24:28 -05:00
Nalin Dahyabhai 3835460c3b Use pipes for copying
Use the copier package to rework how we handle ADD and COPY.

When evaluating cache for content that's being copied/added in, switch
from (digest the data, check for a cache entry, then maybe copy the data
and create the new layer) to (copy the data and create the new layer,
digesting as we go, check for a cache entry, either commit or discard
the new layer).

Use the copier package for ADD, COPY, and for ensuring that a specified
directory exists in the working container's rootfs.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2020-08-21 12:34:00 -04:00
Nalin Dahyabhai 0160a7757b run: check if SELinux is enabled
When we're built with support for SELinux, refrain from setting process
and mount labels if SELinux isn't detected as enabled at runtime.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #1542
Approved by: rhatdan
2019-04-25 17:50:11 +00:00
Nalin Dahyabhai d54f0eaf30 run: clear default seccomp filter if not enabled
When seccomp is not enabled, make sure to clear any default setting
which runtime-tools supplied for us.  Likewise, if SELinux is not
enabled, don't set a process label or a mount label.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #988
Approved by: rhatdan
2018-09-05 20:34:41 +00:00