From 772a378bc412d62e25dfa5d4d8b3c854ee8b604a Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Fri, 15 Jun 2012 16:55:16 -0500 Subject: [PATCH] viced: Rename fs_rxstat_userok The fs_rxstat_userok function can be used for other purposes; give it a more general name. Reviewed-on: http://gerrit.openafs.org/7571 Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit 7a875f639f61966f2d327f929305091d2678e99a) Change-Id: I44301904cc8e7145ba13276a32b7cea475bc0574 Reviewed-on: http://gerrit.openafs.org/9484 Reviewed-by: Andrew Deason Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/viced/viced.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/viced/viced.c b/src/viced/viced.c index 7173b10c2..fca939312 100644 --- a/src/viced/viced.c +++ b/src/viced/viced.c @@ -333,9 +333,9 @@ CheckDescriptors_Signal(int x) } #endif /* AFS_PTHREAD_ENV */ -/* check whether caller is authorized to manage RX statistics */ +/* check whether caller is authorized to perform admin operations */ int -fs_rxstat_userok(struct rx_call *call) +viced_SuperUser(struct rx_call *call) { return afsconf_SuperUser(confDir, call, NULL); } @@ -2221,7 +2221,7 @@ main(int argc, char *argv[]) } /* allow super users to manage RX statistics */ - rx_SetRxStatUserOk(fs_rxstat_userok); + rx_SetRxStatUserOk(viced_SuperUser); CV_INIT(&fsync_cond, "fsync", CV_DEFAULT, 0); MUTEX_INIT(&fsync_glock_mutex, "fsync", MUTEX_DEFAULT, 0); -- 2.39.5