pcp
[Top] [All Lists]

pcp updates: brolley merge, af_unix default

To: pcp@xxxxxxxxxxx
Subject: pcp updates: brolley merge, af_unix default
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Sun, 8 Sep 2013 05:47:24 -0400 (EDT)
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <2080960189.16211443.1378633639105.JavaMail.root@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: Ua163ZyUYQeRfYHLYA6pGVUn42gfEg==
Thread-topic: pcp updates: brolley merge, af_unix default
Changes committed to git://oss.sgi.com/pcp/pcp.git dev

 build/rpm/fedora.spec              |    2 
 build/rpm/pcp.spec.in              |    3 
 debian/changelog                   |    3 
 debian/rules                       |    2 
 install-sh                         |    6 
 man/man1/pmcd.1                    |   23 ++-
 qa/023                             |    1 
 qa/044.darwin                      |    4 
 qa/044.irix                        |   14 +-
 qa/044.linux                       |    4 
 qa/044.linux.1                     |    4 
 qa/058                             |    3 
 qa/058.out                         |   16 +-
 qa/062.out.2                       |    1 
 qa/066                             |    1 
 qa/069                             |    3 
 qa/080                             |    6 
 qa/080.out                         |    8 -
 qa/175                             |    3 
 qa/175.out                         |   24 +--
 qa/210                             |    3 
 qa/210.out                         |    4 
 qa/211                             |    3 
 qa/211.out                         |    4 
 qa/241                             |    3 
 qa/241.out.1                       |    4 
 qa/241.out.2                       |    4 
 qa/244                             |    1 
 qa/259                             |    1 
 qa/259.out                         |   16 +-
 qa/282                             |    5 
 qa/283                             |    3 
 qa/294                             |   10 -
 qa/294.out.1                       |   10 -
 qa/294.out.2                       |   10 -
 qa/294.out.3                       |    8 -
 qa/294.out.4                       |    8 -
 qa/295                             |    6 
 qa/335                             |    1 
 qa/335.out                         |    4 
 qa/356                             |    1 
 qa/368.darwin.2                    |   10 -
 qa/368.other.2                     |   10 -
 qa/396                             |    1 
 qa/396.out                         |   24 +--
 qa/434                             |    3 
 qa/434.out                         |   36 ++---
 qa/462                             |    2 
 qa/497.out                         |   10 -
 qa/501                             |    3 
 qa/514                             |    1 
 qa/529                             |    1 
 qa/549                             |    1 
 qa/557                             |    2 
 qa/558                             |    1 
 qa/581                             |    2 
 qa/651                             |    1 
 qa/src/chkacc3.c                   |    4 
 src/autofsd-probe/autofsd-probe.c  |    2 
 src/include/pcp/impl.h             |    2 
 src/include/pcp/pmapi.h            |    2 
 src/libpcp/src/access.c            |  257 ++++++++++++++++++++++++++++---------
 src/libpcp/src/auxconnect.c        |   50 +++++--
 src/libpcp/src/auxserver.c         |   21 ++-
 src/libpcp/src/connect.c           |   10 -
 src/libpcp/src/context.c           |   57 +++++++-
 src/libpcp/src/internal.h          |    1 
 src/libpcp/src/logportmap.c        |    4 
 src/libpcp/src/secureconnect.c     |   31 +++-
 src/libpcp_pmcd/src/GNUmakefile    |    2 
 src/libpcp_trace/src/trace.c       |   12 -
 src/pmcd/src/client.c              |   22 +--
 src/pmcd/src/config.c              |    4 
 src/pmcd/src/pmcd.c                |    8 +
 src/pmcd_wait/pmcd_wait.c          |    6 
 src/pmclient/pmclient.c            |    6 
 src/pmdas/GNUmakefile              |    5 
 src/pmdas/mmv/GNUmakefile          |    4 
 src/pmevent/doargs.c               |    2 
 src/pmevent/pmevent.c              |    9 +
 src/pmevent/pmevent.h              |    1 
 src/pmie/src/dstruct.c             |   18 +-
 src/pmie/src/dstruct.h             |    9 -
 src/pmie/src/pmie.c                |   12 -
 src/pmimport/collectl2pcp/pmdesc.c |    2 
 src/pminfo/pminfo.c                |    6 
 src/pmlogconf/pmlogconf.sh         |    5 
 src/pmprobe/pmprobe.c              |    6 
 src/pmstat/pmstat.c                |   10 -
 src/pmstore/pmstore.c              |    6 
 src/pmtop/pmtop.c                  |    6 
 src/pmval/pmval.c                  |    4 
 src/procmemstat/procmemstat.c      |   10 -
 93 files changed, 637 insertions(+), 327 deletions(-)

