Skip to contentSkip to conversation

contrib: add stub bridge.conf for qemu-bridge-helper

PATCH In review Cole Robinson 1 participant 2 messages Jul 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 contrib: add stub bridge.conf for qemu-bridge-helper

The comment comes from OpenSUSE's bridge.conf, with some minor tweaks

---
Or should this be installed? If so where in git should it live?

 contrib/bridge.conf | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 contrib/bridge.conf
contrib/bridge.conf new file +14 -0
new file mode 100644
index 0000000000..b83e46c34f
@@ -0,0 +1,14 @@
+# Access control file for qemu-bridge-helper
+# https://wiki.qemu.org/Features/HelperNetworking
+#
+# Syntax consists of:
+#   # comment (ignored)
+#   allow all
+#   allow <bridge_name>
+#   deny all
+#   deny <bridge_name>
+#   include /path/to/additional/ACL/file
+#
+# Users are blacklisted by default and 'deny' takes precedence over 'allow'.
+# Including additional ACL files allows file access permissions to be used as
+# a component of the policy to allow access or deny access to specific bridges.
Signature · 1 line
2.31.1
#1 lore raw
Quoted 21 lines · Cole Robinson

The comment comes from OpenSUSE's bridge.conf, with some minor tweaks

---
Or should this be installed? If so where in git should it live?

 contrib/bridge.conf | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 contrib/bridge.conf
contrib/bridge.conf new file +4 -0
new file mode 100644
index 0000000000..b83e46c34f
@@ -0,0 +1,14 @@
+# Access control file for qemu-bridge-helper
+# https://wiki.qemu.org/Features/HelperNetworking
+#
+# Syntax consists of:

contrib/bridge.conf line 14

Quoted 10 lines
contrib/bridge.conf new file +10 -0
+#   # comment (ignored)
+#   allow all
+#   allow <bridge_name>
+#   deny all
+#   deny <bridge_name>
+#   include /path/to/additional/ACL/file
+#
+# Users are blacklisted by default and 'deny' takes precedence over 'allow'.
+# Including additional ACL files allows file access permissions to be used as
+# a component of the policy to allow access or deny access to specific bridges.

Meant to include this too:

MAINTAINERS +1 -0
index 684142e12e..dbdf26ade2 100644
@@ -2498,6 +2498,7 @@ F: include/net/
 F: qemu-bridge-helper.c
 T: git https://github.com/jasowang/qemu.git net
 F: qapi/net.json
+F: contrib/bridge.conf
 
 Netmap network backend
 M: Luigi Rizzo <[email protected]>

- Cole

- Cole