We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4e193c commit 8210117Copy full SHA for 8210117
internal/factsengine/gatherers/sudoers.go
@@ -56,6 +56,13 @@ type parsedSudoers struct {
56
User string
57
}
58
59
+func (p parsedSudoers) AsInterface() interface{} {
60
+ return map[string]interface{}{
61
+ "user": p.User,
62
+ "privileges": p.CommandsAsRoot,
63
+ }
64
+}
65
+
66
func NewDefaultSudoersGatherer() *SudoersGatherer {
67
return NewSudoersGatherer(utils.Executor{}, afero.NewOsFs())
68
0 commit comments