Skip to content

Commit

Permalink
Fix SELinux error with /dev/stdout
Browse files Browse the repository at this point in the history
Send logs to host /dev/log (journald Syslog transport).
  • Loading branch information
DavidePrincipi committed Dec 11, 2024
1 parent 48fdaee commit 31a30a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion container/dnsmasq.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# container related configuration
keep-in-foreground
log-facility=/dev/stdout
cache-size=4000

# DNS
Expand Down
1 change: 1 addition & 0 deletions imageroot/dnsmasq.service
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ExecStart=/usr/bin/podman run \
--sdnotify=conmon \
--detach \
--replace --name=%N \
--volume=/dev/log:/dev/log \
--network=host \
--cap-add=NET_ADMIN,NET_RAW \
--volume=/var/lib/nethserver/%N/state/dnsmasq.d:/etc/dnsmasq.d:Z \
Expand Down

0 comments on commit 31a30a8

Please sign in to comment.