ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

Add GUI support for managing fapolicyd.config #830

Closed jw3 closed 11 months ago

jw3 commented 1 year ago

Text editor similar to rules for editing and validating fapolicyd configuration.

egbicker commented 1 year ago

@jw3 are the rust bindings in place for this? I found the config_file_path() in pyo3/config/config.rs but that looks like the wrong config path for this issue

jw3 commented 1 year ago

The rust bindings are not in place yet, but for now you can just mock up something that provides the full config text (like the rule text).

This is going to be a text based UI that is very similar to the rules text editor. You could start looking at how SourceView is integrated into the Rules and start adding an editor view like that for config.

There will be the same view at the bottom to show parse error/warnings, like rules.

Don't worry about the source highlighting for now.

The menu item for this will be under Daemon.