summaryrefslogtreecommitdiff
path: root/src/tools/files.c
AgeCommit message (Collapse)AuthorFilesLines
2013-01-29Unchecked return value in files.cMichal Zidek1-1/+9
Found by coverity. https://fedorahosted.org/sssd/ticket/1791
2013-01-28TOOLS: Compile on old platforms such as RHEL5Jakub Hrozek1-37/+140
Provides compatible declarations for modern file management functions such as futimens or opening with the O_CLOEXEC flag
2013-01-23TOOLS: Use file descriptor to avoid races when creating a home directoryJakub Hrozek1-321/+358
When creating a home directory, the destination tree can be modified in various ways while it is being constructed because directory permissions are set before populating the directory. This can lead to file creation and permission changes outside the target directory tree, using hard links. This security problem was assigned CVE-2013-0219 https://fedorahosted.org/sssd/ticket/1782
2013-01-23TOOLS: Use openat/unlinkat when removing the homedirJakub Hrozek1-42/+41
The removal of a home directory is sensitive to concurrent modification of the directory tree being removed and can unlink files outside the directory tree. This security issue was assigned CVE-2013-0219 https://fedorahosted.org/sssd/ticket/1782
2012-04-20Convert read and write operations to sss_atomic_readJakub Hrozek1-32/+19
https://fedorahosted.org/sssd/ticket/1209
2010-06-17Fix potential resource leak in remove_tree_with_ctx()Stephen Gallagher1-1/+10
https://fedorahosted.org/sssd/ticket/515
2010-06-14Fix potential resource leak in copy_tree_ctx()Jakub Hrozek1-2/+10
Ticket #515
2010-06-10Properly handle read() and write() throughout the SSSDStephen Gallagher1-19/+36
We need to guarantee at all times that reads and writes complete successfully. This means that they must be checked for returning EINTR and EAGAIN, and all writes must be wrapped in a loop to ensure that they do not truncate their output.
2010-04-08Move SELinux related functions into its own moduleJakub Hrozek1-57/+0
Fix whitespace errors
2010-03-04Add forgotten \n in DEBUG statementsMartin Nagy1-1/+1
Logs from confdb with missing '\n' in the DEBUG statements annoyed me so I decided to fix them. I also made a quick grep through the code and found other places so I fixed them too.
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+736
Also update BUILD.txt