c4a1191d673e4368f1831cbeb4d75b15e51ff6db |
|
14-Oct-2015 |
Petr Cech <pcech@redhat.com> |
TESTS: More restrictive permissions in debug_tests
Debug tests try to write into and read from crreated files. There is no
reason to have executable permission, so this patch replaces
SSS_DFl_X_UMASK with SSS_DFL_UMASK permissions.
Resolves:
https://fedorahosted.org/sssd/ticket/2424
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
f8e337540d280f944098cd4dd7d670e2f7166b54 |
|
14-Oct-2015 |
Petr Cech <pcech@redhat.com> |
REFACTOR: umask(077) --> umask(SSS_DFL_X_UMASK)
There are many calls of umask function with 077 argument. This patch
add new constant SSS_DFL_X_UMASK which stands fot 077. So all
occurences of umask(077) are replaced by constant SSS_DFL_X_UMASK.
Resolves:
https://fedorahosted.org/sssd/ticket/2424
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
c4fb8f55f2894de431478ccfec63f9a97e090d0e |
|
14-Aug-2015 |
Michal Židek <mzidek@redhat.com> |
DEBUG: Add new debug category for fail over.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
95e98d7f620ee8200f960e7eeabd07d4dec1dca5 |
|
17-Mar-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
debug-tests: Fix test with new line in debug message
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
5c233380e1ebf641f6106a34d7b94f9e9a606589 |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Remove DEBUG macro support for old debug levels
Remove support for specifying old debug levels to the DEBUG macro:
* remove debug_get_level function which was used for conversion,
* remove debug_get_level tests,
* remove mentions of old/new levels from DEBUG and DEBUG_IS_SET
macro descriptions,
* rename "newlevel" argument of debug_fn to just "level".
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
a3c8390d19593b1e5277d95bfb4ab206d4785150 |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Make DEBUG macro invocations variadic
Use a script to update DEBUG macro invocations to use it as a variadic
macro, supplying format string and its arguments directly, instead of
wrapping them in parens.
This script was used to update the code:
grep -rwl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e \
'use strict;
use File::Slurp;
my $text=read_file(\*STDIN);
$text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs;
print $text;' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
fb0332565892bc10998ca98b567d4dde2213844d |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Move DEBUG macro body to debug_fn
Move DEBUG macro body to the debug_fn function, adding "function"
argument to the latter.
Rename "debug_fn" in sssd_krb5_locator_plugin.c to "plugin_debug_fn" to
remove conflict with the sssd debug_fn.
Replace DEBUG_MSG macro usage with debug_fn function usage.
Remove DEBUG_MSG macro along with tests.
The above makes the total size of binaries drop by 20% for the standard
Fedora build and by 44% for a build configured according to Debian
packaging script.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
0b2e2888b1b68742e91a64bbec8540c7bfa3f179 |
|
19-Jul-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Fix clang format string warning.
warning: format string is not a string literal (potentially insecure)
[-Wformat-security] |
2de495aed26bf75a750a76ca73b9f85d341fe1c5 |
|
27-Jul-2012 |
Pavel Březina <pbrezina@redhat.com> |
tests: allow changing cwd in all tests |
69420a154fc9fb8b04f437125a6a0604b26b1292 |
|
19-Dec-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Securely set umask when using mkstemp
Coverity 12394, 12395, 12396, 12397 and 12398 |
d56e06fef114459a5ec0f674d2b105ab29ae17aa |
|
02-Nov-2011 |
Pavel Březina <pbrezina@redhat.com> |
Fixes debug-tests.c coverity issues: NEGATIVE_RETURNS, FORWARD_NULL
https://fedorahosted.org/sssd/ticket/1046 |
a777047a5aadb27113c980fb4e9b0706d4220167 |
|
08-Sep-2011 |
Pavel Březina <pbrezina@redhat.com> |
DEBUG timestamps offer higher precision - unit tests updated
https://fedorahosted.org/sssd/ticket/956 |
89caf5edcc99f5731e89bd51e6ffaad3ec11c304 |
|
25-Aug-2011 |
Pavel Březina <pbrezina@redhat.com> |
New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0
Removed:
SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED)
Added new macro:
CONVERT_AND_SET_DEBUG_LEVEL(new_value)
Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0
so DEBUG macro could be reduced by one condition. Anyway, it has a minor
effect, every time you want to load debug_level from command line parameters,
you have to use following pattern:
/* Set debug level to invalid value so we can deside if -d 0 was used. */
debug_level = SSSDBG_INVALID;
pc = poptGetContext(argv[0], argc, argv, long_options, 0);
while((opt = poptGetNextOpt(pc)) != -1) { ... }
CONVERT_AND_SET_DEBUG_LEVEL(debug_level); |
fe60346714a73ac3987f786731389320633dd245 |
|
25-Aug-2011 |
Pavel Březina <pbrezina@redhat.com> |
New DEBUG facility - unit tests
https://fedorahosted.org/sssd/ticket/925 |