Add sudoers output format to cvtsudoers. In the future this may

be used with filters to emit a partial sudoers file instead of a
full one.
This commit is contained in:
Todd C. Miller
2018-02-02 14:29:19 -07:00
parent df08d0d8f4
commit 3354cbd021
7 changed files with 410 additions and 24 deletions

View File

@@ -213,3 +213,13 @@ init_aliases(void)
debug_return_bool(aliases != NULL);
}
const char *
alias_type_to_string(int alias_type)
{
return alias_type == HOSTALIAS ? "Host_Alias" :
alias_type == CMNDALIAS ? "Cmnd_Alias" :
alias_type == USERALIAS ? "User_Alias" :
alias_type == RUNASALIAS ? "Runas_Alias" :
"Invalid_Alias";
}