summaryrefslogtreecommitdiff
path: root/src/util/find_uid.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-25util: Allways fall back to old find_uid methodSimo Sorce1-4/+4
systemd-login still fails with su/sudo login shells, so always fall back for now. Resolves: https://fedorahosted.org/sssd/ticket/2094
2013-09-24Include header file in implementation module.Lukas Slebodnik1-0/+1
Declarations of public functions was in header files, but header files was not included in implementation file.
2013-09-16util: Use systemd-login to check user sessionsSimo Sorce1-0/+20
Use systemd-lgin in preference to check if the user is logged in or not. Fall back to the old method if no systemd-login support is available at compile time or if it returns a fatal error, and can't determine the status of the user on its own. This will allow to consider a user really active (in order to reuse or refresh crdentials) only if it really is logged into the system, and not just if one of the user's processes is stuck around. Resolves: https://fedorahosted.org/sssd/ticket/2084
2012-04-20Convert read and write operations to sss_atomic_readJakub Hrozek1-9/+7
https://fedorahosted.org/sssd/ticket/1209
2012-02-29Handle cases where UID is -1Stephen Gallagher1-6/+1
Also removes an unnecessary range check (since it's already handled by strtoint32() https://fedorahosted.org/sssd/ticket/1216
2012-02-14Ensure NULL-termination in get_uid_from_pid()Stephen Gallagher1-0/+3
Coverity #12399
2011-11-07Fixed possible resource leak in get_uid_from_pid()Jan Zeleny1-4/+10
https://fedorahosted.org/sssd/ticket/1069
2010-10-26Always use uint32_t for UID/GID numbersJakub Hrozek1-3/+3
2010-10-18Use unsigned long for conversion to id_tJakub Hrozek1-4/+4
We used strtol() on a number of places to convert into uid_t or gid_t from a string representation such as LDAP attribute, but on some platforms, unsigned long might be necessary to store big id_t values. This patch converts to using strtoul() instead.
2010-06-14Check closedir call in find_uidJakub Hrozek1-4/+9
Fixes: #503
2010-06-14get_uid_from_pid should use fstat rather than lstatJakub Hrozek1-11/+11
Fixes: #541
2010-06-10Fix misuse of errno in find_uid.cStephen Gallagher1-17/+26
2010-06-10Properly handle read() and write() throughout the SSSDStephen Gallagher1-4/+9
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-02-18Rename server/ directory to src/Stephen Gallagher1-0/+296
Also update BUILD.txt