fickit/rsync: increase overall security

This commit is contained in:
nemunaire 2019-01-17 08:13:11 +01:00
commit 5a144a26f9
4 changed files with 18 additions and 11 deletions

View file

@ -23,4 +23,3 @@ COPY etc/ /etc/
COPY usr/ /usr/
RUN mkdir -p /etc/ssh /root/.ssh && chmod 0700 /root/.ssh
CMD ["/sbin/tini", "/usr/bin/ssh.sh"]
LABEL org.mobyproject.config='{"pid": "host", "binds": ["/root/.ssh:/root/.ssh", "/etc/resolv.conf:/etc/resolv.conf", "/run:/run", "/tmp:/tmp", "/etc:/hostroot/etc", "/usr/bin/ctr:/usr/bin/ctr", "/usr/bin/runc:/usr/bin/runc", "/containers:/containers","/var/log:/var/log","/dev:/dev","/sys:/sys"], "capabilities": ["all"]}'

View file

@ -1,2 +1,11 @@
image: rsync
network: true
config:
binds:
- /root/.ssh:/root/.ssh
- /etc/resolv.conf:/etc/resolv.conf
capabilities:
- CAP_NET_BIND_SERVICE
pid: new
ipc: new
uts: new