diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-08-10 15:01:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 15:01:34 +0000 |
commit | 4e4c4b62fd3be32a6eb8e5b2dfd7d194c580406f (patch) | |
tree | cbce536f7bd27f1b91003e59f823dc7dd8881aaa /vendor/github.com/opencontainers/selinux/go-selinux/rchcon.go | |
parent | 859ffb40ae839007ed7fe673312d39177d12244a (diff) | |
download | podman-4e4c4b62fd3be32a6eb8e5b2dfd7d194c580406f.tar.gz podman-4e4c4b62fd3be32a6eb8e5b2dfd7d194c580406f.tar.bz2 podman-4e4c4b62fd3be32a6eb8e5b2dfd7d194c580406f.zip |
Bump github.com/opencontainers/selinux from 1.8.3 to 1.8.4
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/v1.8.3...v1.8.4)
---
updated-dependencies:
- dependency-name: github.com/opencontainers/selinux
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/opencontainers/selinux/go-selinux/rchcon.go')
-rw-r--r-- | vendor/github.com/opencontainers/selinux/go-selinux/rchcon.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/github.com/opencontainers/selinux/go-selinux/rchcon.go b/vendor/github.com/opencontainers/selinux/go-selinux/rchcon.go new file mode 100644 index 000000000..897ecbac4 --- /dev/null +++ b/vendor/github.com/opencontainers/selinux/go-selinux/rchcon.go @@ -0,0 +1,22 @@ +// +build linux,go1.16 + +package selinux + +import ( + "errors" + "io/fs" + "os" + + "github.com/opencontainers/selinux/pkg/pwalkdir" +) + +func rchcon(fpath, label string) error { + return pwalkdir.Walk(fpath, func(p string, _ fs.DirEntry, _ error) error { + e := setFileLabel(p, label) + // Walk a file tree can race with removal, so ignore ENOENT. + if errors.Is(e, os.ErrNotExist) { + return nil + } + return e + }) +} |