From: Vincent Bernat Date: Tue, 25 Aug 2015 12:20:39 +0000 (+0200) Subject: priv: no need to access bridge files unless "oldies" X-Git-Tag: 0.8.0~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f88f8cffbef2bf1c4c0b95a3f831147fba3195c;p=thirdparty%2Flldpd.git priv: no need to access bridge files unless "oldies" However, bonding stuff is still needed because we get the permanence MAC address this way. --- 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",