diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-12-10 00:34:05 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2018-12-12 04:22:44 -0800 |
commit | 64ac54625924e226611d53497a941affaddb0a23 (patch) | |
tree | 4d723ecbe196b872dfa973b634bd778fba2b5b60 /vendor/github.com/opencontainers/selinux/go-selinux/selinux_stub.go | |
parent | 1f547b2936af06656eaf579c3adaf8f345d227fc (diff) | |
download | podman-64ac54625924e226611d53497a941affaddb0a23.tar.gz podman-64ac54625924e226611d53497a941affaddb0a23.tar.bz2 podman-64ac54625924e226611d53497a941affaddb0a23.zip |
Set Socket label for contianer
This will allow container processes to write to the CRIU socket that gets injected
into the container.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/opencontainers/selinux/go-selinux/selinux_stub.go')
-rw-r--r-- | vendor/github.com/opencontainers/selinux/go-selinux/selinux_stub.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/opencontainers/selinux/go-selinux/selinux_stub.go b/vendor/github.com/opencontainers/selinux/go-selinux/selinux_stub.go index 5abf8a362..99efa155a 100644 --- a/vendor/github.com/opencontainers/selinux/go-selinux/selinux_stub.go +++ b/vendor/github.com/opencontainers/selinux/go-selinux/selinux_stub.go @@ -96,6 +96,19 @@ func SetExecLabel(label string) error { return nil } +/* +SetSocketLabel sets the SELinux label that the kernel will use for any programs +that are executed by the current process thread, or an error. +*/ +func SetSocketLabel(label string) error { + return nil +} + +// SocketLabel retrieves the current socket label setting +func SocketLabel() (string, error) { + return "", nil +} + // Get returns the Context as a string func (c Context) Get() string { return "" |