jack-ullery / AppAnvil

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

Support addition and deletion of profile rules #83

Closed jack-ullery closed 4 months ago

jack-ullery commented 4 months ago

This solves #63, by adding an addition/deletion button and creating a few modal menus.

When the delete rule button is clicked, the selected rule is deleted from the profile without any popup or notification.

When the add rule button is clicked, this spawns a modal dialog, which will allow the user to create either a "File Rule" or "Abstraction". If the dialog is completed successfully, the rule is added to the unapplied profile.

As usual, the user needs to click "Apply Changes" and pass a pkexec before any changes are made permanent to the system.

jack-ullery commented 4 months ago

I also added some error message popups that will be shown if there is any error when updating a profile. This slightly better than the previous behavior (the program crashing). However, I would like to avoid popup messages as much as possible.