commit cf7c67e81e89f13d4f794be513d04695b2ac2685
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Sun Sep 8 18:25:22 2013 +1000

    Add a mechanism for packaging to avoid chown use

commit 3cf7da3ba7f0ff6f614e58eebf051beee857fedc
Merge: 50f854c 7d6f96e
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Sun Sep 8 15:08:00 2013 +1000

    Merge branch 'brolley/dev' of ../pcpfans into dev

commit 50f854c5011935c80492fa684d7f316ac1435498
Merge: 8c46608 5215908
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Sun Sep 8 11:32:23 2013 +1000

    Merge branch 'brolley/dev' of ../pcpfans into dev
    
    Conflicts:
        man/man1/pmcd.1
    
    (manual merge of overlapping changes to access section - nathans)

commit 8c46608a115b1bb17039351f7fe9a4e7d29473fc
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date:   Sat Sep 7 21:13:07 2013 +1000

    Also add generated pmcd.stp file into the clean list

commit 7d6f96ee4fcdd978bbbb0fad689adabc7a1e6245
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Fri Sep 6 20:07:01 2013 -0400

    Use pmGetContextHostName() in pmevent to print the name of the pmcd host.

commit 6d5aa4189ff3876f210697a9add36f7f01d93814
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Fri Sep 6 20:03:02 2013 -0400

    Fix heap corrption problem in pmcd.
    
    Noticed while running qa test 244. In ResetBadHosts(), nBadHosts
    and szBadHosts w were reset to 0, but badHost itself was not set to
    NULL, even though it was freed. The address was then given out
    on a subequent call to malloc(). Then, when AddBadHost() was called
    the same (already reallocated) address was passed to realloc() and
    the chaos ensued.
    
    This fix resets badHost to NULL after it is freed.

commit fd95c3cc812f951b1645c4369588e3efab690d12
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Wed Sep 4 16:39:03 2013 -0400

    pmval now uses pmGetContextHostName()

commit 326c5b88a361cebb8fea5e6c9162789f8366007e
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Wed Sep 4 13:53:07 2013 -0400

    mmv pmda requires libpcp.

commit c7dde6cc9d6c2d66b5879802f4658a4c15b94e5f
Merge: 4aaeee9 e1a5947
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Sep 3 17:47:20 2013 -0400

    Merge remote-tracking branch 'origin/dev' into brolley/dev

commit 4aaeee9570050bc467aec513f8e74420629e712a
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Sep 3 17:45:06 2013 -0400

    pmGetContextHostName - try to obtain the name using the pmcd.hostname 
metric.
    
    If unsuccessful and the name stored in the context is an AF_UNIX
    path or is 'localhost', use gethostname(3).

commit 5b275afe6975c6f190521f74827556ae460e7446
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Fri Aug 30 17:21:25 2013 -0400

    Move the setting of AF_UNIX addresses for accepted  connections to 
__pmAccept().
    
    - New public API function __pmServerGetLocalSocket() removed.
    - Internal API function __pmCheckAccetpedAddress() added and called
      from __pmAccept().
    
    A couple of non-NSPR socket API bugs were fixed during testing:
    - __pmGetNameInfo now returns the socket path for AF_UNIX addresses
    - __pmStringToSockAddr was reporting errors when there were none
      (sloppy status code check).

commit 16b06525a93d61026065bd64a55323bc41ad647c
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Fri Aug 30 17:20:36 2013 -0400

    Use __pmPathSeparator() instead of hard coding "/".

commit ee8791dd2da993a14045c656f02e2bfdd65bb307
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Fri Aug 30 12:05:24 2013 -0400

    qa fallout from default use of 'local:' by pmcd clients.
    
    Filter '^host:.*' to 'HOST' in client output so that older version
    of pcp for which the clients default to 'localhost' can still
    run the tests.

