OPENAFS-SA-2018-001 butc: require authenticated connections with -localauth
authorBenjamin Kaduk <kaduk@mit.edu>
Thu, 6 Sep 2018 23:50:39 +0000 (18:50 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 11 Sep 2018 00:49:42 +0000 (19:49 -0500)
commitcb8b8300369cf12f1a4681010b71aa46659529bc
tree299e868ceda0d94f9e04ed6ff5cd1326076b0a13
parent78b5be7ddd9f8b9b416c7405074253770e8354d8
OPENAFS-SA-2018-001 butc: require authenticated connections with -localauth

The butc -localauth option is available to use the cell-wide key to
authenticate to the vlserver and buserver, which in normal deployments
will require incoming connections to be authenticated as a superuser.
In such cases, the cell-wide key is also available for use in
authenticating incoming connections to the butc, which would otherwise
have been completely unauthenticated.

Because of the security hazards of allowing unauthenticaed inbound
RPCs, especially ones that manipulate backup information and are allowed
to initiate outboud RPCs authenticated as the superuser, default to
not allowing unauthenticated inbound RPCs at all.  Provide an opt-out
command-line argument for deployments that require this functionality
and have configured their network environment (firewall/etc.) appropriately.

(cherry picked from commit 1b199eeafad6420982380ce5e858f00c528cfd13)

(cherry picked from commit fa04588907321e8b50b64f30dcc049e60268a05a)

Change-Id: Ib796fd4d61cc5d2e98f1b1e787f3267456b0ffe8
doc/man-pages/pod8/butc.pod
src/butc/butc_prototypes.h
src/butc/tcmain.c
src/butc/tcprocs.c