Closed xelaseer closed 3 years ago
Hi, I did some research and there are a couple of changes that have to be made for usbguard to work with pegt 3.x. The first thing to do is to bump the supported C++ standard to C++17 in configure.ac
. Then the file tao/pegtl/contrib/tracer.hpp
has been dropped and replaced by tao/pegtl/contrib/trace.hpp
- this affects src/Library/UEventParser.cpp
, src/Library/UMockdevDeviceDefinition.cpp
, src/Library/public/usbguard/RuleParser.cpp
, src/Tests/Fuzzers/fuzzer-rules.cpp
and src/Tests/Fuzzers/fuzzer-uevent.cpp
. Following that the call to tao::pegtl::parse
in those files has to be updated, but thats where I'm stuck - I don't have enough C++ skills to know how to update that :confused:
This is causing trouble in Gentoo with pegtl 3.2.0 as well. I'd want to not use the bundled pegtl for (potential) security reasons and keeping users in the past, i.e. usbguard blocks users from upgrading their system wide installation of pegtl to version 3.2.0. So please take my vote for supporting pegtl 3.2.0. Many thanks! :pray:
As per the title.
USBGuard 0.7.8 fails with the following errors while building:
Pegtl 3.0 fixes some errors with -werror-type-limits, which were causing build failures on my computer with 2.8.3, so USBGuard support for the newer Pegtl 3.0 would be much appreciated.