Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
improve comment for the IsSELinuxMode method
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwit committed Mar 31, 2020
1 parent e52f89b commit 70dc9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plan/resource/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (p *OS) IsSELinuxMode(mode string) (bool, error) {
if _, err := p.runner.RunCommand("sestatus | grep 'Current mode' | grep "+mode, nil); err == nil {
return true, nil
} else if err, ok := err.(*plan.RunError); ok && err.ExitCode == 1 {
// not conform with selinux permissive, may be not permissive, maybe command not found
// selinux not in the permissive mode
return false, nil
} else {
return false, err
Expand Down

0 comments on commit 70dc9a8

Please sign in to comment.