Skip to content
GitLab
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
a686be84
Commit
a686be84
authored
May 23, 2002
by
Leigh B. Stoller
Browse files
Bug fix for non-admin perm checking.
parent
71207074
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/node_admin.in
View file @
a686be84
...
...
@@ -88,14 +88,9 @@ if (! UNIX2DBUID($UID, \$dbuid)) {
# run this on nodes in their own experiments.
#
if
(
$UID
&&
!
TBAdmin
(
$UID
))
{
if
(
!
NodeAccessCheck
(
\
$node
))
{
die
("
*** You do not have permission to create an image from
$node
\n
");
}
if
(
$node
=~
/^([-\w]+)$/
)
{
$node
=
$
1
;
}
else
{
fatal
("
Tainted node name:
$node
");
if
(
!
TBNodeAccessCheck
(
$UID
,
TB_NODEACCESS_LOADIMAGE
,
$node
))
{
die
("
*** $0:
\n
"
.
"
You are not allowed to boot the FreeBSD MFS on
$node
!
\n
");
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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