Skip to content

Commit

Permalink
Merge pull request #173 from rrayst/main
Browse files Browse the repository at this point in the history
Relabel: relabel links instead of their targets
  • Loading branch information
rhatdan committed Mar 23, 2022
2 parents c9f6104 + 5fcd11b commit 7b9ea5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go-selinux/rchcon.go
Expand Up @@ -12,7 +12,7 @@ import (

func rchcon(fpath, label string) error {
return pwalkdir.Walk(fpath, func(p string, _ fs.DirEntry, _ error) error {
e := setFileLabel(p, label)
e := lSetFileLabel(p, label)
// Walk a file tree can race with removal, so ignore ENOENT.
if errors.Is(e, os.ErrNotExist) {
return nil
Expand Down
2 changes: 1 addition & 1 deletion go-selinux/rchcon_go115.go
Expand Up @@ -11,7 +11,7 @@ import (

func rchcon(fpath, label string) error {
return pwalk.Walk(fpath, func(p string, _ os.FileInfo, _ error) error {
e := setFileLabel(p, label)
e := lSetFileLabel(p, label)
// Walk a file tree can race with removal, so ignore ENOENT.
if errors.Is(e, os.ErrNotExist) {
return nil
Expand Down

0 comments on commit 7b9ea5e

Please sign in to comment.