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
a7984e38
Commit
a7984e38
authored
Oct 03, 2002
by
Robert Ricci
Browse files
Add libdb check for image access permissions - before, we were just
checking permissions to read the image file.
parent
15137f79
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/frisbeelauncher.in
View file @
a7984e38
...
...
@@ -56,7 +56,14 @@ if ($imageid =~ /^([-\@\w\+.]+)$/) {
# Grab the filename to give to frisbee
my
$filename
=
&get_filename
(
$imageid
);
# Make sure that the user can read the image file or bomb out right now.
#
# Make sure that the user has sufficient permissions, and read the image file
# or bomb out right now.
#
if
(
!
TBImageIDAccessCheck
(
$UID
,
$imageid
,
TB_IMAGEID_ACCESS
))
{
die
("
*** You do not have pemssion to load
$imageid
on nodes
\n
");
}
if
(
!
-
R
$filename
)
{
die
("
*** You do not have permission to read the image file for
\n
"
.
"
imageid
$imageid
:
$filename
\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