jack-ullery / AppAnvil

Graphical user interface for the AppArmor security module (in-progress)
GNU General Public License v3.0
17 stars 12 forks source link

Fix build for Arch #55

Closed jack-ullery closed 1 year ago

jack-ullery commented 1 year ago

This fixes issue #53.

For some reason, initializing _comboboxoptions with braces led to a compilation error on Arch-based distributions. I think this might have something to do with the version of clang Arch uses, but I am not sure. Regardless, using parenthesis to construct the field fixed the issue.

I also found and fixed another Arch specific error when testing. It seems ps can sometimes return an underscore for "context" when a process is unconfined. This was leading to an issue when using regular exceptions to parse its output. I fixed the issue and made the regex parsing more resilient to exceptions.

jack-ullery commented 1 year ago

Well, the code auto-formatter made a bunch of changes that are not related to this PR too. That's what I get for pushing changes directly to main earlier.