Skip to content

Commit

Permalink
sops-install-secrets: check that both uid & gid are correct on mountp…
Browse files Browse the repository at this point in the history
…oints
  • Loading branch information
Mic92 committed Nov 3, 2023
1 parent c59da7a commit 2991df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/sops-install-secrets/linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func SecureSymlinkChown(symlinkToCheck, expectedTarget string, owner, group int)
if err != nil {
return fmt.Errorf("cannot stat '%s': %w", symlinkToCheck, err)
}
if stat.Uid == uint32(owner) || stat.Gid == uint32(group) {
if stat.Uid == uint32(owner) && stat.Gid == uint32(group) {
return nil // already correct
}

Expand Down

0 comments on commit 2991df9

Please sign in to comment.