summaryrefslogtreecommitdiff
path: root/src/tools/tools_util.h
AgeCommit message (Collapse)AuthorFilesLines
2013-05-21Move nscd.c from tools to utilOndrej Kos1-8/+0
Preparation for the following patch which will include the nscd.c in the monitor code due to newly introduced function for checking the nscd configuration file.
2013-01-23TOOLS: Use file descriptor to avoid races when creating a home directoryJakub Hrozek1-3/+2
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-21TOOLS: invalidate parent groups in memory cache, tooJakub Hrozek1-1/+2
https://fedorahosted.org/sssd/ticket/1775 In addition to invalidating the group being added to when adding a member group/user, we also need to invalidate all its parent groups, otherwise this getgrnam("parent") wouldn't report the members newly added to its child groups.
2013-01-15TOOLS: Provide a convenience function to refresh a list of groupsJakub Hrozek1-0/+1
2013-01-15TOOLS: Split querying nss responder into a separate functionJakub Hrozek1-0/+3
The tools query the responder in order to sync the memcache after performing changes to the local database. The functions will be reused by other tools so I split them into a separate functions.
2013-01-15TOOLS: move memcache related functions to tools_mc_utils.cJakub Hrozek1-0/+1
The upcoming patches will link only users of this file with client libs, so it's better to have it separate. There is no functional change in this patch
2012-11-28sss_cache: Small refactor.Michal Zidek1-0/+2
The logic that checks if sssd_nss is running and then sends SIGHUP to monitor or removes the caches was moved to a function sss_memcache_clear_all() and made public in tools_util.h.
2012-11-06sss_cache: Remove fastcache even if sssd is not running.Michal Zidek1-0/+2
https://fedorahosted.org/sssd/ticket/1584
2012-09-24tools_util.h provides signal_sssd function.Michal Zidek1-0/+5
2012-05-22Always use positional arguments in translatable stringsStephen Gallagher1-1/+1
https://fedorahosted.org/sssd/ticket/1336
2011-11-22Cleanup: Remove unused parametersJakub Hrozek1-4/+2
2010-09-08Fix assorted minor bugs in sss_ toolsJakub Hrozek1-0/+6
Fixes: #585
2010-04-12tools: remove creation of event_contextSimo Sorce1-1/+0
Since the sysdb is now synchronous and creates its own event context we don't need an explicit event context anymore in the tools.
2010-04-12sysdb: remove remaining traces of sysdb_handleSimo Sorce1-1/+0
2010-04-08SELinux login managementJakub Hrozek1-0/+2
Adds a new option -Z to sss_useradd and sss_usermod. This option allows user to specify the SELinux login context for the user. On deleting the user with sss_userdel, the login mapping is deleted, so subsequent adding of the same user would result in the default login context unless -Z is specified again. MLS security is not supported as of this patch.
2010-04-08Move SELinux related functions into its own moduleJakub Hrozek1-3/+4
Fix whitespace errors
2010-04-06Add userdel_cmd paramJakub Hrozek1-0/+2
Fixes: #231
2010-03-15Flush NSCD cache after modifying local databaseJakub Hrozek1-0/+8
Fixes: #221
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+108
Also update BUILD.txt