Commit a2a55f93 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Allow the local cluster to use its own Cluster interface.

parent f285fc0e
...@@ -101,6 +101,13 @@ sub CheckPermission($) ...@@ -101,6 +101,13 @@ sub CheckPermission($)
if (defined($rootonly) && $rootonly && if (defined($rootonly) && $rootonly &&
! ($hrn->IsAuthority() && $hrn->IsRoot())); ! ($hrn->IsAuthority() && $hrn->IsRoot()));
#
# Allow the local cluster to talk to itself via this interface.
# Otherwise must be one of the known Cloudlab clusters.
#
return 0
if ($hrn->authority() eq $OURDOMAIN);
return GeniResponse->Create(GENIRESPONSE_FORBIDDEN, undef, return GeniResponse->Create(GENIRESPONSE_FORBIDDEN, undef,
"Only Cloudlab clusters permit this interface") "Only Cloudlab clusters permit this interface")
if (! ($OURDOMAIN eq "emulab.net" || if (! ($OURDOMAIN eq "emulab.net" ||
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment