add caps to ruby

This commit is contained in:
Christian Mehlmauer 2017-04-27 10:55:03 +02:00
parent e93ed889df
commit eb525840cd
No known key found for this signature in database
GPG Key ID: DCF54A05D6E62591
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ RUN chmod o+r /usr/local/bundle/gems/robots-*/lib/robots.rb
RUN adduser -g msfconsole -D $MSF_USER
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip $(which ruby)
USER $MSF_USER
ADD ./ $APP_HOME