bump opencontainers/selinux v1.2.1
full diff: opencontainers/selinux@v1.2...v1.2.1 brings in opencontainers/selinux#49 Ignore attempts to setLabels "" on SELinux disabled systems Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
63ad4c7305
commit
5e7d59fc9d
@ -36,7 +36,7 @@ github.com/opencontainers/go-digest c9281466c8b2f606084ac71339773efd177436e7
|
||||
github.com/opencontainers/image-spec v1.0.1
|
||||
github.com/opencontainers/runc 12f6a991201fdb8f82579582d5e00e28fba06d0a
|
||||
github.com/opencontainers/runtime-spec eba862dc2470385a233c7507392675cbeadf7353
|
||||
github.com/opencontainers/selinux v1.2
|
||||
github.com/opencontainers/selinux v1.2.1
|
||||
github.com/pkg/errors v0.8.0
|
||||
github.com/pmezard/go-difflib v1.0.0
|
||||
github.com/prometheus/client_golang f4fb1b73fb099f396a7f0036bf86aa8def4ed823
|
||||
|
5
vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
generated
vendored
5
vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go
generated
vendored
@ -333,6 +333,11 @@ func writeCon(fpath string, val string) error {
|
||||
if fpath == "" {
|
||||
return ErrEmptyPath
|
||||
}
|
||||
if val == "" {
|
||||
if !GetEnabled() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
out, err := os.OpenFile(fpath, os.O_WRONLY, 0)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user