responder_common.c revision 5a6e3cb57cf2d8d4118b58be0574cccea171ca19
2ronwalf along with this program. If not, see <http://www.gnu.org/licenses/>.
2ronwalf#include "util/strtonum.h"
2ronwalf#include "sbus/sssd_dbus.h"
2ronwalf#include "responder/common/responder.h"
2ronwalf#include "responder/common/responder_packet.h"
2ronwalf#include "providers/data_provider.h"
2ronwalf#include "monitor/monitor_interfaces.h"
2ronwalf#include "sbus/sbus_client.h"
int ferr;
errno = 0;
if (ferr < 0) {
return error;
return EOK;
#ifdef HAVE_UCRED
int ret;
return ret;
return ENOMSG;
return EOK;
size_t c;
return EINVAL;
for (c = 0; c < allowed_uids_count; c++) {
return EOK;
return EACCES;
bool allow_sss_loop,
int ret;
size_t c;
int list_size;
char *endptr;
goto done;
goto done;
if (allow_sss_loop) {
for (c = 0; c < list_size; c++) {
errno = 0;
goto done;
list[c]));
goto done;
errno = 0;
goto done;
done:
return ret;
int ret;
int ret;
switch (ret) {
case EOK:
case EAGAIN:
case EINVAL:
case ENODATA:
struct accept_fd_ctx {
bool is_private;
void *data);
int ret;
int client_fd;
if (!cctx) {
return EOK;
void *data)
const char *cli_name,
int ret;
return ret;
return ret;
cli_name);
return ret;
return EOK;
char *default_pipe;
int ret;
if (!default_pipe) {
return ENOMEM;
return ret;
if (!default_pipe) {
return ENOMEM;
return ret;
return EIO;
goto failed;
goto failed;
goto failed;
goto failed;
goto failed;
return EIO;
goto failed;
goto failed;
goto failed;
goto failed;
goto failed;
return EOK;
return EIO;
const char *sss_pipe_name,
const char *sss_priv_pipe_name,
const char *confdb_service_path,
const char *svc_name,
const char *cli_name,
int ret;
if (!rctx) {
return ENOMEM;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
goto fail;
return EOK;
fail:
return ret;
return EOK;
struct sss_domain_info *
if (!ret_dom) {
return ret_dom;
struct resp_ctx);
int limret;
if (limret == 0) {
if (limret == 0) {
if (limret == 0) {