Skip to content

Commit

Permalink
Relabel: relabel links instead of their targets
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Polley <polley@predic8.de>
  • Loading branch information
rrayst committed Mar 21, 2022
1 parent c9f6104 commit 5fcd11b
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 5fcd11b

Please sign in to comment.