-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #6 Commits: * Created Makefile.toml * add sudoers reader boilerplate * add deserialization * attempt to build verify closure * add verifier closures and parsed sudoers type * remove AbstractVerifier Type * fix verifiers * Update request.rs * Update sudoers.rs * modify verifyerror * fix code review comments * lint using default linter * add pr review fixes * Remove temporary files * Update gitignore to not have non-existing files * Added logging features back for merge * Remove extraneous prints * Add installation for configuration files * Fix compile warnings * Fix install script syntax Co-authored-by: Ammar Ratnani <ammrat13@gmail.com>
- Loading branch information
Showing
12 changed files
with
600 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
{ | ||
"Defaults": [ | ||
{ | ||
"Options": [ | ||
{ "env_reset": true } | ||
] | ||
}, | ||
{ | ||
"Options": [ | ||
{ "mail_badpass": true } | ||
] | ||
}, | ||
{ | ||
"Options": [ | ||
{ "secure_path": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" } | ||
] | ||
} | ||
], | ||
"User_Aliases": { | ||
"SYSADMINS": [ | ||
{ "username": "john" }, | ||
{ "username": "tim" }, | ||
{ "username": "tom" } | ||
] | ||
}, | ||
"User_Specs": [ | ||
{ | ||
"User_List": [ | ||
{ "username": "root" } | ||
], | ||
"Host_List": [ | ||
{ "hostname": "ALL" } | ||
], | ||
"Cmnd_Specs": [ | ||
{ | ||
"runasusers": [ | ||
{ "username": "ALL" } | ||
], | ||
"runasgroups": [ | ||
{ "usergroup": "ALL" } | ||
], | ||
"Options": [ | ||
{ "setenv": true } | ||
], | ||
"Commands": [ | ||
{ "command": "ALL" } | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"User_List": [ | ||
{ "useralias": "SYSADMINS" } | ||
], | ||
"Host_List": [ | ||
{ "hostname": "ALL" } | ||
], | ||
"Cmnd_Specs": [ | ||
{ | ||
"runasusers": [ | ||
{ "username": "ALL" } | ||
], | ||
"runasgroups": [ | ||
{ "usergroup": "ALL" } | ||
], | ||
"Options": [ | ||
{ "setenv": true } | ||
], | ||
"Commands": [ | ||
{ "command": "ALL" } | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"User_List": [ | ||
{ "useralias": "SYSADMINS" } | ||
], | ||
"Host_List": [ | ||
{ "hostname": "ALL" } | ||
], | ||
"Cmnd_Specs": [ | ||
{ | ||
"runasusers": [ | ||
{ "username": "john" } | ||
], | ||
"runasgroups": [ | ||
{ "usergroup": "sudo" } | ||
], | ||
"Options": [ | ||
{ "authenticate": false }, | ||
{ "setenv": true } | ||
], | ||
"Commands": [ | ||
{ "command": "/usr/bin/cat" } | ||
] | ||
}, | ||
{ | ||
"runasusers": [ | ||
{ "username": "tom" } | ||
], | ||
"Options": [ | ||
{ "authenticate": false }, | ||
{ "setenv": true } | ||
], | ||
"Commands": [ | ||
{ "command": "/etc/shadow" } | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"User_List": [ | ||
{ "usergroup": "admin" } | ||
], | ||
"Host_List": [ | ||
{ "hostname": "ALL" } | ||
], | ||
"Cmnd_Specs": [ | ||
{ | ||
"runasusers": [ | ||
{ "username": "ALL" } | ||
], | ||
"Options": [ | ||
{ "setenv": true } | ||
], | ||
"Commands": [ | ||
{ "command": "ALL" } | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"User_List": [ | ||
{ "usergroup": "sudo" } | ||
], | ||
"Host_List": [ | ||
{ "hostname": "ALL" } | ||
], | ||
"Cmnd_Specs": [ | ||
{ | ||
"runasusers": [ | ||
{ "username": "ALL" } | ||
], | ||
"runasgroups": [ | ||
{ "usergroup": "ALL" } | ||
], | ||
"Options": [ | ||
{ "setenv": true } | ||
], | ||
"Commands": [ | ||
{ "command": "ALL" } | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.