mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 12:36:23 -07:00
limit config visibility to /etc and /var/lib
This commit is contained in:
parent
a1b3aa3a84
commit
67a0e8d108
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ if [ ! -z "$src_file" ]; then
|
|||
echo "Error: invalid source path $src_file"
|
||||
exit 2
|
||||
fi
|
||||
spath=$(echo "$rpath" |egrep "/etc|/var/lib")
|
||||
if [ -z "$spath" ]; then
|
||||
echo "Error: invalid source path $src_file"
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
# Reading conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue