Commit fd8ee9c8 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to nsfile path check post 10.X upgrade.

parent def62a71
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-2014 University of Utah and the Flux Group.
# Copyright (c) 2000-2015 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -306,6 +306,7 @@ if ($inout eq "modify" && @ARGV > 2) {
#
if (! ($tempnsfile =~ /^\/tmp\/[-\w]+-\d+\.nsfile/) &&
! ($tempnsfile =~ /^\/var\/tmp\/php\w+/) &&
! ($tempnsfile =~ /^\/tmp\/php\w+/) &&
! TBValidUserDir($tempnsfile, $ISFS)) {
tbdie("$tempnsfile does not resolve to an allowed directory!");
}
......
Markdown is supported
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