Skip to content

Commit

Permalink
validate paths
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed May 2, 2024
1 parent 3e89498 commit e75d966
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/common/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from . import validations
import secrets
import yaml
import sys
Expand Down Expand Up @@ -46,7 +47,7 @@ def func_host_path_with_perms(data: dict, root: dict, perms: dict) -> str:
# Set permissions
os.chown(path, int(perms['user']), int(perms['group']))

return path
return validations.func_validate_path(path)

def process_ix_volume(data: dict, root: dict) -> dict:
path = ''
Expand Down

0 comments on commit e75d966

Please sign in to comment.