|
Packit |
8ea169 |
/*
|
|
Packit |
8ea169 |
Copyright (C) 2009 RedHat inc.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
This program is free software; you can redistribute it and/or modify
|
|
Packit |
8ea169 |
it under the terms of the GNU General Public License as published by
|
|
Packit |
8ea169 |
the Free Software Foundation; either version 2 of the License, or
|
|
Packit |
8ea169 |
(at your option) any later version.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
This program is distributed in the hope that it will be useful,
|
|
Packit |
8ea169 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
8ea169 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
8ea169 |
GNU General Public License for more details.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
You should have received a copy of the GNU General Public License along
|
|
Packit |
8ea169 |
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
Packit |
8ea169 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/** @file hooklib.h */
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/**
|
|
Packit |
8ea169 |
@brief Saves the problem data
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
Creates the problem_dir in the system problem directory where it's
|
|
Packit |
8ea169 |
picked by ABRT
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
@param[in] pd Filled problem data structure to be saved
|
|
Packit |
8ea169 |
@return Unique identifier for the saved problem (usually full path to the
|
|
Packit |
8ea169 |
stored data, but it's not guaranteed)
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
char *problem_data_save(problem_data_t *pd);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
/**
|
|
Packit |
8ea169 |
@brief Checks if the name is used in post-create EVENT conditions
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
Regular users should be prevented from creating these entries with certain
|
|
Packit |
8ea169 |
values.
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
@param[in] name The entry name
|
|
Packit |
8ea169 |
@return true if the given name can should be under special treatment; otherwise
|
|
Packit |
8ea169 |
false.
|
|
Packit |
8ea169 |
*/
|
|
Packit |
8ea169 |
bool problem_entry_is_post_create_condition(const char *name);
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
#define DUMP_SUID_UNSAFE 1
|
|
Packit |
8ea169 |
#define DUMP_SUID_SAFE 2
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
int dump_suid_policy();
|
|
Packit |
8ea169 |
int signal_is_fatal(int signal_no, const char **name);
|