Move sudoers_debug.c prototypes to sudoers_debug.h.

This commit is contained in:
Todd C. Miller
2023-08-29 13:54:45 -06:00
parent 35a7283dd9
commit 05f823df22
2 changed files with 4 additions and 5 deletions

View File

@@ -437,11 +437,6 @@ bool sudoers_set_mode(unsigned int flags, unsigned int mask);
/* sudoers_ctx_free.c */
void sudoers_ctx_free(struct sudoers_context *ctx);
/* sudoers_debug.c */
bool sudoers_debug_parse_flags(struct sudo_conf_debug_file_list *debug_files, const char *entry);
bool sudoers_debug_register(const char *plugin_path, struct sudo_conf_debug_file_list *debug_files);
void sudoers_debug_deregister(void);
/* policy.c */
unsigned int sudoers_policy_deserialize_info(struct sudoers_context *ctx, void *v, struct defaults_list *defaults);
bool sudoers_policy_store_result(struct sudoers_context *ctx, bool accepted, char *argv[], char *envp[], mode_t cmnd_umask, char *iolog_path, void *v);

View File

@@ -45,4 +45,8 @@ extern unsigned int sudoers_subsystem_ids[];
#define SUDOERS_DEBUG_SSSD (sudoers_subsystem_ids[16]) /* sudoers SSSD */
#define SUDOERS_DEBUG_UTIL (sudoers_subsystem_ids[17]) /* utility functions */
bool sudoers_debug_parse_flags(struct sudo_conf_debug_file_list *debug_files, const char *entry);
bool sudoers_debug_register(const char *plugin_path, struct sudo_conf_debug_file_list *debug_files);
void sudoers_debug_deregister(void);
#endif /* SUDOERS_DEBUG_H */