diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-09 15:02:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 15:02:48 -0500 |
commit | 4511cb3852cae5ca2ef3ee66c8e21699075b4e78 (patch) | |
tree | 599ff0d2cd1b8bcb702984c4dfd33e93e11897b7 /vendor/github.com/opencontainers/selinux/go-selinux/label | |
parent | 43567c6539e2eb2d574f3d63afbf2a7ac0394309 (diff) | |
parent | 0cb10eedb3c9ed14b057a25d9c126e96e2bc58b2 (diff) | |
download | podman-4511cb3852cae5ca2ef3ee66c8e21699075b4e78.tar.gz podman-4511cb3852cae5ca2ef3ee66c8e21699075b4e78.tar.bz2 podman-4511cb3852cae5ca2ef3ee66c8e21699075b4e78.zip |
Merge pull request #8659 from containers/dependabot/go_modules/github.com/opencontainers/selinux-1.7.0
Bump github.com/opencontainers/selinux from 1.6.0 to 1.7.0
Diffstat (limited to 'vendor/github.com/opencontainers/selinux/go-selinux/label')
-rw-r--r-- | vendor/github.com/opencontainers/selinux/go-selinux/label/label_selinux.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/github.com/opencontainers/selinux/go-selinux/label/label_selinux.go b/vendor/github.com/opencontainers/selinux/go-selinux/label/label_selinux.go index 10ac15a85..988adc8f4 100644 --- a/vendor/github.com/opencontainers/selinux/go-selinux/label/label_selinux.go +++ b/vendor/github.com/opencontainers/selinux/go-selinux/label/label_selinux.go @@ -27,14 +27,14 @@ var ErrIncompatibleLabel = errors.New("Bad SELinux option z and Z can not be use // the container. A list of options can be passed into this function to alter // the labels. The labels returned will include a random MCS String, that is // guaranteed to be unique. -func InitLabels(options []string) (plabel string, mlabel string, Err error) { +func InitLabels(options []string) (plabel string, mlabel string, retErr error) { if !selinux.GetEnabled() { return "", "", nil } processLabel, mountLabel := selinux.ContainerLabels() if processLabel != "" { defer func() { - if Err != nil { + if retErr != nil { selinux.ReleaseLabel(mountLabel) } }() @@ -57,7 +57,6 @@ func InitLabels(options []string) (plabel string, mlabel string, Err error) { con := strings.SplitN(opt, ":", 2) if !validOptions[con[0]] { return "", "", errors.Errorf("Bad label option %q, valid options 'disable, user, role, level, type, filetype'", con[0]) - } if con[0] == "filetype" { mcon["type"] = con[1] |