From e7844b4c35efd02aebdc82b3c89821458eb25baa Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 12 Feb 2021 11:19:27 -0800 Subject: meta-google: avahi: Restrict settings to machine interface We don't want this to run on external interfaces, so we limit avahi to the internal interface only. Google-Bug-Id: 166192295 Change-Id: Ifc056baab670d3c09aaba7256041777aa7bff6e3 Signed-off-by: William A. Kennington III --- meta-google/recipes-connectivity/avahi/avahi_%.bbappend | 5 +++++ meta-google/recipes-connectivity/avahi/files/avahi-daemon.conf | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 meta-google/recipes-connectivity/avahi/avahi_%.bbappend create mode 100644 meta-google/recipes-connectivity/avahi/files/avahi-daemon.conf (limited to 'meta-google/recipes-connectivity') diff --git a/meta-google/recipes-connectivity/avahi/avahi_%.bbappend b/meta-google/recipes-connectivity/avahi/avahi_%.bbappend new file mode 100644 index 000000000..8fb53d3f5 --- /dev/null +++ b/meta-google/recipes-connectivity/avahi/avahi_%.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend_gbmc := "${THISDIR}/files:" +SRC_URI_append_gbmc = " file://avahi-daemon.conf" +do_install_append_gbmc() { + install -m0644 ${WORKDIR}/avahi-daemon.conf ${D}${sysconfdir}/avahi/ +} diff --git a/meta-google/recipes-connectivity/avahi/files/avahi-daemon.conf b/meta-google/recipes-connectivity/avahi/files/avahi-daemon.conf new file mode 100644 index 000000000..9688ffb39 --- /dev/null +++ b/meta-google/recipes-connectivity/avahi/files/avahi-daemon.conf @@ -0,0 +1,8 @@ +[server] +allow-interfaces=mgmt + +[publish] +disable-user-service-publishing=yes +add-service-cookie=yes +publish-hinfo=no +publish-workstation=no -- cgit v1.2.3