Skip to content

Commit

Permalink
add documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
hdwhdw authored and daweihuang committed Dec 11, 2024
1 parent cab1b98 commit a026034
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions host_modules/docker_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def _validate_command(command):
return errno.EPERM, "Command {} is not allowed.".format(command)

# nosemgrep: python.docker.security.audit.docker-arbitrary-container-run.docker-arbitrary-container-run
# Semgrep cannot detect validation code.
container = client.containers.run(image, command, **kwargs)
return 0, "Container {} has been started.".format(container.name)
except docker.errors.ImageNotFound:
Expand Down

0 comments on commit a026034

Please sign in to comment.