15 #include "abrt-dbus.h" 17 #include <libreport/internal_libreport.h> 21 #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0]))) 28 extern char **environ;
29 #if defined(__GLIBC__) && __GLIBC__ < 2 30 int vdprintf(
int d,
const char *format, va_list ap);
42 void abrt_trim_problem_dirs(
const char *dirname,
double cap_size,
const char *exclude_path);
43 void abrt_ensure_writable_dir_uid_gid(
const char *dir, mode_t mode, uid_t uid, gid_t gid);
44 void abrt_ensure_writable_dir(
const char *dir, mode_t mode,
const char *user);
45 void abrt_ensure_writable_dir_group(
const char *dir, mode_t mode,
const char *user,
const char *group);
46 char *abrt_run_unstrip_n(
const char *dump_dir_name,
unsigned timeout_sec);
47 char *abrt_get_backtrace(
const char *dump_dir_name,
unsigned timeout_sec,
const char *debuginfo_dirs);
49 bool abrt_dir_is_in_dump_location(
const char *dir_name);
52 DD_PERM_EVENTS = 1 << 0,
53 DD_PERM_DAEMONS = 1 << 1,
55 bool abrt_dir_has_correct_permissions(
const char *dir_name,
int flags);
56 bool abrt_new_user_problem_entry_allowed(uid_t uid,
const char *name,
const char *value);
58 extern unsigned int abrt_g_settings_nMaxCrashReportsSize;
59 extern char * abrt_g_settings_sWatchCrashdumpArchiveDir;
60 extern char * abrt_g_settings_dump_location;
61 extern bool abrt_g_settings_delete_uploaded;
62 extern bool abrt_g_settings_autoreporting;
63 extern char * abrt_g_settings_autoreporting_event;
64 extern bool abrt_g_settings_shortenedreporting;
65 extern bool abrt_g_settings_explorechroots;
66 extern unsigned int abrt_g_settings_debug_level;
69 int abrt_load_abrt_conf(
void);
70 void abrt_free_abrt_conf_data(
void);
72 int abrt_load_abrt_conf_file(
const char *file, map_string_t *settings);
74 int abrt_load_abrt_plugin_conf_file(
const char *file, map_string_t *settings);
76 int abrt_save_abrt_conf_file(
const char *file, map_string_t *settings);
78 int abrt_save_abrt_plugin_conf_file(
const char *file, map_string_t *settings);
81 void migrate_to_xdg_dirs(
void);
83 int check_recent_crash_file(
const char *filename,
const char *executable);
86 int abrt_daemon_is_ok(
void);
106 char *abrt_koops_extract_version(
const char *line);
107 char *abrt_kernel_tainted_short(
const char *kernel_bt);
108 char *abrt_kernel_tainted_long(
const char *tainted_short);
109 char *abrt_koops_hash_str_ext(
const char *oops_buf,
int frame_count,
int duphas_flags);
110 char *abrt_koops_hash_str(
const char *oops_buf);
113 int abrt_koops_line_skip_level(
const char **c);
114 void abrt_koops_line_skip_jiffies(
const char **c);
124 void abrt_koops_extract_oopses_from_lines(GList **oops_list,
const struct abrt_koops_line_info *lines_info,
int lines_info_size);
125 void abrt_koops_extract_oopses(GList **oops_list,
char *buffer,
size_t buflen);
126 GList *abrt_koops_suspicious_strings_list(
void);
127 GList *abrt_koops_suspicious_strings_blacklist(
void);
128 void abrt_koops_print_suspicious_strings(
void);
int abrt_notify_new_path_with_response(const char *path, char **message)
Sends notification to abrtd that a new problem has been detected and wait for the reply.
int delete_problem_dirs_over_dbus(const GList *problem_dir_paths)
Delets multiple problems specified by their id (as returned from problem_data_save)
void abrt_notify_new_path(const char *path)
Sends notification to abrtd that a new problem has been detected.
void ignored_problems_add_problem_data(ignored_problems_t *set, problem_data_t *pd)
Adds a problem defined by its data to the ignored problems.
GList * get_problems_over_dbus(bool authorize)
Fetches all problems from problem database.
An opaque structure holding a list of ignored problems.
void ignored_problems_remove(ignored_problems_t *set, const char *problem_id)
Removes a problem from the ignored problems.
void abrt_koops_print_suspicious_strings_filtered(const regex_t **filterout)
bool ignored_problems_contains_problem_data(ignored_problems_t *set, problem_data_t *pd)
Checks if a problem defined its data is in the ignored problems.
bool ignored_problems_contains(ignored_problems_t *set, const char *problem_id)
Checks if a problem is in the ignored problems.
int abrt_low_free_space(unsigned setting_MaxCrashReportsSize, const char *dump_location)
Checks if there is enough free space to store the problem data.
int test_exist_over_dbus(const char *problem_id, const char *element_name)
Checks whether the given element name exists.
ignored_problems_t * ignored_problems_new(char *file_path)
Initializes a new instance of ignored problems.
problem_data_t * get_full_problem_data_over_dbus(const char *problem_dir_path)
Fetches full problem data for specified problem id.
int fill_problem_data_over_dbus(const char *problem_dir_path, const char **elements, problem_data_t *problem_data)
Fetches given problem elements for specified problem id.
int dbus_problem_is_complete(const char *problem_id)
Checks whether the problem corresponding to the given ID is complete.
char * load_text_over_dbus(const char *problem_id, const char *element_name)
void ignored_problems_remove_problem_data(ignored_problems_t *set, problem_data_t *pd)
Removes a problem defined by its data from the ignored problems.
problem_data_t * get_problem_data_dbus(const char *problem_dir_path)
Fetches problem information for specified problem id.
void ignored_problems_free(ignored_problems_t *set)
Destroys an instance of ignored problems.
void ignored_problems_add(ignored_problems_t *set, const char *problem_id)
Adds a problem to the ignored problems.
int chown_dir_over_dbus(const char *problem_dir_path)
Changes the access rights of the problem specified by problem id.