Skip to content

Commit

Permalink
Add: Set openvas and nmap caps at container start, with some compose …
Browse files Browse the repository at this point in the history
…installations docker forgets it.
  • Loading branch information
pascalholthaus authored and bjoernricks committed Sep 30, 2022
1 parent 0fe695e commit 33a25f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

# Set openvas and nmap caps, with some compose installations docker forgets it.
setcap cap_net_raw,cap_net_admin+eip /usr/local/sbin/openvas
setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip /usr/bin/nmap

exec gosu ospd-openvas "$@"

0 comments on commit 33a25f9

Please sign in to comment.