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:
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user