summaryrefslogtreecommitdiffstats
path: root/src/tests/check_and_open-tests.c
Commit message (Collapse)AuthorAgeFilesLines
* Securely set umask when using mkstempStephen Gallagher2011-12-191-0/+4
| | | | Coverity 12394, 12395, 12396, 12397 and 12398
* Add option to follow symlinks to check_file()Jakub Hrozek2011-10-131-1/+28
|
* Print correct return codeJakub Hrozek2010-06-141-1/+1
| | | | Fixes: #535
* Protect against check-and-open race conditionsStephen Gallagher2010-04-061-2/+2
| | | | | | | | | | | | | | | | | 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.
* Add --with-test-dir option to configureStephen Gallagher2010-03-041-0/+4
| | | | | | All 'make check' tests will chdir() into this directory before running the suite. This provides the option of having temporary files generated in a tmpfs or ramdisk
* Check and set permissions on SBUS socketsSumit Bose2010-02-231-8/+9
|
* Rename server/ directory to src/Stephen Gallagher2010-02-181-0/+218
Also update BUILD.txt