All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/3] restrict bridge interface name to IFNAMSIZ
@ 2019-07-23 10:47 P J P
  2019-07-23 10:47 ` [Qemu-devel] [PATCH v4 1/3] qemu-bridge-helper: restrict " P J P
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: P J P @ 2019-07-23 10:47 UTC (permalink / raw)
  To: QEMU Developers
  Cc: Li Qiang, Jason Wang, Daniel P . Berrangé, Prasad J Pandit

From: Prasad J Pandit <pjp@fedoraproject.org>

Hello,

Linux net_deivce defines network interface name to be of IFNAMSIZE(=16)
bytes, including the terminating null('\0') byte.

Qemu tap deivce, while invoking 'qemu-bridge-helper' tool to set up the
network bridge interface, supplies bridge name of 16 characters, thus
allowing to create an ACL bypass scenario.

This patch series attempts to fix it. It also updates bridge helper
invocation routine 'net_bridge_run_helper' to avoid snprintf() calls.

Thank you.
--
Prasad J Pandit (3):
  qemu-bridge-helper: restrict interface name to IFNAMSIZ
  qemu-bridge-helper: move repeating code in parse_acl_file
  net: tap: replace snprintf with g_strdup_printf calls

 net/tap.c            | 19 +++++++++++--------
 qemu-bridge-helper.c | 24 +++++++++++++++++-------
 2 files changed, 28 insertions(+), 15 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2019-07-31  9:24 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23 10:47 [Qemu-devel] [PATCH v4 0/3] restrict bridge interface name to IFNAMSIZ P J P
2019-07-23 10:47 ` [Qemu-devel] [PATCH v4 1/3] qemu-bridge-helper: restrict " P J P
2019-07-23 13:10   ` Stefan Hajnoczi
2019-07-23 13:12   ` Daniel P. Berrangé
2019-07-23 15:07   ` Li Qiang
2019-07-23 10:47 ` [Qemu-devel] [PATCH v4 2/3] qemu-bridge-helper: move repeating code in parse_acl_file P J P
2019-07-23 13:00   ` Stefan Hajnoczi
2019-07-23 13:12   ` Daniel P. Berrangé
2019-07-23 15:07   ` Li Qiang
2019-07-23 10:47 ` [Qemu-devel] [PATCH v4 3/3] net: tap: replace snprintf with g_strdup_printf calls P J P
2019-07-23 13:03   ` Stefan Hajnoczi
2019-07-23 15:43     ` Li Qiang
2019-07-24  5:48       ` P J P
2019-07-29 15:04         ` Stefan Hajnoczi
2019-07-31  4:58           ` Jason Wang
2019-07-31  6:42             ` P J P
2019-07-31  6:59               ` Jason Wang
2019-07-31  9:23                 ` P J P
2019-07-23 13:13   ` Daniel P. Berrangé
2019-07-23 17:44 ` [Qemu-devel] [PATCH v4 0/3] restrict bridge interface name to IFNAMSIZ no-reply
2019-07-25  4:01   ` Jason Wang
2019-07-25 10:20     ` P J P
2019-07-26 10:26 ` Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.