Skip to content

Commit

Permalink
tftpd-hpa: actually pass in the capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Oct 18, 2024
1 parent bc468ca commit 27be9d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ix-dev/community/tftpd-hpa/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ sources:
- https://hub.docker.com/r/ixsystems/tftpd-hpa
title: TFTP Server
train: community
version: 1.0.10
version: 1.0.11
3 changes: 2 additions & 1 deletion ix-dev/community/tftpd-hpa/templates/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ services:
network_mode: host
{% endif %}
{% set caps = ix_lib.base.security.get_caps(add=["NET_BIND_SERVICE", "SETUID", "SETGID", "SYS_CHROOT"]) %}
cap_drop: {{ ix_lib.base.security.get_caps().drop | tojson }}
cap_add: {{ caps.add | tojson }}
cap_drop: {{ caps.drop | tojson }}
security_opt: {{ ix_lib.base.security.get_sec_opts() | tojson }}
{% if values.network.dns_opts %}
dns_opt: {{ ix_lib.base.network.dns_opts(values.network.dns_opts) | tojson }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tftpd:
allow_create: true
additional_envs: []
network:
host_network: false
host_network: true
tftp_port: 69

storage:
Expand Down

0 comments on commit 27be9d7

Please sign in to comment.