Move alias checking code out of visudo.c and into check_aliases.c.

This commit is contained in:
Todd C. Miller
2021-02-23 18:42:37 -07:00
parent c71a397368
commit 5a85543c16
4 changed files with 47 additions and 131 deletions

View File

@@ -343,6 +343,9 @@ void alias_apply(struct sudoers_parse_tree *parse_tree, int (*func)(struct sudoe
void alias_free(void *a);
void alias_put(struct alias *a);
/* check_aliases.c */
int check_aliases(struct sudoers_parse_tree *parse_tree, bool strict, bool quiet, int (*cb_unused)(struct sudoers_parse_tree *, struct alias *, void *));
/* gram.c */
extern struct sudoers_parse_tree parsed_policy;
bool init_parser(const char *path, bool quiet, bool strict);