diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-11 07:20:12 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-11 07:20:12 +0100 |
commit | 1d038a9cf5e154406710800c372631f5c7c3fd81 (patch) | |
tree | bb4f00de5bef4a2264523fa0bbe297fa5b878ec1 /src/Hooks/hooklib.h | |
parent | 658622eb5e1b81d394f066df44bc9f0abe9cc807 (diff) | |
download | abrt-1d038a9cf5e154406710800c372631f5c7c3fd81.tar.gz abrt-1d038a9cf5e154406710800c372631f5c7c3fd81.tar.xz abrt-1d038a9cf5e154406710800c372631f5c7c3fd81.zip |
abrt-hook-python: add input sanitization and directory size guard
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Hooks/hooklib.h')
-rw-r--r-- | src/Hooks/hooklib.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Hooks/hooklib.h b/src/Hooks/hooklib.h new file mode 100644 index 00000000..0794ff60 --- /dev/null +++ b/src/Hooks/hooklib.h @@ -0,0 +1,21 @@ +/* + Copyright (C) 2009 RedHat inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + +void parse_conf(const char *additional_conf, unsigned *setting_MaxCrashReportsSize, bool *setting_MakeCompatCore); +void check_free_space(unsigned setting_MaxCrashReportsSize); +void trim_debug_dumps(unsigned setting_MaxCrashReportsSize, const char *exclude_path); |