diff options
author | William A. Kennington III <wak@google.com> | 2021-02-12 22:19:27 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2021-02-13 00:13:31 +0300 |
commit | e7844b4c35efd02aebdc82b3c89821458eb25baa (patch) | |
tree | c15762984f00d944d114721a44af67591ed5e7f7 | |
parent | 1fe95d5c751eb29fb5a522a6b888c400a3cf37c2 (diff) | |
download | openbmc-e7844b4c35efd02aebdc82b3c89821458eb25baa.tar.xz |
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 <wak@google.com>
-rw-r--r-- | meta-google/recipes-connectivity/avahi/avahi_%.bbappend | 5 | ||||
-rw-r--r-- | meta-google/recipes-connectivity/avahi/files/avahi-daemon.conf | 8 |
2 files changed, 13 insertions, 0 deletions
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 |