Skip to content

Commit 7b9ea5e

Browse files
authored
Merge pull request #173 from rrayst/main
Relabel: relabel links instead of their targets
2 parents c9f6104 + 5fcd11b commit 7b9ea5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go-selinux/rchcon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
func rchcon(fpath, label string) error {
1414
return pwalkdir.Walk(fpath, func(p string, _ fs.DirEntry, _ error) error {
15-
e := setFileLabel(p, label)
15+
e := lSetFileLabel(p, label)
1616
// Walk a file tree can race with removal, so ignore ENOENT.
1717
if errors.Is(e, os.ErrNotExist) {
1818
return nil

go-selinux/rchcon_go115.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
func rchcon(fpath, label string) error {
1313
return pwalk.Walk(fpath, func(p string, _ os.FileInfo, _ error) error {
14-
e := setFileLabel(p, label)
14+
e := lSetFileLabel(p, label)
1515
// Walk a file tree can race with removal, so ignore ENOENT.
1616
if errors.Is(e, os.ErrNotExist) {
1717
return nil

0 commit comments

Comments
 (0)