pcp
[Top] [All Lists]

pcp updates: unix domain sockets

To: PCP <pcp@xxxxxxxxxxx>
Subject: pcp updates: unix domain sockets
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 16 Jul 2013 03:32:37 -0400 (EDT)
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1655493816.1598029.1373959853727.JavaMail.root@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: Re1POcry62RJHc4ngxP+6yOIPLnoZQ==
Thread-topic: pcp updates: unix domain sockets
Changes committed to git://oss.sgi.com/pcp/pcp.git dev

 configure                            |   33 +++++++++++++++
 configure.in                         |   15 ++++++-
 qa/831                               |   62 +++++++++++++++++++++++++++++
 qa/831.out                           |   16 +++++++
 qa/group                             |    1 
 src/include/builddefs.in             |    2 
 src/include/pcp/impl.h               |    3 -
 src/include/pcp/platform_header.h.in |    7 ++-
 src/libpcp/src/auxconnect.c          |    4 -
 src/libpcp/src/auxserver.c           |   73 ++++++++++++++++++++++++++++++-----
 src/libpcp/src/context.c             |    1 
 src/libpcp/src/secureconnect.c       |    6 +-
 src/libpcp_pmda/src/callback.c       |   24 +++++------
 src/pmcd/src/client.c                |    2 
 src/pmcd/src/config.c                |   16 +++++++
 src/pmcd/src/pmcd.c                  |   15 +++++--
 src/pmproxy/pmproxy.c                |    2 
 17 files changed, 245 insertions(+), 37 deletions(-)

commit 6263911d168208d2abf052ab189552e3746e9d2c
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Jul 16 17:29:47 2013 +1000

    Propogate unix domain socket client credentials to PMDAs
    
    Extract the unix domain socket credentials from any new pmcd
    local socket connection, right after connection is allowed.
    Needed an extension to the client-acceptance mechanism to pass
    through the socket family (affects both pmcd and pmproxy, but
    only pmcd uses this information currently).
    
    Implementations of the unix domain credentials extraction have
    been provided for Linux, Solaris and Mac OS X.  The appropriate
    configure magic is added for each.
    
    Additional diagnostics are added into pmcd to help figure out
    what is going on at key code points where connection attributes
    are being passed to each interested agent.
    
    Finally, test qa/831 is added to exercise this code, and uses
    the sample PMDA to verify that the correct user and group IDs
    are passed all the way through from client to agent.

commit 08d522ed28db8ee6289d15b50d607b0ba276790c
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Jul 16 17:17:20 2013 +1000

    Ensure unix domain sockets use does not perform client auth
    
    The client authentication path (SASL) was being inadvertantly
    triggered by use of unix sockets - credentials will be passed
    automatically on this path shortly, SASL-based authentication
    is not required.

commit 099774d975951c928e01e0559f96ac09feb6e221
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Jul 16 17:12:24 2013 +1000

    Revert earlier change for connecting to pmcd unix socket
    
    Using pmProgname in the local socket default path is not a
    viable solution for the client side.

commit 96c33b8495404664e7dedd04ce6389c67402bcf7
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Jul 16 13:36:38 2013 +1000

    Correct the default install.sh invocation after recent changes
    
    Need to default to a root:root install for all files still, this
    was inadvertantly changed recently.  We also were inadvertantly
    using a no-longer-available macro as the default file owner which
    ended up with invalid install lines due to:
    
        INSTALL = $(INSTALL_SH) -o @pcp_owner@ -g pcp
    
    This now uses the PCP_{USER,GROUP}_INSTALL macros which provide
    the expected defaults from the configure.in phase.

commit 418c7e5c55f793c5915ba1110f27daafdecf0fbd
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Tue Jul 16 10:25:00 2013 +1000

    Improve libpcp_pmda fetch callback failure diagnostics
    
    Add PMID and instance ID to more of the libpcp_pmda fetch
    callback failure diagnostics.

<Prev in Thread] Current Thread [Next in Thread>
  • pcp updates: unix domain sockets, Nathan Scott <=