viced: Restrict RXAFS_FlushCPS to administrators
authorAndrew Deason <adeason@sinenomine.net>
Fri, 15 Jun 2012 21:58:42 +0000 (16:58 -0500)
committerDerrick Brashear <shadow@dementix.org>
Wed, 27 Jun 2012 12:37:00 +0000 (05:37 -0700)
commit568adf7d18eb17a42caa263aabc92a686f0ae121
treecf99cf30c8922981e84512327fb3bbd45aef50e9
parent7a875f639f61966f2d327f929305091d2678e99a
viced: Restrict RXAFS_FlushCPS to administrators

RXAFS_FlushCPS currently can be run by anyone, including
unauthenticated users. Forcing CPS calculation can be a relatively
resource-intensive operation, though, if done frequently enough, and
only should need to be done by administrators. Thus, only let
administrators use it.

Change-Id: Iaedd1e72e542b637070930bf1a0a9eba83a9ab64
Reviewed-on: http://gerrit.openafs.org/7572
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/viced/afsfileprocs.c
src/viced/viced.h