Skip to content

Commit

Permalink
avahi: avoid running as root
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram committed Jun 2, 2024
1 parent d1aef67 commit 7d2862a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions net/avahi/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup github 1.0
PortGroup gobject_introspection 1.0

github.setup lathiat avahi 0.8 v
revision 6
revision 7
categories net devel
maintainers {i0ntempest @i0ntempest} openmaintainer
license LGPL-2.1+
Expand All @@ -17,7 +17,7 @@ long_description {*}${description} It uses D-Bus for communication between us
system daemon. The daemon is used to coordinate application efforts in caching \
replies, necessary to minimize the traffic imposed on networks.

homepage http://avahi.org/
homepage https://avahi.org
github.tarball_from releases

checksums rmd160 f060e7afbc20accc6befbbe6776d3ca7956b4962 \
Expand Down
2 changes: 1 addition & 1 deletion net/avahi/files/patch-configure-var-run.diff
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Avahi runtime dir
#
-avahi_runtime_dir="/run"
+avahi_runtime_dir="/var/run"
+avahi_runtime_dir="${runstatedir}"
avahi_socket="${avahi_runtime_dir}/avahi-daemon/socket"


Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,3 @@
<key>Label</key>
<string>org.freedesktop.avahi-daemon</string>
<key>OnDemand</key>
@@ -9,6 +11,7 @@
<key>ProgramArguments</key>
<array>
<string>@sbindir@/avahi-daemon</string>
+ <string>--no-drop-root</string>
</array>
<key>ServiceIPC</key>
<false/>

0 comments on commit 7d2862a

Please sign in to comment.