commit 32aa064f6372d72074587b4c09b66c252d4d5399
Merge: 5215908 9f5777d
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Thu Aug 29 11:35:25 2013 -0400

    Merge remote-tracking branch 'origin/dev' into brolley/dev
    
    Conflicts:
        man/man1/pmcd.1

commit 5215908f1d20a02fa0d14e44f351d55802e4da20
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Mon Aug 26 14:54:08 2013 -0400

    pmcd.1 man page update for unix: and local:

commit a022aceedcd0a236acbbe0537158a56f1ea4833e
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Fri Aug 23 15:11:11 2013 -0400

    More qa fallout from access control for unix:

commit b12fe840511b434ebef13afcd8aa50da612370d7
Merge: c89631e 48e373f
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Thu Aug 22 15:44:11 2013 -0400

    Merge remote-tracking branch 'origin/dev' into brolley/dev

commit c89631e3dcbbf49c30dc2425f060b7bb98f481a3
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Thu Aug 22 15:31:54 2013 -0400

    Implement host access checking for unix domain sockets.
    
    - Allow unix:[//][*] as the host pattern on a host access spec.
      This applies the given access controls to connections on the
      unix domain socket.
    - We allow an arbitrary number of initial '/' for consistency with
      parseProtocolSpec().
    - We allow an optional trailing '*' since this is a form of
      wildcard, given that it matches all unix domain socket
      paths.
    - The '*' wildcard now includes unix: (in addition to .* and :*)
    - local:[//][*] may also be specified and expands to the equivalent
      unix: spec plus 'localhost'.
    - The default [access] section of pmcd.conf is now
    
        [access]
        disallow ".*" : store;
        disallow ":*" : store;
        allow "local:*" : all;
    
       Note that the double quotes are necessary in order to prevent
       the ':' from being parsed as a separate token. We cannot use
       'disallow * : store' was done previously since * and 'local:*'
       both include 'unix:' which causes a permissions clash.
    - qa updates for filtering the  expected output are included here.
      The host access table now lists 'unix:' when present.

commit 289459fe4fc93d4860521cfe0b698f30c221b749
Merge: 6c0e198 39a1dd3
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Mon Aug 12 14:08:34 2013 -0400

    Merge remote-tracking branch 'origin/dev' into brolley/dev

commit 6c0e19816a9406ae2c08a79f404404fd91fd940d
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Wed Aug 7 13:43:20 2013 -0400

    More qa fallout from the switch to "local:" as the default pmcd url.

commit e0b98eec8be1953486d416d0198e5a055048fa2d
Merge: b2568e9 a3ee5c0
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Wed Aug 7 12:02:35 2013 -0400

    Merge remote-tracking branch 'origin/dev' into brolley/dev

commit b2568e97f649c0a05b1b985960714680d1266dec
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Jul 30 16:01:45 2013 -0400

    Change default for pmcd client's using "localhost" to "local:".

commit 60239ce5c6d60c8b495dbdac3556b8b4eb7dfa82
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Jul 30 15:31:15 2013 -0400

    qa fallout for change of default to "local:" for pmcd clients.

commit f9ff157f5e64c8d1bb7dbb9f0fe26b465f2066af
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Jul 30 15:30:02 2013 -0400

    Revert default of "local:" for libpcp_trace/src/trace.c.

commit 48fb1d4fbbc7364ed5c0f48c1703b082dc6a92fd
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Jul 30 15:29:00 2013 -0400

    Re-instate "local:" default for pmie.
    
    Sorry for the confusion.

commit 5e3612c42655f85807f6aef94e1ee87b47ffafeb
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Jul 30 13:40:20 2013 -0400

    Revert use of "local://" as the default for pmie.

commit e7c2c4f259b2edfb7a249aea047d160df4709974
Merge: 7a7f8b7 50ae01f
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Jul 30 11:53:45 2013 -0400

    Merge remote-tracking branch 'origin/dev' into brolley/dev

commit 7a7f8b764d65d6290aaa72831edf97a79c8933c5
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Tue Jul 30 11:51:16 2013 -0400

    Change pmcd clients to use "local://" by default instead of gethostname().

<Prev in Thread] Current Thread [Next in Thread>
  • pcp updates: brolley merge, af_unix default, Nathan Scott <=