Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a2a55f93
Commit
a2a55f93
authored
Jun 02, 2017
by
Leigh B Stoller
Browse files
Allow the local cluster to use its own Cluster interface.
parent
f285fc0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCluster.pm.in
View file @
a2a55f93
...
@@ -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" ||
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment