[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sssd-devel
Subject:    [SSSD] [PATCH] IFP: do not create client socket
From:       Pavel Březina <pbrezina () redhat ! com>
Date:       2014-03-28 11:54:54
Message-ID: 5335630E.9070204 () redhat ! com
[Download RAW message or body]

https://fedorahosted.org/sssd/ticket/2290

Depends on Jakub's IFP patches... the code actually does not create new 
socket if NULL name is provided, so there was no change to current code 
necessary.

["0001-IFP-do-not-create-client-socket.patch" (text/x-patch)]

From 0fb27b7d41b5f3bb67ee4cc32ec27b6877574004 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel Březina?= <pbrezina@redhat.com>
Date: Fri, 28 Mar 2014 12:51:08 +0100
Subject: [PATCH] IFP: do not create client socket

There is no need for client socket in IFP responder,
since it uses D-Bus for communication with clients.

Resolves:
https://fedorahosted.org/sssd/ticket/2290
---
 Makefile.am                | 1 -
 src/responder/ifp/ifpsrv.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 6032ef6e9e2c656bf6e1d1a53bc1cc4ff63b60ae..f46438b1605cb5beed310e357bd6fec8da1474bd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -325,7 +325,6 @@ AM_CPPFLAGS = \
     -DSSS_SUDO_SOCKET_NAME=\"$(pipepath)/sudo\" \
     -DSSS_AUTOFS_SOCKET_NAME=\"$(pipepath)/autofs\" \
     -DSSS_SSH_SOCKET_NAME=\"$(pipepath)/ssh\" \
-    -DSSS_IFP_SOCKET_NAME=\"$(pipepath)/ifp\" \
     -DLOCALEDIR=\"$(localedir)\"

 EXTRA_DIST = build/config.rpath
diff --git a/src/responder/ifp/ifpsrv.c b/src/responder/ifp/ifpsrv.c
index accf679efe3332aa0fb57162e288ef67eaf54adb..e76f3bdb0afb997ee2bbc0122199e127da34de84 100644
--- a/src/responder/ifp/ifpsrv.c
+++ b/src/responder/ifp/ifpsrv.c
@@ -205,7 +205,7 @@ int ifp_process_init(TALLOC_CTX *mem_ctx,
     ifp_cmds = get_ifp_cmds();
     ret = sss_process_init(mem_ctx, ev, cdb,
                            ifp_cmds,
-                           SSS_IFP_SOCKET_NAME, NULL,
+                           NULL, NULL,
                            CONFDB_IFP_CONF_ENTRY,
                            SSS_IFP_SBUS_SERVICE_NAME,
                            SSS_IFP_SBUS_SERVICE_VERSION,
--
1.7.11.7


[Attachment #4 (text/plain)]

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic