From 7f88f8cffbef2bf1c4c0b95a3f831147fba3195c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 25 Aug 2015 14:20:39 +0200 Subject: [PATCH] priv: no need to access bridge files unless "oldies" However, bonding stuff is still needed because we get the permanence MAC address this way. --- src/daemon/priv-linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/daemon/priv-linux.c b/src/daemon/priv-linux.c index efc2cc54..b919ba1b 100644 --- a/src/daemon/priv-linux.c +++ b/src/daemon/priv-linux.c @@ -78,9 +78,11 @@ asroot_open() "/proc/sys/net/ipv4/ip_forward", "/proc/net/bonding/[^.][^/]*", "/proc/self/net/bonding/[^.][^/]*", +#ifdef ENABLE_OLDIES SYSFS_CLASS_NET "[^.][^/]*/brforward", SYSFS_CLASS_NET "[^.][^/]*/brport", SYSFS_CLASS_NET "[^.][^/]*/brif/[^.][^/]*/port_no", +#endif SYSFS_CLASS_DMI "product_version", SYSFS_CLASS_DMI "product_serial", SYSFS_CLASS_DMI "product_name", -- 2.39.5