Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
2ef73c1a
Commit
2ef73c1a
authored
Jan 25, 2005
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix uncovered by elabinelab build; make sure EUID is not zero
when firing off a subscript that cares about such things.
parent
73abf174
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
db/update_permissions.in
db/update_permissions.in
+4
-1
tbsetup/mkproj.in
tbsetup/mkproj.in
+6
-2
utils/grantnodetype.in
utils/grantnodetype.in
+1
-1
No files found.
db/update_permissions.in
View file @
2ef73c1a
...
...
@@ -69,4 +69,7 @@ usage()
#
# Its all in the library ...
#
exit
(
TBUpdateNodeTypeXpidPermissions
());
exit
(
0
)
if
(
TBUpdateNodeTypeXpidPermissions
());
exit
(
1
);
tbsetup/mkproj.in
View file @
2ef73c1a
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2003
, 2005
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -259,9 +259,13 @@ if ($query_result->num_rows) {
fatal
("
Unknown remote type
$type
!
");
}
print
"
$type
\n
";
$EUID
=
$UID
;
system
("
$GRANTTYPE
-p
$pid
$type
")
==
0
or
fatal
("
Could not grant permission to use type
$type
!
");
$EUID
=
0
;
}
}
}
...
...
utils/grantnodetype.in
View file @
2ef73c1a
...
...
@@ -32,7 +32,7 @@ my $pid;
#
if
(
$UID
==
0
)
{
die
("
*** $0:
\n
"
.
"
Please do not run this as root!
Its already setuid!
\n
");
"
Please do not run this as root!
\n
");
}
#
...
...
Write
Preview
Markdown
is supported
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