summaryrefslogtreecommitdiff
path: root/src/util/util.h
AgeCommit message (Collapse)AuthorFilesLines
2011-07-11Move IP adress escaping from the LDAP namespaceJakub Hrozek1-0/+3
2011-05-23Import config.h earlierStephen Gallagher1-2/+1
On RHEL 5 and other older platforms, failing to set _GNU_SOURCE early would cause some functions - such as strndup() - to be unavailable.
2011-05-04Override config file debug_level with command-lineStephen Gallagher1-0/+3
This patch also makes the following changes: 1) The [sssd] debug_level setting no longer acts as a default for all other sections. 2) We will now skip passing the debug argument to the child processes from the master unless the SSSD was run with a command-line argument for the debug level. https://fedorahosted.org/sssd/ticket/764
2011-01-11Add overflow check to SAFEALIGN_COPY_*_CHECK macrosSumit Bose1-3/+6
2011-01-11Validate user supplied size of data itemsSumit Bose1-0/+5
Specially crafted packages might lead to an integer overflow and the parsing of the input buffer might not continue as expected. This issue was identified by Sebastian Krahmer <krahmer@suse.de>.
2010-12-20Introduce sss_hash_create_ex()Sumit Bose1-0/+10
2010-12-03krb5_child returns TGT lifetimeSumit Bose1-0/+6
2010-12-02Add a special filter type to handle enumerationsSumit Bose1-0/+2
2010-11-15Add utility function to sanitize LDAP/LDB filtersStephen Gallagher1-0/+11
Also adds a unit test.
2010-10-13Add a missing include fileSumit Bose1-0/+1
strcasecmp() is defined in strings.h which might not be included under certain conditions.
2010-10-08Add common hash table setupStephen Gallagher1-0/+5
sss_hash_create() produces a dhash table living in the talloc hierarchy.
2010-09-08Add safe copy/move macros for uint16_tJakub Hrozek1-1/+11
2010-08-03Add dup_string_list() utility functionStephen Gallagher1-0/+6
2010-08-03Add diff_string_lists utility functionStephen Gallagher1-0/+13
Includes a unit test
2010-07-09Add sss_log() functionStephen Gallagher1-0/+12
Right now, this log function writes to the syslog. In the future, it could be modified to work with ELAPI or another logging API.
2010-05-27Move parse_args() to utilSumit Bose1-0/+2
2010-05-16Add ldap_krb5_ticket_lifetime optionSumit Bose1-0/+5
2010-05-07Clean up kdcinfo and kpasswdinfo files when exitingStephen Gallagher1-0/+1
2010-04-16Avoid accessing half-deallocated memory when using talloc_zfree macro.eindenbom1-1/+5
The correct memory deallocation sequence is: - clear pointer to memory first - then deallocate memory
2010-04-06Protect against check-and-open race conditionsStephen Gallagher1-0/+29
There is a small window between running lstat() on a filename and opening it where it's possible for the file to have been modified. We were protecting against this by saving the stat data from the original file and verifying that it was the same file (by device and inode) when we opened it again, but this is an imperfect solution, as it is still possible for an attacker to modify the permissions during this window. It is much better to simply open the file and test on the active file descriptor. Resolves https://fedorahosted.org/sssd/ticket/425 incidentally, as without the initial lstat, we are implicitly accepting symlinks and only verifying the target file.
2010-03-08Reopen logs when SIGHUP is caughtJakub Hrozek1-0/+1
Upon receiving SIGHUP, the monitor signals all services to reopen their debug logs. It is also possible to signal individual services to reopen their particular files. Fixes: #332
2010-03-03Improve safe alignment buffer handling macrosSimo Sorce1-15/+24
Make the counter optional so that alignment safe macros can be used also where there is no counter to update. Change arguments names so that they are not deceiving (ptr normlly identify a pointer) Turn the memcpy substitute into an inline function so that passing a pointer to rp and checking for it doesn't make the compiler spit lots of warnings.
2010-02-23Check and set permissions on SBUS socketsSumit Bose1-1/+16
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+256
Also update BUILD.txt