summaryrefslogtreecommitdiff
path: root/src/sss_client/common.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-13Add utility function sss_strnlen()Stephen Gallagher1-0/+29
This is useful for guaranteeing the size of an input buffer.
2010-07-23Allow sssd clients to reconnectSumit Bose1-4/+3
Currently the PAM and NSS client just return an error if there are problems on an open socket. This will lead to problems in long running programs like gdm if sssd is restarted, e.g. during an update. With this patch the socket is closed and reopened.
2010-06-10Properly handle read() and write() throughout the SSSDStephen Gallagher1-0/+16
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-16Use SO_PEERCRED on the PAM socketSumit Bose1-1/+80
This is the second attempt to let the PAM client and the PAM responder exchange their credentials, i.e. uid, gid and pid. Because this approach does not require any message interchange between the client and the server the protocol version number is not changed. On the client side the connection is terminated it the responder is not run by root. On the server side the effective uid and gid and the pid of the client are available for future use. The following additional changes are made by this patch: - the checks of the ownership and the permissions on the PAM sockets are enhanced - internal error codes are introduced on the client side to generate more specific log messages if an error occurs
2010-04-16Revert "Add better checks on PAM socket"Sumit Bose1-122/+4
This reverts commit 5a88e963744e5da453e88b5c36499f04712df097.
2010-03-15Fixed buffer alignment in exchange_credentials().George McCollister1-5/+9
buf needs to be 32 bit aligned on ARM. Also made the fix on the server side. Signed-off-by: George McCollister <George.McCollister@gmail.com>
2010-03-11Add better checks on PAM socketSumit Bose1-4/+118
- check if the public socket belongs to root and has 0666 permissions - use a SCM_CREDENTIALS message if available
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+669
Also update BUILD.txt